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: new page from Minecraft
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 10: Line 10:
*** {{nbt|float}}{{nbt|compound|y}}: Test the absolute difference between the Y-coordinates of the two points.
*** {{nbt|float}}{{nbt|compound|y}}: Test the absolute difference between the Y-coordinates of the two points.
*** {{nbt|float}}{{nbt|compound|z}}: Test the absolute difference between the Z-coordinates of the two points.
*** {{nbt|float}}{{nbt|compound|z}}: Test the absolute difference between the Z-coordinates of the two points.
** {{nbt|compound|effects}}: For testing the active [[Minecraft:Effect|status effects]] on the entity.
** {{nbt|compound|effects}}: For testing the active [[Minecraft:Effect|status effects]] on the entity. Hidden effects are ignored.
*** {{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).
Line 20: Line 20:
**** {{nbt inherit/conditions/item}}
**** {{nbt inherit/conditions/item}}
** {{nbt|compound|flags}}: To test flags of the entity.
** {{nbt|compound|flags}}: To test flags of the entity.
*** {{nbt|bool|is_baby}}: Test whether the entity a baby variant (true) or an adult variant (false). Passes no matter what if this entity does not have baby and adult variants.
*** {{nbt|bool|is_baby}}: Test whether the entity is a baby variant (true) or an adult variant (false). Passes no matter what if this entity does not have baby and adult variants.
*** {{nbt|bool|is_on_fire}}: Test whether the entity has caught fire (true) or is not on fire (false). Does not pass if the entity has only been taking damage from a fire block for less than one second.
*** {{nbt|bool|is_on_fire}}: Test whether the entity has caught fire (true) or is not on fire (false). Does not pass if the entity has only been taking damage from a fire block for less than one second.
*** {{nbt|bool|is_sneaking}}: Test whether the entity is sneaking (true) or not sneaking (false).
*** {{nbt|bool|is_sneaking}}: Test whether the entity is sneaking (true) or not sneaking (false).
Line 30: Line 30:
** {{nbt|compound|location}}: Test properties of this entity's location.
** {{nbt|compound|location}}: Test properties of this entity's location.
*** {{nbt inherit/conditions/location}}
*** {{nbt inherit/conditions/location}}
** {{nbt|string}}{{nbt|compound|nbt}}: Test for a partial NBT data match with this entity. This is always the last test to be performed by the predicate, as it is the slowest check. Can either be specified as an NBT (compound) object, or as a string containing the SNBT representation of the NBT compound, meaning the outer braces (<code>{ }</code>) must be included within the string. Additional care is required if the NBT contains quotation marks (<code>" "</code>) as they must be escaped with a backslash before each (<code>\"</code>). If specified as an object rather than a string in a JSON file, the data type of any number value is implicitly checked for as the smallest data type that that number fits into, causing the test to fail and requiring you use the string format instead to specify the data type explicitly.
** {{nbt|string}}{{nbt|compound|nbt}}: Test for a partial NBT data match with this entity. This is always the last test to be performed by the predicate, as it is the slowest check. Can either be specified as an NBT (compound) object, or as a string containing the SNBT representation of the NBT compound, meaning the outer braces (<code>{ }</code>) must be included within the string. Additional care is required if the SNBT contains quotation marks (<code>" "</code>) as they must be escaped with a backslash before each (<code>\"</code>). If specified as an object rather than a string in a JSON file, the data type of any number value is implicitly checked for as the smallest data type that that number fits into, causing the test to fail for any other type and requiring the string format instead to specify the data type explicitly.
** {{nbt|compound|passenger}}: Test the entities directly riding this entity. At least one passenger must pass this condition for the predicate to pass.
** {{nbt|compound|passenger}}: Test the entities directly riding this entity. At least one passenger must pass this condition for the predicate to pass.
*** {{nbt inherit/conditions/entity}}
*** {{nbt inherit/conditions/entity}}

Latest revision as of 11:10, 5 May 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:编码格式/CritereonPredicate#实体谓词