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 60: Line 60:
** {{nbt|compound|minecraft:predicates}}: Matches [[Minecraft:data component predicate]]s. For example, it can be used to check if an entity has any custom name, if a shulker has any color, or perform a partial check on the potion contents of an area effect cloud.
** {{nbt|compound|minecraft:predicates}}: Matches [[Minecraft:data component predicate]]s. For example, it can be used to check if an entity has any custom name, if a shulker has any color, or perform a partial check on the potion contents of an area effect cloud.
*** See [[Minecraft:data component predicate]].
*** See [[Minecraft:data component predicate]].
** {{nbt|compound|minecraft:type_specific}}: To test entity properties that can only be applied to certain entity types or groups of entity types.
** {{nbt|compound|minecraft:type_specific/fishing_hook}}: Test properties unique to [[Minecraft:fishing bobber]] entities. Fails if the entity is not a fishing bobber.
*** {{nbt|string|type}}: Dictates which type-specific properties to test for.<p style="padding-block-end: 1em; margin: 0 0 0 0;">The possible values for {{nbt|string|type}} and associated extra contents:</p>
*** {{nbt|boolean|in_open_water}}: Whether the fishing bobber was in [[Minecraft:Fishing#Junk_and_treasure|open water]].
*** '''minecraft:fishing_hook''': Test properties unique to [[Minecraft:fishing bobber]] entities. Fails if the entity is not a fishing bobber.
** '''{{nbt|compound|minecraft:type_specific/lightning}}''': Test properties unique to [[Minecraft:lightning bolt]] entities. Fails if the entity is not a lightning bolt.
**** {{nbt|boolean|in_open_water}}: Whether the fishing bobber was in [[Minecraft:Fishing#Junk_and_treasure|open water]].
*** {{nbt|int|}}{{nbt|compound|blocks_set_on_fire}}: Tests the number of blocks set on fire by this lightning bolt. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
*** '''minecraft:lightning''': Test properties unique to [[Minecraft:lightning bolt]] entities. Fails if the entity is not a lightning bolt.
*** {{nbt|compound|entity_struck}}: Test the properties of entities struck by this lightning bolt. Passes if at least one of the struck entities matches the entered conditions.
**** {{nbt|int|}}{{nbt|compound|blocks_set_on_fire}}: Tests the number of blocks set on fire by this lightning bolt. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
****{{nbt inherit/conditions/entity}}
**** {{nbt|compound|entity_struck}}: Test the properties of entities struck by this lightning bolt. Passes if at least one of the struck entities matches the entered conditions.
** '''{{nbt|compound|minecraft:type_specific/player}}''': Tests properties unique to players. Fails if the entity is not a player.
***** {{nbt inherit/conditions/entity}}
*** {{nbt|compound|looking_at}}: Test properties of the entity that this player is looking at, as long as it is visible and within a radius of 100 blocks. Visibility is defined through the line from the player's eyes to the entity's eyes, rather than the direction that the player is looking in.
*** '''minecraft:player''': Tests properties unique to players. Fails if the entity is not a player.
****{{nbt inherit/conditions/entity}}
**** {{nbt|compound|looking_at}}: Test properties of the entity that this player is looking at, as long as it is visible and within a radius of 100 blocks. Visibility is defined through the line from the player's eyes to the entity's eyes, rather than the direction that the player is looking in.
*** {{nbt|compound|advancements}}: To test the player's [[Minecraft:advancements]].
***** {{nbt inherit/conditions/entity}}
**** {{nbt|boolean|<advancement id>}}: Test whether an advancement is granted or not granted. Key is an advancement ID, value is <code>true</code> or <code>false</code> to test for granted/not granted respectively.
**** {{nbt|compound|advancements}}: To test the player's [[Minecraft:advancements]].
**** {{nbt|compound|<advancement id>}}: Test whether specific ''criteria'' of an advancement are marked as complete.
***** {{nbt|boolean|<advancement id>}}: Test whether an advancement is granted or not granted. Key is an advancement ID, value is <code>true</code> or <code>false</code> to test for granted/not granted respectively.
***** {{nbt|boolean|<criterion id>}}: Key is one of the criteria of the advancement, value is <code>true</code> or <code>false</code> to test for completed/not completed respectively.
***** {{nbt|compound|<advancement id>}}: Test whether specific ''criteria'' of an advancement are marked as complete.
*** {{nbt|list|gamemode}}: Test the [[Minecraft:game modes]] of this player. Any values in this list will match. Valid values are <code>survival</code>, <code>creative</code>, <code>adventure</code> and <code>spectator</code>.
****** {{nbt|boolean|<criterion id>}}: Key is one of the criteria of the advancement, value is <code>true</code> or <code>false</code> to test for completed/not completed respectively.
*** {{nbt|int}}{{nbt|compound|level}}: Tests if experience level of this player. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|list|gamemode}}: Test the [[Minecraft:game modes]] of this player. Any values in this list will match. Valid values are <code>survival</code>, <code>creative</code>, <code>adventure</code> and <code>spectator</code>.
*** {{nbt|compound|recipes}}: To test if [[Minecraft:recipe]]s are known or unknown to this player.
**** {{nbt|int}}{{nbt|compound|level}}: Tests if experience level of this player. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|boolean|<recipe id>}}: Key is the recipe ID; value is <code>true</code> or <code>false</code> to test for known/unknown respectively.
**** {{nbt|compound|recipes}}: To test if [[Minecraft:recipe]]s are known or unknown to this player.
*** {{nbt|list|stats}}: To test this player's [[Minecraft:statistics]].
***** {{nbt|boolean|<recipe id>}}: Key is the recipe ID; value is <code>true</code> or <code>false</code> to test for known/unknown respectively.
**** {{nbt|compound}} A statistic to test.
**** {{nbt|list|stats}}: To test this player's [[Minecraft:statistics]].
***** {{nbt|string|type}}: The statistic type. Valid values are <code>minecraft:custom</code>, <code>minecraft:crafted</code>, <code>minecraft:used</code>, <code>minecraft:broken</code>, <code>minecraft:mined</code>, <code>minecraft:killed</code>, <code>minecraft:picked_up</code>, <code>minecraft:dropped</code> and <code>minecraft:killed_by</code>.
***** {{nbt|compound}} A statistic to test.
***** {{nbt|string|stat}}: The statistic ID to test.
****** {{nbt|string|type}}: The statistic type. Valid values are <code>minecraft:custom</code>, <code>minecraft:crafted</code>, <code>minecraft:used</code>, <code>minecraft:broken</code>, <code>minecraft:mined</code>, <code>minecraft:killed</code>, <code>minecraft:picked_up</code>, <code>minecraft:dropped</code> and <code>minecraft:killed_by</code>.
***** {{nbt|int}}{{nbt|compound|value}}: Tests the value of the statistic. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
****** {{nbt|string|stat}}: The statistic ID to test.
*** {{nbt|compound|input}}: Test the inputs of this player.
****** {{nbt|int}}{{nbt|compound|value}}: Tests the value of the statistic. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|boolean|forward}}: Tests whether the player is inputting Walk Forward.
**** {{nbt|compound|input}}: Test the inputs of this player.
**** {{nbt|boolean|backward}}: Tests whether the player is inputting Walk Backward.
***** {{nbt|boolean|forward}}: Tests whether the player is inputting Walk Forward.
**** {{nbt|boolean|left}}: Tests whether the player is inputting Strafe Left.
***** {{nbt|boolean|backward}}: Tests whether the player is inputting Walk Backward.
**** {{nbt|boolean|right}}: Tests whether the player is inputting Strafe Right.
***** {{nbt|boolean|left}}: Tests whether the player is inputting Strafe Left.
**** {{nbt|boolean|jump}}: Tests whether the player is inputting Jump.
***** {{nbt|boolean|right}}: Tests whether the player is inputting Strafe Right.
**** {{nbt|boolean|sneak}}: Tests whether the player is inputting Sneak.
***** {{nbt|boolean|jump}}: Tests whether the player is inputting Jump.
**** {{nbt|boolean|sprint}}: Tests whether the player is inputting Sprint.
***** {{nbt|boolean|sneak}}: Tests whether the player is inputting Sneak.
*** {{nbt|compound|food}}: Tests the food level and saturation of the player.
***** {{nbt|boolean|sprint}}: Tests whether the player is inputting Sprint.
**** {{nbt|int}}{{nbt|compound|level}}: Tests the food level of the player. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
**** {{nbt|compound|food}}: Tests the food level and saturation of the player.
**** {{nbt|float}}{{nbt|compound|saturation}}: Tests the saturation of the player. Use an object with {{nbt|float|min}} and {{nbt|float|max}} to test for a range of values (inclusive).
***** {{nbt|int}}{{nbt|compound|level}}: Tests the food level of the player. Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).
** '''{{nbt|compound|minecraft:type_specific/raider}}''' Test properties unique to [[Minecraft:Raid#Raiders|raiders]]. Fails if the entity is not a raider.
***** {{nbt|float}}{{nbt|compound|saturation}}: Tests the saturation of the player. Use an object with {{nbt|float|min}} and {{nbt|float|max}} to test for a range of values (inclusive).
*** {{nbt|boolean|is_captain}}: Tests whether the raider is a captain.
*** '''minecraft:raider''' Test properties unique to [[Minecraft:Raid#Raiders|raiders]]. Fails if the entity is not a raider.
*** {{nbt|boolean|has_raid}}: Tests whether the raider is part of a raid.
**** {{nbt|boolean|is_captain}}: Tests whether the raider is a captain.
** '''{{nbt|compound|minecraft:type_specific/sheep}}''' Test properties unique to [[Minecraft:sheep]]. Fails if the entity is not a sheep.
**** {{nbt|boolean|has_raid}}: Tests whether the raider is part of a raid.
*** {{nbt|boolean|sheared}}: Tests whether the sheep has been sheared (<code>true</code>) or still has wool (<code>false</code>).
*** '''minecraft:sheep''' Test properties unique to [[Minecraft:sheep]]. Fails if the entity is not a sheep.
** '''{{nbt|compound|minecraft:type_specific/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|boolean|sheared}}: Tests whether the sheep has been sheared (<code>true</code>) or still has wool (<code>false</code>).
*** {{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).
*** '''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).
</onlyinclude></div><noinclude>
</onlyinclude></div><noinclude>
[[Category:Top-level data pages]]
[[Category:Top-level data pages]]

Latest revision as of 11:03, 7 October 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)/умова/сутність