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
| Field | Type | Meaning |
|---|---|---|
minutes required | int, 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.
| Field | Type | Meaning |
|---|---|---|
stat required | enum: jumps foot sprint crouch swim fly climb fall travel time world_time sneak_time xp damage_dealt damage_taken emotes tools_broken raids_won | Total of Default "jumps". |
amount required | int, 1+ | Amount. Blocks for distances, time in the unit below, points for experience and damage (2 damage is one heart). Default 1000. |
unit | enum: minutes hours days | In. 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". |
scope | enum: total life streak | Counted. 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.
| Field | Type | Meaning |
|---|---|---|
period required | enum: night day cycle minutes | How long Default "night". |
minutes | int, 1+ | Minutes Default 10. |
noDamage | bool | Without taking damage |
noEating | bool | Without eating or drinking |
allowSleep | bool | Sleeping 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.
| Field | Type | Meaning |
|---|---|---|
advancements | advancement (one or a list) | Advancements. Leave empty for a whole tab (below), or every advancement. |
tab | tab | Or a whole tab |
amount | int, 1+ | How many of them. Leave empty to need all of them. |
xp_level · Reach an experience level
Checked continuously Reach experience level ‹level›
| Field | Type | Meaning |
|---|---|---|
level required | int, 1–24791 | Level Default 30. |
Items
inventory_changed · Collect items
Checked continuously Have ‹amount› ‹item› in your inventory
| Field | Type | Meaning |
|---|---|---|
item required | item (one or a list) | Item. With several items, any of them count towards the amount. |
potion | potion (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. |
amount | int, 1–2304 | Amount Default 1. |
named | text | Named. 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.
| Field | Type | Meaning |
|---|---|---|
items required | item (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. |
amount | int, 1+ | How many of them. Leave empty to need all of them, or set a number for "any N of these". |
amountEach | int, 2–2304 | How 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.
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Item |
block | enum: crafting_table crafter stonecutter_block smithing_table loom cartography_table | At. 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›
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Food or drink |
potion | potion (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›
| Field | Type | Meaning |
|---|---|---|
item | item (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.
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Item |
block | block (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.
| Field | Type | Meaning |
|---|---|---|
anySlot | item (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. |
Head | item (one or a list) | Head. Leave empty when it doesn't matter what's on the head. The same goes for the other slots. |
Chest | item (one or a list) | Chest |
Legs | item (one or a list) | Legs |
Feet | item (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.
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Item. Leave empty for any item. e.g. bow, or #is_sword for any sword. |
enchantments | enchantment (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. |
amount | int, 1–20 | How 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. |
level | int, 1–5 | At level. Only enchantments at this level or higher count: 5 for Power V. Each enchantment's highest level is 1 to 5. |
maxed | bool | At their highest level. Only enchantments at their highest level count: Power V, Unbreaking III, Mending. |
slot | enum: anywhere equipped hand | Where Default "anywhere". |
Takes each (with enchantments): see options for any goal.
enchanted_item · Enchant an item
Event Enchant an item at an enchanting table
| Field | Type | Meaning |
|---|---|---|
levels | int, 1–3 | Minimum levels spent |
brewed_potion · Brew a potion
Event Take a brewed potion out of a brewing stand
| Field | Type | Meaning |
|---|---|---|
potion | potion (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
| Field | Type | Meaning |
|---|---|---|
pattern | text | Trim pattern. e.g. sentry, wild, coast. Leave empty for any. |
fishing_catch · Fish something up
Event Fish up ‹item›
| Field | Type | Meaning |
|---|---|---|
item | item (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.
| Field | Type | Meaning |
|---|---|---|
item | item (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›
| Field | Type | Meaning |
|---|---|---|
block | block (one or a list) | Block |
adjacent | block (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›
| Field | Type | Meaning |
|---|---|---|
block | block (one or a list) | Block |
tool | item (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
| Field | Type | Meaning |
|---|---|---|
level | int, 1–4 | Pyramid 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›.
| Field | Type | Meaning |
|---|---|---|
block | block (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›.
| Field | Type | Meaning |
|---|---|---|
powered | enum: true false | Switched |
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›.
| Field | Type | Meaning |
|---|---|---|
block | block (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.
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob, player any other player. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
projectile | entity (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. |
weapon | item (one or a list) | Holding. Any item in the main hand: a sword, or a blaze rod. Weapons are listed first. |
emptyHand | bool | With bare hands. A melee kill with nothing in the main hand: punch it to death. |
minDistance | int, 1–256 | From at least. Blocks between the player and the mob, across the ground (height doesn't count), like Sniper Duel's 50. |
dimension | dimension | In dimension |
shared | int, 1–128 | Also 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.
| Field | Type | Meaning |
|---|---|---|
cause | enum: 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 thorns | Cause 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... |
entity | entity (one or a list) | Killer. Leave empty for any death. player: another player. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
minDamage | int, 1+ | Minimum damage |
projectile | entity (one or a list) | Hit with. e.g. arrow, thrown_trident, snowball. Leave empty for any way. |
weapon | item (one or a list) | Holding. Any item in the main hand: a sword, or a blaze rod. Weapons are listed first. |
emptyHand | bool | With 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.
| Field | Type | Meaning |
|---|---|---|
cause | enum: 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 thorns | Cause. 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... |
entity | entity (one or a list) | Attacker. Leave empty for any mob. player: another player. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
minDamage | int, 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.
| Field | Type | Meaning |
|---|---|---|
attack | enum: melee projectile | Attack |
entity | entity (one or a list) | Attacker. Who attacked: for a projectile, who shot it (skeleton, pillager, player). Leave empty for anything. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
projectile | entity (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›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
item | item (one or a list) | Item |
consumed | bool | Only 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›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
projectile | entity (one or a list) | Projectile. e.g. arrow, snowball, thrown_trident |
minDistance | int, 1–256 | From 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›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Animal. Leave empty for any mob. family:monster matches every hostile mob. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
wearing | item (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. |
wielding | item (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.
| Field | Type | Meaning |
|---|---|---|
entity | entity (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›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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).
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob, player any other player. |
minDistance | int, 1–256 | From 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. |
maxDistance | int, 1–256 | From at most. Blocks between the player and the mob: 5 for a close look. Needs BedrockAdvancements 2.0.21. |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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.
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob. |
age | enum: baby adult | Baby or adult |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
riding | entity (one or a list) | Riding. What it's riding: a chicken for a chicken jockey, a spider for a spider jockey. |
wearing | item (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. |
wielding | item (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. |
amount | int, 1–100 | How many. At least this many of them at once. Default 1. |
radius | int, 1–64 | Within (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.
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Item. Leave empty for any item. |
toNoteBlock | bool | To 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›
| Field | Type | Meaning |
|---|---|---|
entity required | enum: iron_golem snow_golem copper_golem wither ender_dragon | Mob |
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.
| Field | Type | Meaning |
|---|---|---|
item | item (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›
| Field | Type | Meaning |
|---|---|---|
entity | entity (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). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
wearing | item (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. |
wielding | item (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›
| Field | Type | Meaning |
|---|---|---|
from | dimension | From |
to | dimension | To |
location · Go somewhere
Checked continuously Be in ‹biome›
| Field | Type | Meaning |
|---|---|---|
x | int | Near 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. |
y | int | Near Y. Leave empty for any height above or below the spot. |
z | int | Near Z |
radius | int, 1–10000 | Within. Blocks from the spot, in any direction: 15 to come within 15 blocks of it. |
minDistance | int, 1–30000000 | At 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. |
dimension | dimension | Dimension |
biome | biome (one or a list) | Biome |
minY | int | At 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. |
maxY | int | At or below Y |
standingOn | block (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).
| Field | Type | Meaning |
|---|---|---|
structure required | structure | Structure. 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.
| Field | Type | Meaning |
|---|---|---|
seconds | int, 1–86400 | For this many seconds. Without coming up. Leave empty to count as soon as the player is under. |
riding · Ride something
Checked continuously Ride ‹vehicle›
| Field | Type | Meaning |
|---|---|---|
vehicle | entity (one or a list) | Ride |
age | enum: baby adult both | Baby or adult. Both: one of each, at any time (with Times, that many in all and at least one of each). |
variant | kind | Kind. 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. |
named | text | Named. A player's gamertag, or the name on a mob's name tag. Capitals don't matter. |
passenger | entity (one or a list) | With passenger |
holding | item (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
| Field | Type | Meaning |
|---|---|---|
vehicle | entity (one or a list) | Ride. e.g. horse, boat, minecart, pig. Leave empty for anything. |
distance required | int, 1+ | Blocks Default 1000. |
measure | enum: total ride straight | Measured. 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
| Field | Type | Meaning |
|---|---|---|
effects required | effect (one or a list) | Effects. All of them at the same time, or with "Different ones, over time" each one at any time. |
level | int, 2–255 | At level. The lowest level that counts, for every effect listed: 2 for Speed II or Strength II. |
seconds | int, 1–3600 | For. 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"}.
| Field | Type | Meaning |
|---|---|---|
amount required | int, 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›
| Field | Type | Meaning |
|---|---|---|
tag required | text | Tag. Completes when /tag @p add <tag> runs. |
scoreboard · Reach a score
Checked continuously Have a ‹objective› score of ‹min›
| Field | Type | Meaning |
|---|---|---|
objective required | text | Objective |
min | int | At least |
max | int | At 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.
| Field | Type | Meaning |
|---|---|---|
event required | enum: 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 worldLoad | Event. What happens, e.g. playerInteractWithEntity (using something on a mob), entityHurt, buttonPush. Default "playerInteractWithEntity". |
where | text (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. |
player | text | Who earns it. Where the player is in the event, when it isn't the usual one: hurtEntity, source, damageSource.damagingEntity. |
radius | int, 1–128 | Or 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. |
amountFrom | text | Counts 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.
| Field | Type | Meaning |
|---|---|---|
where required | text (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.
| Field | Type | Meaning |
|---|---|---|
inDimension | dimension | In dimension |
inBiome | biome (one or a list) | In biome. Any of them. |
aboveY | int, -64–320 | At or above Y |
belowY | int, -64–320 | At or below Y |
time | enum: day night | Time of day |
weather | enum: clear rain thunder | Weather. Known from the first time the weather changes after BedrockAdvancements is added; clear until then. |
withEffects | effect (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.
| Field | Type | Meaning |
|---|---|---|
scope | enum: total life | Counted Default "total". |
each | bool | Different 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. |
eachCount | int, 1+ | How many different ones. Leave empty to need every one in the list, or set a number for any N of them. |
within | int, 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. |
withinUnit | enum: seconds minutes hours | Within unit Default "minutes". |