Skip to main content

Conditions

Conditions add requirements that must be met for an achievement to progress. Their availability depends on the task type or plugin integration.

info

Lists of entities, items, blocks, and other values are treated as whitelists by default. To treat the listed values as a blacklist, add blacklist: true.

conditions:
- type: items
items:
- "NETHERITE_INGOT"
blacklist: true
tip

Most condition types support wildcards:

conditions:
- type: items
items:
- "*_PICKAXE" # Matches all types of pickaxes

Global conditions​

These conditions are available for all achievement tasks.

ConditionDescriptionRequired arguments
biomesAllowed biomesbiomes
game_modesAllowed game modesgame-modes
has_equippedRequires the player to have an item equippeditems
has_heldRequires the player to hold an itemitems
has_inventory_openChecks whether the player has an inventory open. The player's own inventory is excluded.value (true/false)
has_itemRequires the player to have an item in their inventoryitems
is_flyingChecks whether the player is flyingvalue (true/false)
is_sneakingChecks whether the player is sneakingvalue (true/false)
is_sprintingChecks whether the player is sprintingvalue (true/false)
riding_entityRequires the player to ride an entityentities
worldsAllowed worldsworlds

Task-specific conditions​

These conditions are available only for supported task types. See Tasks for the supported conditions for each task.

ConditionDescriptionRequired arguments
blocksA list of block materialsblocks
crop_ageLimits the crop growth stage to a specific age or MAXage
damage_causesA list of damage causescauses
entitiesA list of entities. MythicMobs is supported with mythicmobs:<id> or mm:<id>.entities
is_hostileChecks whether an entity is hostilevalue (true/false)
itemsA list of itemsitems
potion_typesA list of potion typestypes

Plugin hook conditions​

These conditions are provided through integrations with other plugins.

PluginConditionDescriptionRequired arguments
CustomFishingcustom_fishing_lootA list of loot IDsloot
PlaceholderAPIplaceholderEvaluates a PlaceholderAPI placeholderplaceholder, value, operator
VaultvaultChecks whether a player has a certain balancebalance
WorldGuardregionsChecks whether a player is within a regionregions