Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Advancement/Conditions/entity: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 13: Line 13:
*** {{nbt|compound|<minecraft:effect_name>}}: A status effect that must be present.
*** {{nbt|compound|<minecraft:effect_name>}}: A status effect that must be present.
**** {{nbt|int}}{{nbt|compound|amplifier}}: Test the effect's amplifier. Level I is represented by 0. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|int}}{{nbt|compound|amplifier}}: Test the effect's amplifier. Level I is represented by 0. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|int}}{{nbt|compound|duration}}: Test if the effect's remaining time (in ticks). Test if the effect's remaining time (in ticks) is between two numbers, inclusive. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|int}}{{nbt|compound|duration}}: Test if the effect's remaining time (in ticks) is between two numbers, inclusive. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|bool|ambient}}: Test whether the effect is from a beacon.
**** {{nbt|bool|ambient}}: Test whether the effect is from a beacon.
**** {{nbt|bool|visible}}: Test if the effect has visible particles.
**** {{nbt|bool|visible}}: Test if the effect has visible particles.
** {{nbt|compound|minecraft:entity_tags}}: For testing the {{slink|Scoreboard|Tags}} of an entity (i.e. ones set with the {{cmd|tag}} command).
*** {{nbt|list|any_of}}: Optional list of {{nbt|string|Strings}}; Tests if the entity has at least one of the listed tags.
*** {{nbt|list|all_of}}: Optional list of {{nbt|string|Strings}}; Tests if the entity has all of the listed tags.
*** {{nbt|list|none_of}}: Optional list of {{nbt|string|Strings}}; Tests if the entity has none of the listed tags.
** {{nbt|compound|minecraft:equipment}}: For testing the items that this entity holds in its equipment slots.
** {{nbt|compound|minecraft:equipment}}: For testing the items that this entity holds in its equipment slots.
*** {{nbt|compound|<equipment slot>}}: Test the item in the entity's equipment slot. Valid keys are {{cd|mainhand|offhand|head|chest|legs|feet|body|d=or}}.
*** {{nbt|compound|<equipment slot>}}: Test the item in the entity's equipment slot. Valid keys are {{cd|mainhand|offhand|head|chest|legs|feet|body|d=or}}.
Line 95: Line 99:
**** {{nbt|boolean|has_raid}}: Tests whether the raider is part of a raid.
**** {{nbt|boolean|has_raid}}: Tests whether the raider is part of a raid.
*** '''minecraft:sheep''' Test properties unique to [[Minecraft:sheep]]. Fails if the entity is not a sheep.
*** '''minecraft:sheep''' Test properties unique to [[Minecraft:sheep]]. Fails if the entity is not a sheep.
**** {{nbt|boolean|sheared}}: Whether the sheep has been sheared (<code>true</code>) or still has wool (<code>false</code>).
**** {{nbt|boolean|sheared}}: Tests whether the sheep has been sheared (<code>true</code>) or still has wool (<code>false</code>).
*** '''minecraft:cube_mob''' Test properties unique to [[Minecraft:slime]], [[Minecraft:magma cube]], and [[Minecraft:sulfur cube]] entities. Fails if the entity is not a slime, magma cube, or sulfur cube.
*** '''minecraft:cube_mob''' Test properties unique to [[Minecraft:slime]], [[Minecraft:magma cube]], and [[Minecraft:sulfur cube]] entities. Fails if the entity is not a slime, magma cube, or sulfur cube.
**** {{nbt|int}}{{nbt|compound|size}}: Tests the size of the slime, magma cube, or sulfur cube, starting with 1 as the smallest size (always 1 more than the <code>Size</code> NBT tag). Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|int}}{{nbt|compound|size}}: Tests the size of the slime, magma cube, or sulfur cube, starting with 1 as the smallest size (always 1 more than the <code>Size</code> NBT tag). Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
Line 109: Line 113:
[[Minecraft:th:ความก้าวหน้า/Conditions/entity]]
[[Minecraft:th:ความก้าวหน้า/Conditions/entity]]
[[Minecraft:uk:Досягнення (Java Edition)/умова/сутність]]
[[Minecraft:uk:Досягнення (Java Edition)/умова/сутність]]
[[Minecraft:zh:编码格式/CritereonPredicate#实体谓词]]
[[Minecraft:zh:编码格式/CriterionPredicate]]
</noinclude>
</noinclude>

Revision as of 11:00, 14 August 2026

Minecraft:fr:Progrès/Conditions/Entité Minecraft:ja:進捗/条件/entity Minecraft:ko:발전 과제/조건/개체 Minecraft:nl:Vooruitgangen/criteria/entiteit Minecraft:pt:Progressos/Condições/entidade Minecraft:ru:Достижение (Java Edition)/условия/сущность Minecraft:th:ความก้าวหน้า/Conditions/entity Minecraft:uk:Досягнення (Java Edition)/умова/сутність Minecraft:zh:编码格式/CriterionPredicate