- distance:
- absolute:
- max: The maximum value.
- min: The minimum value.
- horizontal:
- max: The maximum value.
- min: The minimum value.
- x:
- max: The maximum value.
- min: The minimum value.
- y:
- max: The maximum value.
- min: The minimum value.
- z:
- max: The maximum value.
- min: The minimum value.
- absolute:
- effects: A list of status effects.
- <minecraft:effect_name>: A status effect with the key name being the status effect name.
- amplifier: The effect amplifier.
- amplifier:
- max: The maximum value.
- min: The minimum value.
- duration: The effect duration in ticks.
- duration:
- max: The maximum value.
- min: The minimum value.
- <minecraft:effect_name>: A status effect with the key name being the status effect name.
- equipment:
- mainhand:
- All possible conditions for items
- offhand:
- All possible conditions for items
- head:
- All possible conditions for items
- chest:
- All possible conditions for items
- legs:
- All possible conditions for items
- feet:
- All possible conditions for items
- mainhand:
- flags: Predicate Flags to be checked.
- is_on_fire: Test whether the entity is or is not on fire.
- is_sneaking: Test whether the entity is or is not sneaking.
- is_sprinting: Test whether the entity is or is not sprinting.
- is_swimming: Test whether the entity is or is not swimming.
- is_baby: Test whether the entity is or is not a baby variant.
- location:
- Tags common to all locations
- nbt: An NBT string.
- player: Player properties to be checked. Fails when entity is not a player.
- advancements: A map of advancements to check.
- <advancement id>: An advancement ID.
- <advancement id>:
- <criteria id>: A criteria ID of the advancement.
- gamemode: The game mode of the player. Must be survival, adventure, creative or spectator.
- level: The experience level of the player.
- level:
- max: The maximum value.
- min: The minimum value.
- recipes: A map of recipes to check.
- <recipe id>: A recipe ID. True if the recipe is known to the player.
- stats: List of statistics to match.
- A statistic. Note that unlike when adding scoreboard objectives, the base (for example, minecraft:custom) and the statistic (for example, minecraft:sneak_time) are split and use proper namespaces instead of the dot-notation (minecraft.custom:minecraft.sneak_time).
- type: The statistic base. Possible values are minecraft:custom, minecraft:crafted, minecraft:used, minecraft:broken, minecraft:mined, minecraft:killed, minecraft:picked_up, minecraft:dropped and minecraft:killed_by.
- stat: The statistic ID. Mostly mimics the criteria used for defining scoreboard objectives.
- value: The value of the statistic.
- value:
- max: The maximum value.
- min: The minimum value.
- A statistic. Note that unlike when adding scoreboard objectives, the base (for example, minecraft:custom) and the statistic (for example, minecraft:sneak_time) are split and use proper namespaces instead of the dot-notation (minecraft.custom:minecraft.sneak_time).
- advancements: A map of advancements to check.
- team: The team the entity belongs to.
- type: An entity ID.
- targeted_entity: The entity which this entity is targeting for attacks.
- All possible conditions for entities
- vehicle: The vehicle that the entity is riding on.
- All possible conditions for entities
- distance:
Advertisement
English
Advertisement