Developers

Trigger reference

All 55 trigger types, generated from the same catalog the creator uses.

Every trigger the creator offers, with the fields it takes. In a data-only pack these go in a criterion: { "trigger": "inventory_changed", "item": "diamond", "amount": 3 }. In a script plugin, the same objects go in criteria.

Event triggers fire at a moment (a kill, a block mined) and can take count to need several. Checked continuously triggers are true or false at any time (holding an item, standing in a biome).

Totals and challenges

playtime · Play for a while

Checked continuously Play for ‹minutes› minutes

FieldTypeMeaning
minutes requiredint, 1+Minutes

stat · Reach a total

Checked continuously Reach a total of ‹amount›

Counted from when the pack is added. Add "Where and when" conditions to count only some of it: time in a desert, sprinting in the Nether, swimming at night. In-game time follows the world's clock while the player is on: a night slept through counts, and nothing counts with the daylight cycle off.

FieldTypeMeaning
stat requiredenum: jumps foot sprint crouch swim fly climb fall travel time world_time sneak_time xp damage_dealt damage_taken emotes tools_broken raids_wonTotal of Default "jumps".
amount requiredint, 1+Amount. Blocks for distances, time in the unit below, points for experience and damage (2 damage is one heart). Default 1000.
unitenum: minutes hours daysIn. Time spent counts real play time, so sleeping through the night doesn't add the night. For "Survive 100 days", use In-game time in Minecraft days, counted in one life. Default "minutes".
scopeenum: total life streakCounted. Without stopping is for distances and time: sprint 1,000 blocks in one go, spend a day in a desert without leaving. Default "total".

survived · Survive...

Checked continuously Survive a whole night without sleeping

Dying or sleeping ends it, and so does the time jumping (everyone sleeping, /time set), unless Sleeping is allowed. A night or day only counts when the player is there as it starts. Any "Where and when" conditions must hold the whole time.

FieldTypeMeaning
period requiredenum: night day cycle minutesHow long Default "night".
minutesint, 1+Minutes Default 10.
noDamageboolWithout taking damage
noEatingboolWithout eating or drinking
allowSleepboolSleeping is allowed. Sleeping doesn't end it, and neither does the night being skipped: a night slept through counts as survived. Only dying ends it. Needs BedrockAdvancements 2.0.21.

advancements_completed · Complete other advancements

Checked continuously Complete ‹amount› other advancement

Other advancements using this goal don't count, so two "finish the tab" goals don't wait on each other.

FieldTypeMeaning
advancementsadvancement (one or a list)Advancements. Leave empty for a whole tab (below), or every advancement.
tabtabOr a whole tab
amountint, 1+How many of them. Leave empty to need all of them.

xp_level · Reach an experience level

Checked continuously Reach experience level ‹level›

FieldTypeMeaning
level requiredint, 1–24791Level Default 30.

Items

inventory_changed · Collect items

Checked continuously Have ‹amount› ‹item› in your inventory

FieldTypeMeaning
item requireditem (one or a list)Item. With several items, any of them count towards the amount.
potionpotion (one or a list)Potion. Only for potions (drinkable, splash or lingering) and tipped arrows; other items count as usual. Leave empty for any. strong_ and long_ are the stronger and longer kinds. A tipped arrow only shows its effect, so a Swiftness arrow counts for swiftness, long_swiftness and strong_swiftness.
amountint, 1–2304Amount Default 1.
namedtextNamed. Only items with this name, given at an anvil: a diamond sword named Excalibur. Capitals don't matter. Minecraft doesn't say who named it, so one somebody else named counts too. Needs BedrockAdvancements 2.0.20.

Takes each (with potion): see options for any goal.

collected_items · Collect a set of items

Checked continuously Collect ‹amount› of: ‹items›

Over time: each item counts once, the first time it's in the inventory, so they don't have to be held together.

