Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
| Entity Filter Types | Description |
|---|---|
| actor_health | Tests the health of the subject. |
| all_slots_empty | Returns true when the designated equipment location for the subject entity is completely empty. |
| any_slot_empty | Returns true when the designated equipment location for the subject entity has any empty slot. |
| bool_property | Returns true when the bool actor property matches the value provided. |
| clock_time | Compares the current time with a float value in the range (0.0, 1.0). 0.0= Noon 0.25= Sunset 0.5= Midnight 0.75= Sunrise |
| distance_to_nearest_player | Compares the distance to the nearest Player with a float value. |
| enum_property | Returns true when the actor property matches the value provided. |
| float_property | Returns true when the float actor property matches the value provided. |
| has_ability | Returns true when the subject entity has the named ability. |
| has_biome_tag | Tests whether the biome the subject is in has the specified tag. |
| has_component | Returns true when the subject entity contains the named component. |
| has_container_open | Returns true when the subject Player entity has opened a container. |
| has_damage | Returns true when the subject entity receives the named damage type. |
| has_damaged_equipment | Tests for the presence of a damaged named item in the designated slot of the subject entity. |
| has_equipment | Tests for the presence of a named item in the designated slot of the subject entity. |
| has_equipment_block_tag | Tests for the presence of a block item with the specified block tag in the specified slot of the entity. |
| has_equipment_tag | Tests for the presence of an item with the named tag in the designated slot of the subject entity. |
| has_item_with_component | Returns true when the subject entity is holding a item with the specified component. |
| has_mob_effect | Tests whether the Subject has the specified mob effect. |
| has_nametag | Tests if the subject has been given a custom name. |
| has_property | Tests for the presence of a property of the subject entity. |
| has_ranged_weapon | Returns true when the subject entity is holding a ranged weapon like a bow or crossbow. |
| has_same_equipment_in_slot_as | Returns whether the subject entity has the same item equipped in the specified slot as calling entity. |
| has_silk_touch | Tests if the subject is holding an item with silk touch. |
| has_tag | Returns true if the subject entity has the tag provided. |
| has_target | Returns true if the subject entity has a valid target. |
| has_trade_supply | Tests whether the target has any trade supply left. |
| home_distance | Tests the distance between the subject and its home. |
| hourly_clock_time | Compares the current 24 hour time with an int value in the range[0, 24000] |
| inactivity_timer | Tests if the specified duration in seconds of inactivity for despawning has been reached. |
| int_property | Returns true when the int actor property matches the value provided. |
| in_block | Returns true when the subject entity is inside a specified Block type. |
| in_caravan | Returns true if the subject entity is in a caravan. |
| in_clouds | Returns true when the subject entity is in the clouds. |
| in_contact_with_water | Returns true when the subject entity in contact with any water: water, rain, splash water bottle. |
| in_lava | Returns true when the subject entity is in lava. |
| in_nether | Returns true when the subject entity is in Nether. |
| in_overworld | Returns true when the subject entity is in Overworld. |
| in_water | Returns true when the subject entity is in water. |
| in_water_or_rain | Returns true when the subject entity is in water or rain. |
| is_altitude | Tests the current altitude against a provided value. |
| is_avoiding_mobs | Returns true if the subject entity is fleeing from other mobs. |
| is_baby | Returns true when the subject entity is a baby. |
| is_biome | Tests whether the Subject is currently in the named biome. |
| is_block | Returns true when the block has the given name. |
| is_bound_to_creaking_heart | Tests that the Creaking Heart that spawned the subject Creaking still exists. |
| is_brightness | Tests the current brightness against a provided value in the range (0.0f, 1.0f). |
| is_climbing | Returns true if the subject entity is climbing. |
| is_color | Returns true if the subject entity is the named color. |
| is_controlling_passenger_family | Returns true when the subject entity's controlling passenger is a member of the named family. |
| is_daytime | Returns true during the daylight hours. |
| is_difficulty | Tests the current difficulty level of the game. |
| is_family | Returns true when the subject entity is a member of the named family. |
| is_game_rule | Tests whether a named game rule is active. |
| is_humid | Tests whether the Subject is in an area with humidity |
| is_immobile | Returns true if the subject entity is immobile. |
| is_in_same_vehicle | Returns whether the subject entity is in the same vehicle as the calling entity. |
| is_in_village | Tests whether the Subject is inside the bounds of a village. |
| is_leashed | Returns true if the subject entity is leashed. |
| is_leashed_to | Returns true if the subject entity leashed to the calling entity. |
| is_mark_variant | Returns true if the subject entity is the mark variant number provided. |
| is_missing_health | Tests if the subject is not at full health. |
| is_moving | Returns true if the subject entity is moving. |
| is_navigating | Tests if the subject is currently pathfinding. |
| is_owner | Returns true if the subject entity is the owner of the calling entity. |
| is_panicking | Tests if the subject is panicking. |
| is_persistent | Tests if the subject's persistence matches the bool value passed in. |
| is_raider | Tests if the subject is a raider. |
| is_riding | Returns true if the subject entity is riding on another entity. |
| is_riding_self | Returns true if the subject entity is riding the calling entity. |
| is_sitting | Tests if the subject is sitting. |
| is_skin_id | Returns true if the subject entity is the skin id number provided. |
| is_sleeping | Tests whether the Subject is sleeping. |
| is_sneaking | Returns true if the subject entity is sneaking. |
| is_sneak_held | Returns true if the subject entity has the sneak input held. |
| is_snow_covered | Tests whether the Subject is in an area with snow cover |
| is_sprinting | Tests if the subject is sprinting. |
| is_tamed | Tests whether the Subject is tamed. |
| is_target | Returns true if the subject entity is the target of the calling entity. |
| is_temperature_type | Tests whether the current temperature is a given type. |
| is_temperature_value | Tests the current temperature against a provided value in the range (0.0, 1.0) where 0.0f is the coldest temp and 1.0f is the hottest. |
| is_underground | Returns true when the subject entity is underground. |
| is_underwater | Returns true when the subject entity is under water. |
| is_variant | Returns true if the subject entity is the variant number provided. |
| is_vehicle_family | Returns true when the subject entity's vehicle is a member of the named family. |
| is_visible | Returns true if the subject entity is visible. |
| is_waterlogged | Tests if the subject block is submerged in water. |
| is_weather | DEPRECATED |
| light_level | Tests is the mob is outside of the specified light level range (0, 16). |
| moon_intensity | Compares the current moon intensity with a float value in the range (0.0, 1.0) |
| moon_phase | Compares the current moon phase with an integer value in the range (0, 7). |
| on_fire | Tests if the subject is on fire. |
| on_ground | Returns true when the subject entity is on ground. |
| on_hot_block | Tests if the subject is on a hot block. |
| on_ladder | Returns true when the subject entity is on a ladder. |
| owner_distance | Tests the distance between the subject and its owner. |
| random_chance | Returns true if the random chance rolls 0 out of a specified max range. |
| redstone_strength_at_position | Tests the redstone strength at the subject's position. |
| rider_count | Returns the number of riders on this entity. |
| surface_mob | Tests if the subject is a surface mob. |
| taking_fire_damage | Tests if the subject is taking fire damage. |
| target_distance | Tests the distance between the calling entity and its target. |
| trusts | Returns true if the subject is trusted by entity. |
| was_last_hurt_by | Tests if the subject is the last player who attacked the entity in the last 400 seconds, or the last mob to do so in the last 60 seconds. |
| weather | Tests the current weather in the dimension against a provided weather value. |
| weather_at_position | Tests the current weather, at the actor's position, against a provided weather value. |
| y_rotation | Returns the Y rotation of this entity. |