<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AAdvancement%2FConditions%2Fentity</id>
	<title>Minecraft:Advancement/Conditions/entity - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AAdvancement%2FConditions%2Fentity"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Advancement/Conditions/entity&amp;action=history"/>
	<updated>2026-04-22T17:58:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Advancement/Conditions/entity&amp;diff=95466&amp;oldid=prev</id>
		<title>SyncBot: Sync: new page from Minecraft</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Advancement/Conditions/entity&amp;diff=95466&amp;oldid=prev"/>
		<updated>2026-04-22T11:05:43Z</updated>

		<summary type="html">&lt;p&gt;Sync: new page from Minecraft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;&lt;br /&gt;
** {{nbt|list}}{{nbt|string|type}}: {{json ref|entity type|Java_Edition_data_values#Entities|tag=1}} &amp;amp;mdash; Test this entity&amp;#039;s type.&lt;br /&gt;
** {{nbt|compound|components}}: Matches exact item component values. Each key in this object corresponds to a component to test, with its value as the desired data to compare. For example, can be used to avoid NBT serialisation when checking for mob variants or the exact text component match of a custom name.&lt;br /&gt;
*** See [[Minecraft:data component format]].&lt;br /&gt;
** {{nbt|compound|distance}}: To test the distance to the entity this predicate is invoked upon. Passes if the calculated distance is between the entered {{nbt|float|min}} and {{nbt|float|max}} values.&lt;br /&gt;
*** {{nbt|float}}{{nbt|compound|absolute}}: Test the distance between the two points in 3D space.&lt;br /&gt;
*** {{nbt|float}}{{nbt|compound|horizontal}}: Test the distance between the two points, ignoring the Y value.&lt;br /&gt;
*** {{nbt|float}}{{nbt|compound|x}}: Test the absolute difference between the X-coordinates of the two points.&lt;br /&gt;
*** {{nbt|float}}{{nbt|compound|y}}: Test the absolute difference between the Y-coordinates of the two points.&lt;br /&gt;
*** {{nbt|float}}{{nbt|compound|z}}: Test the absolute difference between the Z-coordinates of the two points.&lt;br /&gt;
** {{nbt|compound|effects}}: For testing the active [[Minecraft:Effect|status effects]] on the entity.&lt;br /&gt;
*** {{nbt|compound|&amp;lt;minecraft:effect_name&amp;gt;}}: A status effect that must be present.&lt;br /&gt;
**** {{nbt|int}}{{nbt|compound|amplifier}}: Test the effect&amp;#039;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).&lt;br /&gt;
**** {{nbt|int}}{{nbt|compound|duration}}: Test if the effect&amp;#039;s remaining time (in ticks). Test if the effect&amp;#039;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).&lt;br /&gt;
**** {{nbt|bool|ambient}}: Test whether the effect is from a beacon.&lt;br /&gt;
**** {{nbt|bool|visible}}: Test if the effect has visible particles.&lt;br /&gt;
** {{nbt|compound|equipment}}: For testing the items that this entity holds in its equipment slots.&lt;br /&gt;
*** {{nbt|compound|&amp;lt;equipment slot&amp;gt;}}: Test the item in the entity&amp;#039;s equipment slot. Valid keys are {{cd|mainhand|offhand|head|chest|legs|feet|body|d=or}}.&lt;br /&gt;
**** {{nbt inherit/conditions/item}}&lt;br /&gt;
** {{nbt|compound|flags}}: To test flags of the entity.&lt;br /&gt;
*** {{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.&lt;br /&gt;
*** {{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.&lt;br /&gt;
*** {{nbt|bool|is_sneaking}}: Test whether the entity is sneaking (true) or not sneaking (false).&lt;br /&gt;
*** {{nbt|bool|is_sprinting}}: Test whether the entity is sprinting (true) or not sprinting (false). Due to client-server desyncing bugs, it is possible for the player to be sprinting client-side while the server thinks that they have stopped, causing this flag to be false erroneously.&lt;br /&gt;
*** {{nbt|bool|is_swimming}}: Test whether the entity is swimming (true) or not swimming (false).&lt;br /&gt;
*** {{nbt|bool|is_on_ground}}: Test whether the entity is on the ground (true) or not on the ground (false). Teleporting an entity registers them as on the ground for one tick, even if they are teleported into the air.&lt;br /&gt;
*** {{nbt|bool|is_flying}}: Test whether the entity is either gliding with elytra or flying with creative mode (true) or is not (false).&lt;br /&gt;
*** {{nbt|bool|is_fall_flying}}: Test whether the entity is gliding with an elytra (true) or is not (false).&lt;br /&gt;
** {{nbt|compound|location}}: Test properties of this entity&amp;#039;s location.&lt;br /&gt;
*** {{nbt inherit/conditions/location}}&lt;br /&gt;
** {{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 (&amp;lt;code&amp;gt;{ }&amp;lt;/code&amp;gt;) must be included within the string. Additional care is required if the NBT contains quotation marks (&amp;lt;code&amp;gt;&amp;quot; &amp;quot;&amp;lt;/code&amp;gt;) as they must be escaped with a backslash before each (&amp;lt;code&amp;gt;\&amp;quot;&amp;lt;/code&amp;gt;). 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.&lt;br /&gt;
** {{nbt|compound|passenger}}: Test the entities directly riding this entity. At least one passenger must pass this condition for the predicate to pass.&lt;br /&gt;
*** {{nbt inherit/conditions/entity}}&lt;br /&gt;
** {{nbt|compound|slots}}: Test for items in specific inventory [[Minecraft:slot]]s.&lt;br /&gt;
*** {{nbt|compound|&amp;lt;slot range&amp;gt;}}: [[Minecraft:Slot]] or range of slots to test. At least one item matching the condition must exist in this range for the predicate to pass.&lt;br /&gt;
**** {{nbt inherit/conditions/item}}&lt;br /&gt;
** {{nbt|compound|stepping_on}}: Test properties of the block the entity is standing on, using a location predicate. The block may not be directly under the player&amp;#039;s feet if they are crouching off of the side of the block.&lt;br /&gt;
*** {{nbt inherit/conditions/location}}&lt;br /&gt;
** {{nbt|compound|movement_affected_by}}: Test properties of the block {{cd|0.5}} blocks below the block the entity is standing on, using a location predicate.&lt;br /&gt;
*** {{nbt inherit/conditions/location}}&lt;br /&gt;
** {{nbt|string|team}}: Passes if the [[Minecraft:Scoreboard#Teams|team]] of this entity matches this string.&lt;br /&gt;
** {{nbt|compound|targeted_entity}}: Test properties of the entity which this mob&amp;#039;s AI is targeting for attacks.&lt;br /&gt;
*** {{nbt inherit/conditions/entity}}&lt;br /&gt;
** {{nbt|compound|vehicle}}: Test properties of the [[Minecraft:Riding#Behaviors|vehicle]] entity that this entity is mounted on.&lt;br /&gt;
*** {{nbt inherit/conditions/entity}}&lt;br /&gt;
** {{nbt|compound|movement}}: Test the movement of the entity. For all fields, use an object with {{nbt|double|min}} and {{nbt|double|max}} to test for a range of values (inclusive).&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|x}}: Test the velocity along the x-axis in &amp;#039;&amp;#039;blocks per second&amp;#039;&amp;#039;.&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|y}}: Test the velocity along the y-axis in &amp;#039;&amp;#039;blocks per second&amp;#039;&amp;#039;.&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|z}}: Test the velocity along the z-axis in &amp;#039;&amp;#039;blocks per second&amp;#039;&amp;#039;.&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|speed}}: Test the overall movement speed in &amp;#039;&amp;#039;blocks per second&amp;#039;&amp;#039;.&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|horizontal_speed}}: Test the horizontal movement speed in &amp;#039;&amp;#039;blocks per second&amp;#039;&amp;#039;. This tests the combined magnitude of the x and z velocities added together.&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|vertical_speed}}: Test the vertical movement speed in &amp;#039;&amp;#039;blocks per second&amp;#039;&amp;#039;. This tests the absolute value of the {{code|y}} velocity.&lt;br /&gt;
*** {{nbt|double}}{{nbt|compound|fall_distance}}: Test the fall distance of the entity in blocks.&lt;br /&gt;
** {{nbt|int|periodic_tick}}: Tests that the age of the entity is divisible by the given positive integer. If the entity is loaded but not simulated, this check may be stuck as either passing or failing every tick until the entity gets close enough to a player again, so it should not be used for important delays.&lt;br /&gt;
** {{nbt|compound|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.&lt;br /&gt;
*** See [[Minecraft:data component predicate]].&lt;br /&gt;
** {{nbt|compound|type_specific}}: To test entity properties that can only be applied to certain entity types or groups of entity types.&lt;br /&gt;
*** {{nbt|string|type}}: Dictates which type-specific properties to test for.&amp;lt;p style=&amp;quot;padding-block-end: 1em; margin: 0 0 0 0;&amp;quot;&amp;gt;The possible values for {{nbt|string|type}} and associated extra contents:&amp;lt;/p&amp;gt;&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;minecraft:fishing_hook&amp;#039;&amp;#039;&amp;#039;: Test properties unique to [[Minecraft:fishing bobber]] entities. Fails if the entity is not a fishing bobber.&lt;br /&gt;
**** {{nbt|boolean|in_open_water}}: Whether the fishing bobber was in [[Minecraft:Fishing#Junk_and_treasure|open water]].&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;minecraft:lightning&amp;#039;&amp;#039;&amp;#039;: Test properties unique to [[Minecraft:lightning bolt]] entities. Fails if the entity is not a lightning bolt.&lt;br /&gt;
**** {{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).&lt;br /&gt;
**** {{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.&lt;br /&gt;
***** {{nbt inherit/conditions/entity}}&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;minecraft:player&amp;#039;&amp;#039;&amp;#039;: Tests properties unique to players. Fails if the entity is not a player.&lt;br /&gt;
**** {{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&amp;#039;s eyes to the entity&amp;#039;s eyes, rather than the direction that the player is looking in.&lt;br /&gt;
***** {{nbt inherit/conditions/entity}}&lt;br /&gt;
**** {{nbt|compound|advancements}}: To test the player&amp;#039;s [[Minecraft:advancements]].&lt;br /&gt;
***** {{nbt|boolean|&amp;lt;advancement id&amp;gt;}}: Test whether an advancement is granted or not granted. Key is an advancement ID, value is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to test for granted/not granted respectively.&lt;br /&gt;
***** {{nbt|compound|&amp;lt;advancement id&amp;gt;}}: Test whether specific &amp;#039;&amp;#039;criteria&amp;#039;&amp;#039; of an advancement are marked as complete.&lt;br /&gt;
****** {{nbt|boolean|&amp;lt;criterion id&amp;gt;}}: Key is one of the criteria of the advancement, value is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to test for completed/not completed respectively.&lt;br /&gt;
**** {{nbt|list|gamemode}}: Test the [[Minecraft:game modes]] of this player. Any values in this list will match. Valid values are &amp;lt;code&amp;gt;survival&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;creative&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;adventure&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;spectator&amp;lt;/code&amp;gt;.&lt;br /&gt;
**** {{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).&lt;br /&gt;
**** {{nbt|compound|recipes}}: To test if [[Minecraft:recipe]]s are known or unknown to this player.&lt;br /&gt;
***** {{nbt|boolean|&amp;lt;recipe id&amp;gt;}}: Key is the recipe ID; value is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to test for known/unknown respectively.&lt;br /&gt;
**** {{nbt|list|stats}}: To test this player&amp;#039;s [[Minecraft:statistics]].&lt;br /&gt;
***** {{nbt|compound}} A statistic to test.&lt;br /&gt;
****** {{nbt|string|type}}: The statistic type. Valid values are &amp;lt;code&amp;gt;minecraft:custom&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:crafted&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:used&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:broken&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:mined&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:killed&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:picked_up&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:dropped&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;minecraft:killed_by&amp;lt;/code&amp;gt;.&lt;br /&gt;
****** {{nbt|string|stat}}: The statistic ID to test.&lt;br /&gt;
****** {{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).&lt;br /&gt;
**** {{nbt|compound|input}}: Test the inputs of this player.&lt;br /&gt;
***** {{nbt|boolean|forward}}: Tests whether the player is inputting Walk Forward.&lt;br /&gt;
***** {{nbt|boolean|backward}}: Tests whether the player is inputting Walk Backward.&lt;br /&gt;
***** {{nbt|boolean|left}}: Tests whether the player is inputting Strafe Left.&lt;br /&gt;
***** {{nbt|boolean|right}}: Tests whether the player is inputting Strafe Right.&lt;br /&gt;
***** {{nbt|boolean|jump}}: Tests whether the player is inputting Jump.&lt;br /&gt;
***** {{nbt|boolean|sneak}}: Tests whether the player is inputting Sneak.&lt;br /&gt;
***** {{nbt|boolean|sprint}}: Tests whether the player is inputting Sprint.&lt;br /&gt;
**** {{nbt|compound|food}}: Tests the food level and saturation of the player.&lt;br /&gt;
***** {{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).&lt;br /&gt;
***** {{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).&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;minecraft:raider&amp;#039;&amp;#039;&amp;#039; Test properties unique to [[Minecraft:Raid#Raiders|raiders]]. Fails if the entity is not a raider.&lt;br /&gt;
**** {{nbt|boolean|is_captain}}: Tests whether the raider is a captain.&lt;br /&gt;
**** {{nbt|boolean|has_raid}}: Tests whether the raider is part of a raid.&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;minecraft:sheep&amp;#039;&amp;#039;&amp;#039; Test properties unique to [[Minecraft:sheep]]. Fails if the entity is not a sheep.&lt;br /&gt;
**** {{nbt|boolean|sheared}}: Whether the sheep has been sheared (&amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;) or still has wool (&amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;).&lt;br /&gt;
*** &amp;#039;&amp;#039;&amp;#039;minecraft:slime&amp;#039;&amp;#039;&amp;#039;{{until|JE 26.2}} &amp;#039;&amp;#039;&amp;#039;minecraft:cube_mob&amp;#039;&amp;#039;&amp;#039;{{upcoming|JE 26.2}} Test properties unique to [[Minecraft:slime]], [[Minecraft:magma cube]], and [[Minecraft:sulfur cube]]{{upcoming|JE 26.2}} entities. Fails if the entity is not a slime, magma cube, or sulfur cube.&lt;br /&gt;
**** {{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 &amp;lt;code&amp;gt;Size&amp;lt;/code&amp;gt; NBT tag). Use an object with {{nbt|int|min}} and {{nbt|int|max}} to test for a range of values (inclusive).&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Top-level data pages]]&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:fr:Progrès/Conditions/Entité]]&lt;br /&gt;
[[Minecraft:ja:進捗/条件/entity]]&lt;br /&gt;
[[Minecraft:ko:발전 과제/조건/개체]]&lt;br /&gt;
[[Minecraft:nl:Vooruitgangen/criteria/entiteit]]&lt;br /&gt;
[[Minecraft:pt:Progressos/Condições/entidade]]&lt;br /&gt;
[[Minecraft:ru:Достижение (Java Edition)/условия/сущность]]&lt;br /&gt;
[[Minecraft:th:ความก้าวหน้า/Conditions/entity]]&lt;br /&gt;
[[Minecraft:uk:Досягнення (Java Edition)/умова/сутність]]&lt;br /&gt;
[[Minecraft:zh:编码格式/CritereonPredicate#实体谓词]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SyncBot</name></author>
	</entry>
</feed>