FieldTypeMeaning
items requireditem (one or a list)Items. e.g. every kind of log. A #tag counts as one item, found with any item that has the tag.
amountint, 1+How many of them. Leave empty to need all of them, or set a number for "any N of these".
amountEachint, 2–2304How many of each. How many of an item the player needs at once for it to count, their stacks added up: 64 for a full stack of each. A #tag adds up every item with the tag.

crafted_item · Craft an item

Event Craft ‹item›

Minecraft doesn't let add-ons see crafting yet (its beta crafting event doesn't fire), so having the item counts, in every edition. With a count, it's the most held at once: "craft 64" means having 64.

FieldTypeMeaning
itemitem (one or a list)Item
blockenum: crafting_table crafter stonecutter_block smithing_table loom cartography_tableAt. Leave empty for anywhere, including the inventory grid. Only checked when crafts can be seen exactly, which Minecraft doesn't allow yet: until then it's left out.

Takes each (with item): see options for any goal.

consume_item · Eat or drink

Event Eat or drink ‹item›

FieldTypeMeaning
itemitem (one or a list)Food or drink
potionpotion (one or a list)Potion. Only for potions: which ones count. Leave empty for any. strong_ and long_ are the stronger and longer kinds.

Takes each (with item): see options for any goal.

item_used · Use an item

Event Use ‹item›

FieldTypeMeaning
itemitem (one or a list)Item

Takes each (with item): see options for any goal.

item_used_on_block · Use an item on a block

Event Use ‹item› on ‹block›

Counts when using the item does something to the block: shears carving a pumpkin, a shovel making a path, bone meal on moss. Shears on leaves is mining them: use "Mine a block" with leaves and the shears as its tool.

FieldTypeMeaning
itemitem (one or a list)Item
blockblock (one or a list)Block. The block as it was before: pumpkin, not carved pumpkin.

equipment · Wear armour

Checked continuously Wear ‹anySlot›

Fill in only what matters: an empty slot can hold anything, or nothing. With every box empty, any one piece of armour counts.

FieldTypeMeaning
anySlotitem (one or a list)Any one piece. One of these, worn in any slot: list the iron helmet, chestplate, leggings and boots for "wear a piece of iron armour". Needs BedrockAdvancements 2.0.21.
Headitem (one or a list)Head. Leave empty when it doesn't matter what's on the head. The same goes for the other slots.
Chestitem (one or a list)Chest
Legsitem (one or a list)Legs
Feetitem (one or a list)Feet

has_enchantment · Have an enchanted item

Checked continuously Have ‹item› with an enchantment

All on one item: one bow with Power V and Infinity, not two bows. With "Different ones, over time", each enchantment counts on any item, whenever.

FieldTypeMeaning
itemitem (one or a list)Item. Leave empty for any item. e.g. bow, or #is_sword for any sword.
enchantmentsenchantment (one or a list)Enchantments. Leave empty for any enchantments (set how many below). All on one item, or with "Different ones, over time" each one on any item, whenever: get every enchantment.
amountint, 1–20How many enchantments. With enchantments listed: any this many of them (empty: all of them). With none listed: at least this many enchantments of any kind, e.g. 5 on a sword.
levelint, 1–5At level. Only enchantments at this level or higher count: 5 for Power V. Each enchantment's highest level is 1 to 5.
maxedboolAt their highest level. Only enchantments at their highest level count: Power V, Unbreaking III, Mending.
slotenum: anywhere equipped handWhere Default "anywhere".

Takes each (with enchantments): see options for any goal.

enchanted_item · Enchant an item

Event Enchant an item at an enchanting table

FieldTypeMeaning
levelsint, 1–3Minimum levels spent

brewed_potion · Brew a potion

Event Take a brewed potion out of a brewing stand

FieldTypeMeaning
potionpotion (one or a list)Potion. Leave empty for any potion. strong_ and long_ are the stronger and longer kinds; splash and lingering potions count as their type. With "Different ones, over time", brew each of them.

