# Objective Conditions

Do you think the task was completed too easily? You can use the following conditions to limit the difficulty of players completing their goals.

## PlceholderAPI condition

format: `[placeholderapi]%XXX%;(>=/>/<=/</=);input`

example:

```
conditions:
- '[placeholderapi]%player_max_health%;>;15
- '[placeholderapi]%player_food%;>=10'
...
```

## Math conditions

{% hint style="info" %}
`[symbol](>=/>/<=/</=);value`
{% endhint %}

### \[y]: Detect the player's location in y

example **(When the player's y is greater than or equal to 120, it is passed through)**

```
conditions:
- [y]>=120
- ...
```

### \[health]: Compare player's current health points

{% hint style="info" %}
example.1 （specifi a value）

<pre><code><strong>conditions:
</strong>- [health]>=10.0
- ...
</code></pre>

{% endhint %}

{% hint style="success" %}
example.2 (Percent of the max health)

```
conditions:
- [health]>=20%
- ...
```

{% endhint %}

### \[maxhealth]: Compare player's max health

### \[distance]: Compare player's current location distance form world's spawn location

### \[level]: Compare player's level

### \[food]: Compare player' food level

## String conditions

### \[world]: Determine whether the player's current world is a specified world

example

```
conditions:
- [world]world_the_end
- ...
```

### \[permission]: Player has specific permission

example

```
conditions:
- [permission]legendarydailyquest.admin
- ...
```

### \[biome]: Determine whether the player's current biome is a specified biome

example

```
conditions:
- [biome]PLAINS
- ...
```

### \[stand]: Check the block's material under the player's feet

example

```
conditions:
- [stand]GRASS_BLOCK
- ...
```

## Boolean conditions

### \[sneak]: When the player sneak

example

```
conditions:
- [sneak]
```

### \[fly]: When the player flying

### \[vehicle]: When the player in a vehicle

### \[onfire]: When the player in fire

### \[onground]: When the player on ground

### \[sleep]: When the player is sleeping

### \[run]: When the player is running

### \[night]: When the current world is night

### \[day]: When the current world is day

## Item conditions

please look :

{% content-ref url="objective-value-type/item-objectives-write" %}
[item-objectives-write](https://gyzer.gitbook.io/legendarydailyquests-english/quest-configuration/objective-value-type/item-objectives-write)
{% endcontent-ref %}

### \[hasitem]: Check player's inventory has specific item

example

```
conditions:
- [hasitem]custom;&cBig Sword
- ...
```

### \[handitem]: Check player's main hand is specific item

Same as above

### \[offhanditem]: Check player's off hand is specific item

Same as above

### \[offhanditem]: 玩家副手是否是指定物品 <a href="#offhanditem-wan-jia-fu-shou-shi-fou-shi-zhi-ding-wu-pin" id="offhanditem-wan-jia-fu-shou-shi-fou-shi-zhi-ding-wu-pin"></a>

Same as above

### \[helmetitem]: 玩家头盔是否是指定物品 <a href="#helmetitem-wan-jia-tou-kui-shi-fou-shi-zhi-ding-wu-pin" id="helmetitem-wan-jia-tou-kui-shi-fou-shi-zhi-ding-wu-pin"></a>

Same as above

### \[chestitem]: 玩家胸甲是否是指定物品 <a href="#chestitem-wan-jia-xiong-jia-shi-fou-shi-zhi-ding-wu-pin" id="chestitem-wan-jia-xiong-jia-shi-fou-shi-zhi-ding-wu-pin"></a>

Same as above

### \[legsitem]: 玩家护腿是否是指定物品 <a href="#legsitem-wan-jia-hu-tui-shi-fou-shi-zhi-ding-wu-pin" id="legsitem-wan-jia-hu-tui-shi-fou-shi-zhi-ding-wu-pin"></a>

Same as above

### \[bootsitem]: 玩家靴子是否是指定物品 <a href="#bootsitem-wan-jia-xue-zi-shi-fou-shi-zhi-ding-wu-pin" id="bootsitem-wan-jia-xue-zi-shi-fou-shi-zhi-ding-wu-pin"></a>

Same as above

## Other conditions

### \[chance]: There is a specified probability of passing this time

example (20%)

```
conditions:
- [chance]20
- ...
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gyzer.gitbook.io/legendarydailyquests-english/quest-configuration/objective-conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
