Type object
File match **/data/*/predicates/*.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/minecraft-data-pack-predicate/latest.json
Source https://www.schemastore.org/minecraft-predicate.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Configuration file defining a predicate for a data pack for Minecraft.

Properties

conditions string

The condition's ID.

Values: "minecraft:alternative" "minecraft:block_state_property" "minecraft:damage_source_properties" "minecraft:entity_properties" "minecraft:entity_scores" "minecraft:inverted" "minecraft:killed_by_player" "minecraft:location_check" "minecraft:match_tool" "minecraft:random_chance" "minecraft:random_chance_with_looting" "minecraft:reference" "minecraft:survives_explosion" "minecraft:table_bonus" "minecraft:time_check" "minecraft:weather_check" "minecraft:value_check"

All of

1. variant
2. variant
3. variant
4. variant
5. variant
6. variant
7. variant
8. variant
9. variant
10. variant
11. variant
12. variant
13. variant
14. variant
15. variant
16. variant
17. variant

Definitions

numberRange object
max number

The max value.

min number

The minimum value.

integerRange
max object
All of: variant, variant, variant, variant
1 nested properties
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
min object
All of: variant, variant, variant, variant
1 nested properties
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
numberProvider object
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
enchantments object[]
tagsCommonToAllDamageTypes object
bypasses_armor boolean

Checks if the damage bypassed the armor of the player (suffocation damage predominantly).

bypasses_invulnerability boolean

Checks if the damage bypassed the invulnerability status of the player (void or /kill damage).

bypasses_magic boolean

Checks if the damage was caused by starvation.

direct_entity object

The entity that was the direct cause of the damage.

is_explosion boolean

Checks if the damage originated from an explosion.

is_fire boolean

Checks if the damage originated from fire.

is_magic boolean

Checks if the damage originated from magic.

is_projectile boolean

Checks if the damage originated from a projectile.

is_lightning boolean

Checks if the damage originated from lightning.

source_entity object
14 nested properties
distance object
5 nested properties
absolute object
horizontal object
x object
y object
z object
effects Record<string, object>

A map of status effects.

equipment object
6 nested properties
mainhand object
offhand object
head object
chest object
legs object
feet object
flags object

Predicate Flags to be checked.

5 nested properties
is_on_fire

Test whether the entity is or is not on fire.

is_sneaking boolean

Test whether the entity is or is not sneaking.

is_sprinting boolean

Test whether the entity is or is not sprinting.

is_swimming boolean

Test whether the entity is or is not swimming.

is_baby boolean

Test whether the entity is or is not a baby variant.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

2 nested properties
blocks_set_on_fire integer

Number of blocks set on fire by this lightning bolt.

entity_struck object
location object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

nbt string

An NBT string.

passenger object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
player object

Player properties to be checked. Fails when entity is not a player.

6 nested properties
looking_at object
advancements Record<string, boolean | object>

A map of advancements to check.

gamemode string

The game mode of the player.

Values: "survival" "adventure" "creative" "spectator"
level
recipes Record<string, boolean>

A map of recipes to check.

stats Record<string, object>

List of statistics to match.

stepping_on object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
vehicle object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
tagsCommonToAllItems object
count
2 nested properties
max object
All of: variant, variant, variant, variant
1 nested properties
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
min object
All of: variant, variant, variant, variant
1 nested properties
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
durability
2 nested properties
max object
All of: variant, variant, variant, variant
1 nested properties
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
min object
All of: variant, variant, variant, variant
1 nested properties
type string

The number provider type.

Values: "minecraft:constant" "minecraft:uniform" "minecraft:binomial" "minecraft:score"
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

tagsCommonToAllLocations object
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

4 nested properties
blocks array

A list of block IDs.

tag string

The block tag.

nbt string

The block NBT.

state object

A map of block property names to values. Test will fail if the block doesn't match.

1 nested properties
key
dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

3 nested properties
fluid string

The fluid ID.

tag string

The fluid tag.

state
2 nested properties
max object
All of: variant, variant, variant, variant
min object
All of: variant, variant, variant, variant
light object

The light at the location.

1 nested properties
light
2 nested properties
max object
All of: variant, variant, variant, variant
min object
All of: variant, variant, variant, variant
position object
3 nested properties
x object
2 nested properties
max number

The max value.

min number

The minimum value.

y object
2 nested properties
max number

The max value.

min number

The minimum value.

z object
2 nested properties
max number

The max value.

min number

The minimum value.

smokey boolean

True if the block is closely above a campfire or soul campfire.

tagsCommonToAllEntities object
distance object
5 nested properties
absolute object
2 nested properties
max number

The max value.

min number

The minimum value.

horizontal object
2 nested properties
max number

The max value.

min number

The minimum value.

x object
2 nested properties
max number

The max value.

min number

The minimum value.

y object
2 nested properties
max number

The max value.

min number

The minimum value.

z object
2 nested properties
max number

The max value.

min number

The minimum value.

effects Record<string, object>

A map of status effects.

equipment object
6 nested properties
mainhand object
8 nested properties
count
durability
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

offhand object
8 nested properties
count
durability
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

head object
8 nested properties
count
durability
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

chest object
8 nested properties
count
durability
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

legs object
8 nested properties
count
durability
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

feet object
8 nested properties
count
durability
enchantments object[]
stored_enchantments object[]
items array

List of item IDs.

nbt string

An NBT string.

potion string

A brewed potion ID.

tag string

An item data pack tag.

flags object

Predicate Flags to be checked.

5 nested properties
is_on_fire

Test whether the entity is or is not on fire.

is_sneaking boolean

Test whether the entity is or is not sneaking.

is_sprinting boolean

Test whether the entity is or is not sprinting.

is_swimming boolean

Test whether the entity is or is not swimming.

is_baby boolean

Test whether the entity is or is not a baby variant.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

2 nested properties
blocks_set_on_fire integer

Number of blocks set on fire by this lightning bolt.

entity_struck object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
location object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

4 nested properties
blocks array

A list of block IDs.

tag string

The block tag.

nbt string

The block NBT.

state object

A map of block property names to values. Test will fail if the block doesn't match.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

3 nested properties
fluid string

The fluid ID.

tag string

The fluid tag.

state
light object

The light at the location.

1 nested properties
light
position object
3 nested properties
smokey boolean

True if the block is closely above a campfire or soul campfire.

nbt string

An NBT string.

passenger object
14 nested properties
distance object
5 nested properties
absolute object
horizontal object
x object
y object
z object
effects Record<string, object>

A map of status effects.

equipment object
6 nested properties
mainhand object
offhand object
head object
chest object
legs object
feet object
flags object

Predicate Flags to be checked.

5 nested properties
is_on_fire

Test whether the entity is or is not on fire.

is_sneaking boolean

Test whether the entity is or is not sneaking.

is_sprinting boolean

Test whether the entity is or is not sprinting.

is_swimming boolean

Test whether the entity is or is not swimming.

is_baby boolean

Test whether the entity is or is not a baby variant.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

2 nested properties
blocks_set_on_fire integer

Number of blocks set on fire by this lightning bolt.

entity_struck object
location object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

nbt string

An NBT string.

passenger object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
player object

Player properties to be checked. Fails when entity is not a player.

6 nested properties
looking_at object
advancements Record<string, boolean | object>

A map of advancements to check.

gamemode string

The game mode of the player.

Values: "survival" "adventure" "creative" "spectator"
level
recipes Record<string, boolean>

A map of recipes to check.

stats Record<string, object>

List of statistics to match.

stepping_on object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
vehicle object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
player object

Player properties to be checked. Fails when entity is not a player.

6 nested properties
looking_at object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
advancements Record<string, boolean | object>

A map of advancements to check.

gamemode string

The game mode of the player.

Values: "survival" "adventure" "creative" "spectator"
level
2 nested properties
max object
All of: variant, variant, variant, variant
min object
All of: variant, variant, variant, variant
recipes Record<string, boolean>

A map of recipes to check.

stats Record<string, object>

List of statistics to match.

stepping_on object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

4 nested properties
blocks array

A list of block IDs.

tag string

The block tag.

nbt string

The block NBT.

state object

A map of block property names to values. Test will fail if the block doesn't match.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

3 nested properties
fluid string

The fluid ID.

tag string

The fluid tag.

state
light object

The light at the location.

1 nested properties
light
position object
3 nested properties
smokey boolean

True if the block is closely above a campfire or soul campfire.

team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
14 nested properties
distance object
5 nested properties
absolute object
horizontal object
x object
y object
z object
effects Record<string, object>

A map of status effects.

equipment object
6 nested properties
mainhand object
offhand object
head object
chest object
legs object
feet object
flags object

Predicate Flags to be checked.

5 nested properties
is_on_fire

Test whether the entity is or is not on fire.

is_sneaking boolean

Test whether the entity is or is not sneaking.

is_sprinting boolean

Test whether the entity is or is not sprinting.

is_swimming boolean

Test whether the entity is or is not swimming.

is_baby boolean

Test whether the entity is or is not a baby variant.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

2 nested properties
blocks_set_on_fire integer

Number of blocks set on fire by this lightning bolt.

entity_struck object
location object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

nbt string

An NBT string.

passenger object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
player object

Player properties to be checked. Fails when entity is not a player.

6 nested properties
looking_at object
advancements Record<string, boolean | object>

A map of advancements to check.

gamemode string

The game mode of the player.

Values: "survival" "adventure" "creative" "spectator"
level
recipes Record<string, boolean>

A map of recipes to check.

stats Record<string, object>

List of statistics to match.

stepping_on object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
vehicle object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
vehicle object
14 nested properties
distance object
5 nested properties
absolute object
horizontal object
x object
y object
z object
effects Record<string, object>

A map of status effects.

equipment object
6 nested properties
mainhand object
offhand object
head object
chest object
legs object
feet object
flags object

Predicate Flags to be checked.

5 nested properties
is_on_fire

Test whether the entity is or is not on fire.

is_sneaking boolean

Test whether the entity is or is not sneaking.

is_sprinting boolean

Test whether the entity is or is not sprinting.

is_swimming boolean

Test whether the entity is or is not swimming.

is_baby boolean

Test whether the entity is or is not a baby variant.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

2 nested properties
blocks_set_on_fire integer

Number of blocks set on fire by this lightning bolt.

entity_struck object
location object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

nbt string

An NBT string.

passenger object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
player object

Player properties to be checked. Fails when entity is not a player.

6 nested properties
looking_at object
advancements Record<string, boolean | object>

A map of advancements to check.

gamemode string

The game mode of the player.

Values: "survival" "adventure" "creative" "spectator"
level
recipes Record<string, boolean>

A map of recipes to check.

stats Record<string, object>

List of statistics to match.

stepping_on object
8 nested properties
biome string

The biome the entity is currently in.

Values: "badlands" "badlands_plateau" "beach" "birch_forest" "birch_forest_hills" "cold_ocean" "dark_forest" "dark_forest_hills" "deep_cold_ocean" "deep_frozen_ocean" "deep_lukewarm_ocean" "deep_ocean" "deep_warm_ocean" "desert" "desert_hills" "desert_lakes" "end_barrens" "end_highlands" "end_midlands" "eroded_badlands" "flower_forest" "forest" "frozen_ocean" "frozen_river" "giant_spruce_taiga" "giant_spruce_taiga_hills" "giant_tree_taiga" "giant_tree_taiga_hills" "gravelly_mountains" "ice_spikes" "jungle" "jungle_edge" "jungle_hills" "lukewarm_ocean" "modified_badlands_plateau" "modified_gravelly_mountains" "modified_jungle" "modified_jungle_edge" "modified_wooded_badlands_plateau" "mountain_edge" "mountains" "mushroom_field_shore" "mushroom_fields" "nether" "ocean" "plains" "river" "savanna" "savanna_plateau" "shattered_savanna" "shattered_savanna_plateau" "small_end_islands" "snowy_beach" "snowy_mountains" "snowy_taiga" "snowy_taiga_hills" "snowy_taiga_mountains" "snowy_tundra" "stone_shore" "sunflower_plains" "swamp" "swamp_hills" "taiga" "taiga_hills" "taiga_mountains" "tall_birch_forest" "tall_birch_hills" "the_end" "the_void" "warm_ocean" "wooded_badlands_plateau" "wooded_hills" "wooded_mountains"
block object

The block at the location.

dimension string

The dimension the entity is currently in.

feature string

Name of a structure.

Values: "buried_treasure" "desert_pyramid" "endcity" "fortress" "igloo" "jungle_pyramid" "mansion" "mineshaft" "monument" "ocean_ruin" "pillager_outpost" "shipwreck" "stronghold" "swamp_hut" "village"
fluid object

The fluid at the location.

light object

The light at the location.

position object
smokey boolean

True if the block is closely above a campfire or soul campfire.

team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object
vehicle object
14 nested properties
distance object
effects Record<string, object>

A map of status effects.

equipment object
flags object

Predicate Flags to be checked.

lightning_bolt object

Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.

location object
nbt string

An NBT string.

passenger object
player object

Player properties to be checked. Fails when entity is not a player.

stepping_on object
team string

The team the entity belongs to.

type string

An entity ID.

targeted_entity object
vehicle object