Takes each (with potion): see options for any goal.

smithing_trim · Trim armour

Event Trim armour at a smithing table

FieldTypeMeaning
patterntextTrim pattern. e.g. sentry, wild, coast. Leave empty for any.

fishing_catch · Fish something up

Event Fish up ‹item›

FieldTypeMeaning
itemitem (one or a list)Catch

Takes each (with item): see options for any goal.

item_broken · Break a tool

Event Wear out ‹item›

Counts items that break in the hotbar or inventory (tools, weapons, bows, shears, flint and steel, fishing rods...), not worn armour or anything in the offhand.

FieldTypeMeaning
itemitem (one or a list)Item. Leave empty for any tool. e.g. diamond_pickaxe, or #is_sword.

Takes each (with item): see options for any goal.

Blocks

placed_block · Place a block

Event Place ‹block›

FieldTypeMeaning
blockblock (one or a list)Block
adjacentblock (one or a list)Next to. Only counts when placed beside one of these.

Takes each (with block): see options for any goal.

broke_block · Mine a block

Event Mine ‹block›

FieldTypeMeaning
blockblock (one or a list)Block
toolitem (one or a list)With tool. Any item in the main hand: tools are listed first.

Takes each (with block): see options for any goal.

construct_beacon · Build a beacon

Checked continuously Build a level ‹level› beacon

FieldTypeMeaning
levelint, 1–4Pyramid level Default 1.

game_event · Press a button

Event Press ‹block›

Made with game_event: {"trigger":"game_event","event":"buttonPush","player":"source"}, and its fields go in where as checks: block is ‹block›.

FieldTypeMeaning
blockblock (one or a list)Button. Leave empty for any button, e.g. stone_button, #wooden_buttons.

game_event · Pull a lever

Event Pull a lever

Made with game_event: {"trigger":"game_event","event":"leverAction"}, and its fields go in where as checks: isPowered = ‹powered›.

FieldTypeMeaning
poweredenum: true falseSwitched

game_event · Step on a pressure plate

Event Step on ‹block›

Made with game_event: {"trigger":"game_event","event":"pressurePlatePush","player":"source"}, and its fields go in where as checks: block is ‹block›.

FieldTypeMeaning
blockblock (one or a list)Pressure plate. Leave empty for any pressure plate, e.g. stone_pressure_plate, heavy_weighted_pressure_plate.

Mobs

player_killed_entity · Kill a mob

Event Kill ‹entity›

Killing yourself (your own arrow or TNT) doesn't count. TNT set off by redstone, a dispenser or fire is nobody's kill.

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob, player any other player.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
projectileentity (one or a list)Killed with. The projectile that lands the killing blow, e.g. arrow (tipped and spectral arrows too), thrown_trident, snowball. Or an explosion the player set off: tnt they lit (flint and steel, a fire charge, a burning arrow), or an ender_crystal they hit. Explosions need BedrockAdvancements 2.0.21. Leave empty for any way.
weaponitem (one or a list)Holding. Any item in the main hand: a sword, or a blaze rod. Weapons are listed first.
emptyHandboolWith bare hands. A melee kill with nothing in the main hand: punch it to death.
minDistanceint, 1–256From at least. Blocks between the player and the mob, across the ground (height doesn't count), like Sniper Duel's 50.
dimensiondimensionIn dimension
sharedint, 1–128Also for players within. Blocks. When a kill counts, every player this close to the mob gets it too, like the dragon fight.

Takes each (with entity): see options for any goal.

entity_killed_player · Be killed

Event Be killed by ‹entity›

Dying to your own arrow or TNT isn't being killed by a player.

FieldTypeMeaning
causeenum: environment mob fall drowning lava fireTick fire magma campfire soulCampfire contact suffocation starve freezing void anvil stalactite stalagmite fallingBlock lightning magic wither flyIntoWall fireworks blockExplosion entityExplosion entityAttack projectile maceSmash ramAttack sonicBoom thornsCause of death. Leave empty for any cause. "A mob or player" lets you pick which (or any of them); "Anything but a mob or player" covers everything the world does: falling, lava, cactus, drowning...
entityentity (one or a list)Killer. Leave empty for any death. player: another player.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.

Takes each (with entity): see options for any goal.

player_hurt_entity · Hit a mob

Event Hit ‹entity›

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
minDamageint, 1+Minimum damage
projectileentity (one or a list)Hit with. e.g. arrow, thrown_trident, snowball. Leave empty for any way.
weaponitem (one or a list)Holding. Any item in the main hand: a sword, or a blaze rod. Weapons are listed first.
emptyHandboolWith bare hands. A punch: a melee hit with nothing in the main hand.

Takes each (with entity): see options for any goal.

entity_hurt_player · Get hurt

Event Get hurt by ‹entity›

Hurting yourself (your own arrow or TNT) isn't being hurt by a player.

FieldTypeMeaning
causeenum: environment mob fall drowning lava fireTick fire magma campfire soulCampfire contact suffocation starve freezing void anvil stalactite stalagmite fallingBlock lightning magic wither flyIntoWall fireworks blockExplosion entityExplosion entityAttack projectile maceSmash ramAttack sonicBoom thornsCause. Leave empty for any cause. "A mob or player" lets you pick which (or any of them); "Anything but a mob or player" covers everything the world does: falling, lava, cactus, drowning...
entityentity (one or a list)Attacker. Leave empty for any mob. player: another player.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
minDamageint, 1+Minimum damage

Takes each (with entity): see options for any goal.

blocked_by_shield · Block an attack with a shield

Event Block an attack from ‹entity› with a shield

Blocking means holding a shield up (sneaking) with the attack coming from in front, and taking no damage from it. Hits in creative don't count.

FieldTypeMeaning
attackenum: melee projectileAttack
entityentity (one or a list)Attacker. Who attacked: for a projectile, who shot it (skeleton, pillager, player). Leave empty for anything.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
projectileentity (one or a list)Projectile. e.g. arrow, thrown_trident, small_fireball. Leave empty for any.

Takes each (with entity): see options for any goal.

interacted_with_entity · Use an item on a mob

Event Use ‹item› on ‹entity›

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
itemitem (one or a list)Item
consumedboolOnly when it's used up. Feeding, naming with a name tag, filling a bucket: the held item is used up or changes. Not just clicking with it.

Takes each (with entity): see options for any goal.

projectile_hit_entity · Shoot a mob

Event Hit ‹entity› with ‹projectile›

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
projectileentity (one or a list)Projectile. e.g. arrow, snowball, thrown_trident
minDistanceint, 1–256From at least. Blocks between the player and the mob, across the ground (height doesn't count).

Takes each (with entity): see options for any goal.

tame_animal · Tame an animal

Event Tame ‹entity›

FieldTypeMeaning
entityentity (one or a list)Animal. Leave empty for any mob. family:monster matches every hostile mob.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.

Takes each (with entity): see options for any goal.

bred_animals · Breed mobs

Event Breed ‹entity›

Counts for the player who fed the parents. Villagers aren't fed by hand, so a baby villager counts for the nearest player within 16 blocks.

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob that breeds, villagers included.

Takes each (with entity): see options for any goal.

leashed_entity · Leash a mob

Event Put a lead on ‹entity›

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.

Takes each (with entity): see options for any goal.

spyglass_at · Look through a spyglass

Checked continuously Look at ‹entity› through a spyglass

Counts while the spyglass is raised and the mob is in the middle of the view, up to 256 blocks away (and close enough for the game to have loaded it).

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob, player any other player.
minDistanceint, 1–256From at least. Blocks between the player and the mob: 50 for spotting it from far away. Mobs further than the world's simulation distance aren't there to see. Needs BedrockAdvancements 2.0.21.
maxDistanceint, 1–256From at most. Blocks between the player and the mob: 5 for a close look. Needs BedrockAdvancements 2.0.21.
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.

Takes each (with entity): see options for any goal.

mobs_nearby · Have mobs nearby

Checked continuously Have ‹amount› of ‹entity› within ‹radius› blocks of you

Checked every 2 seconds. Players, dropped items and armour stands don't count. Needs BedrockAdvancements 2.0.20.

FieldTypeMeaning
entityentity (one or a list)Mob. Leave empty for any mob. family:monster matches every hostile mob.
ageenum: baby adultBaby or adult
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
ridingentity (one or a list)Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
amountint, 1–100How many. At least this many of them at once. Default 1.
radiusint, 1–64Within (blocks) Default 10.

allay_delivered · Have an allay deliver an item

Event Have an allay bring you ‹item›

Give the allay an item: it counts when it brings one of them back to you. Needs BedrockAdvancements 2.0.20.

FieldTypeMeaning
itemitem (one or a list)Item. Leave empty for any item.
toNoteBlockboolTo a note block. It counts when the allay drops the item at a note block it's listening to, not when it brings it to the player.

summoned_entity · Build a mob

Event Build ‹entity›

FieldTypeMeaning
entity requiredenum: iron_golem snow_golem copper_golem wither ender_dragonMob

piglin_barter · Barter with a piglin

Event Barter with a piglin

Counts when the piglin gives its barter back, to the player who handed or threw it the gold ingot.

FieldTypeMeaning
itemitem (one or a list)Receive. What the piglin gives back, e.g. ender_pearl, crying_obsidian, enchanted_book (Soul Speed). Leave empty for any barter.

Takes each (with item): see options for any goal.

villager_trade · Trade with a villager

Event Trade with ‹entity›

FieldTypeMeaning
entityentity (one or a list)Trader. Leave empty for any trader. Pick villager_v2 to choose its job under Kind (Java's blacksmiths are the Armorer, Weaponsmith and Toolsmith).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
wearingitem (one or a list)Mob wearing. Something the mob has on its head, chest, legs or feet: a carved pumpkin, a dragon head, a piece of armour. Any of them counts; with "All of these" the mob has to wear every one, like a full set of diamond armour (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.
wieldingitem (one or a list)Mob holding. Something the mob holds, in either hand: a bow, a trident, an iron sword. Any of them counts; with "All of these", one in each hand (that needs 2.0.21). Item ids only: a #tag never matches. Needs BedrockAdvancements 2.0.20.

Takes each (with entity): see options for any goal.

World

changed_dimension · Travel to a dimension

Event Travel from ‹from› to ‹to›

FieldTypeMeaning
fromdimensionFrom
todimensionTo

location · Go somewhere

Checked continuously Be in ‹biome›

FieldTypeMeaning
xintNear X. A spot in the world, like your iron farm: fill in X and Z (and Y if the height matters). Stand there and read them off the screen with Show Coordinates on. Set the Dimension too, or the same spot in the Nether counts. Needs BedrockAdvancements 2.0.19.
yintNear Y. Leave empty for any height above or below the spot.
zintNear Z
radiusint, 1–10000Within. Blocks from the spot, in any direction: 15 to come within 15 blocks of it.
minDistanceint, 1–30000000At least this far. Blocks away from the spot, or from the middle of the world (X 0, Z 0) when Near X and Near Z are empty: 10000 for travelling 10,000 blocks out. Any direction counts, and any height unless Near Y is set. Set the Dimension too, or the Nether counts (8 times closer). Needs BedrockAdvancements 2.0.21.
dimensiondimensionDimension
biomebiome (one or a list)Biome
minYintAt or above Y. Any height: the world is built from -64 to 320, but players can fly far above it (Y 10000) or fall below it.
maxYintAt or below Y
standingOnblock (one or a list)Standing on

Takes each (with biome): see options for any goal.

structure · Find a structure

Checked continuously Enter ‹structure›

The structures BedrockAdvancements' own advancements use are recognised by their blocks in every edition. Every other structure, add-on (custom jigsaw) structures included, is only detected with the Beta edition (Beta Features pack).

FieldTypeMeaning
structure requiredstructureStructure. Those marked "Beta edition only" need the Beta Features pack.

underwater · Be under water

Checked continuously Be under water

The player's head has to be under: standing in shallow water doesn't count. Needs BedrockAdvancements 2.0.20.

FieldTypeMeaning
secondsint, 1–86400For this many seconds. Without coming up. Leave empty to count as soon as the player is under.

riding · Ride something

Checked continuously Ride ‹vehicle›

FieldTypeMeaning
vehicleentity (one or a list)Ride
ageenum: baby adult bothBaby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each).
variantkindKind. Shows when one mob that comes in kinds is picked: a cat breed, a wolf, a villager's job, a warm pig, a sheep's colour.
namedtextNamed. A player's gamertag, or the name on a mob's name tag. Capitals don't matter.
passengerentity (one or a list)With passenger
holdingitem (one or a list)Holding. In either hand.

Takes each (with vehicle): see options for any goal.

ride_distance · Ride a distance

Checked continuously Ride ‹vehicle› for ‹distance› blocks

FieldTypeMeaning
vehicleentity (one or a list)Ride. e.g. horse, boat, minecart, pig. Leave empty for anything.
distance requiredint, 1+Blocks Default 1000.
measureenum: total ride straightMeasured. All rides added up: progress is kept between rides. Along one ride: the whole path of a single ride. In a straight line: how far the player ends up from where the ride started (like On A Rail). Default "total".

effects_changed · Have effects

Checked continuously Have ‹effects› at once

FieldTypeMeaning
effects requiredeffect (one or a list)Effects. All of them at the same time, or with "Different ones, over time" each one at any time.
levelint, 2–255At level. The lowest level that counts, for every effect listed: 2 for Speed II or Strength II.
secondsint, 1–3600For. Seconds without a break: 20 to keep Levitation for 20 seconds. Losing an effect, dying or leaving the world starts it again.

Takes each (with effects): see options for any goal.

entity_event · Start a raid

Event Start a raid

Counts when a raid starts for the player: walking into a village with Bad Omen, or drinking an Ominous Bottle in one.

Made with entity_event: {"trigger":"entity_event","entity":"player","event":"minecraft:remove_raid_trigger"}.

No fields.

stat · Win a raid

Checked continuously Win ‹amount› raids

Counts the raids the player helps win from when the pack is added (each one gives Hero of the Village).

Made with stat: {"trigger":"stat","stat":"raids_won"}.

FieldTypeMeaning
amount requiredint, 1+Raids Default 1.

slept_in_bed · Sleep in a bed

Checked continuously Sleep in a bed

No fields.

Commands and map making

tag · Has a tag

Checked continuously Be given the tag ‹tag›

FieldTypeMeaning
tag requiredtextTag. Completes when /tag @p add <tag> runs.

scoreboard · Reach a score

Checked continuously Have a ‹objective› score of ‹min›

FieldTypeMeaning
objective requiredtextObjective
minintAt least
maxintAt most

impossible · Given by command

Checked continuously Be granted it by a command

No fields.

Advanced: any game event

game_event · Any game event

Event When ‹event› happens

The events and what they hold are Minecraft's Script API: the docs' Game events page lists them.

FieldTypeMeaning
event requiredenum: blockContainerClosed blockContainerOpened blockExplode buttonPush dataDrivenEntityTrigger effectAdd entityContainerClosed entityContainerOpened entityDie entityHeal entityHealthChanged entityHitBlock entityHitEntity entityHurt entityItemDrop entityItemPickup entityLoad entityRemove entitySpawn entityStartSneaking entityStopSneaking entityTamed entityUpgrade explosion gameRuleChange itemCompleteUse itemReleaseUse itemStartUse itemStartUseOn itemStopUse itemStopUseOn itemUse leverAction pistonActivate playerBreakBlock playerButtonInput playerCancelBreakingBlock playerDimensionChange playerEmote playerGameModeChange playerHotbarSelectedSlotChange playerInputModeChange playerInputPermissionCategoryChange playerInteractWithBlock playerInteractWithEntity playerInventoryItemChange playerJoin playerLeave playerPlaceBlock playerSpawn playerStartBreakingBlock playerSwingStart pressurePlatePop pressurePlatePush projectileHitBlock projectileHitEntity soundCompleted targetBlockHit tripWireTrip weatherChange worldClockOnPaused worldClockOnResumed worldClockOnTimeMarker worldClockOnTimeModified worldLoadEvent. What happens, e.g. playerInteractWithEntity (using something on a mob), entityHurt, buttonPush. Default "playerInteractWithEntity".
wheretext (one or a list)Checks. All of them must pass, each written as what, test, value: target is villager_v2, damage >= 10, damageSource.cause = fall. Tests: is, not, =, !=, <, <=, >, >=, exists, missing.
playertextWho earns it. Where the player is in the event, when it isn't the usual one: hurtEntity, source, damageSource.damagingEntity.
radiusint, 1–128Or the nearest player within. When Who earns it is a mob or a block (entitySpawn: entity), the nearest player within this many blocks of it earns it.
amountFromtextCounts by. A number in the event that counts towards Times: items.0.amount for a stack picked up.

player_state · Any player state

Checked continuously Be in a state where ‹where›

Checked about twice a second. What a player holds is Minecraft's Script API: the docs' Game events page lists it.

FieldTypeMeaning
where requiredtext (one or a list)Checks. All of them must pass, read from the player: isSneaking = true, location.y < 0, component:health.currentValue <= 4, dimension.id = the_end.

Options for any goal

These go in a criterion next to its trigger's fields, and need BedrockAdvancements 2.0.7.

Where and when

The goal only counts while these hold: { "trigger": "player_killed_entity", "entity": "zombie", "time": "night" } is a zombie killed at night; { "trigger": "stat", "stat": "time", "amount": 3, "unit": "days", "inBiome": "desert" } is three Minecraft days spent in a desert. Every trigger takes them, except location (it has its own dimension, biome and height) and impossible.

FieldTypeMeaning
inDimensiondimensionIn dimension
inBiomebiome (one or a list)In biome. Any of them.
aboveYint, -64–320At or above Y
belowYint, -64–320At or below Y
timeenum: day nightTime of day
weatherenum: clear rain thunderWeather. Known from the first time the weather changes after BedrockAdvancements is added; clear until then.
withEffectseffect (one or a list)While having effects. Only counts while the player has all of these: kill a bat while blinded.

How it's counted

scope is for event triggers (stat has its own, with streak too). each is for the triggers that say so above: every value in their list counts once, over time, so { "trigger": "player_killed_entity", "entity": ["zombie", "skeleton", "creeper"], "each": true } is "kill each of these". Progress shows as "2/3" in game. within (with withinUnit) is a time limit on any of these, and on a stat total: { "trigger": "player_killed_entity", "entity": "zombie", "count": 5, "within": 1 } is 5 zombies within a minute of real time.

FieldTypeMeaning
scopeenum: total lifeCounted Default "total".
eachboolDifferent ones, over time. Every one in the list counts once, whenever it happens: kill each of these mobs, or visit any 3 of these biomes. Progress is kept.
eachCountint, 1+How many different ones. Leave empty to need every one in the list, or set a number for any N of them.
withinint, 1+Within. A time limit: it all has to happen within this long (real time), like kill 5 zombies within 1 minute. Works with Times, Different ones, and a stat's amount.
withinUnitenum: seconds minutes hoursWithin unit Default "minutes".