Trigger reference
All 34 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).
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. |
amount | int, 1–2304 | Amount Default 1. |
crafted_item · Craft an item
Event Craft ‹item›
Exact with the Beta edition (Beta Features pack). Without it, having the item counts.
| 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. Beta edition only. |
consume_item · Eat or drink
Event Eat or drink ‹item›
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Food or drink |
item_used · Use an item
Event Use ‹item›
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Item |
item_used_on_block · Use an item on a block
Event Use ‹item› on ‹block›
| Field | Type | Meaning |
|---|---|---|
item | item (one or a list) | Item |
block | block (one or a list) | Block |
equipment · Wear armour
Checked continuously Wear ‹Head›, ‹Chest›, ‹Legs› and ‹Feet›
| Field | Type | Meaning |
|---|---|---|
Head | item (one or a list) | Head |
Chest | item (one or a list) | Chest |
Legs | item (one or a list) | Legs |
Feet | item (one or a list) | Feet |
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
No fields.
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 |
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. |
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 |
construct_beacon · Build a beacon
Checked continuously Build a level ‹level› beacon
| Field | Type | Meaning |
|---|---|---|
level | int, 1–4 | Pyramid level Default 1. |
Mobs
player_killed_entity · Kill a mob
Event Kill ‹entity›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Mob. Leave empty for any mob. family:monster matches every hostile mob. |
weapon | item (one or a list) | Holding |
dimension | dimension | In dimension |
entity_killed_player · Be killed
Event Be killed by ‹entity›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Killer. Leave empty for any death. |
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. |
minDamage | int, 1+ | Minimum damage |
weapon | item (one or a list) | Holding |
entity_hurt_player · Get hurt
Event Get hurt by ‹entity›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Attacker. Leave empty for any mob. family:monster matches every hostile mob. |
minDamage | int, 1+ | Minimum damage |
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. |
item | item (one or a list) | Item |
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. |
projectile | entity (one or a list) | Projectile. e.g. arrow, snowball, trident |
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. |
bred_animals · Breed animals
Event Breed ‹entity›
| Field | Type | Meaning |
|---|---|---|
entity | entity (one or a list) | Animal. Leave empty for any mob. family:monster matches every hostile mob. |
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. |
summoned_entity · Build a mob
Event Build ‹entity›
| Field | Type | Meaning |
|---|---|---|
entity required | enum: iron_golem snow_golem copper_golem wither ender_dragon | Mob |
villager_trade · Trade with a villager
Event Trade with a villager or wandering trader
No fields.
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 |
|---|---|---|
dimension | dimension | Dimension |
biome | biome (one or a list) | Biome |
minY | int, -64–320 | At or above Y |
maxY | int, -64–320 | At or below Y |
standingOn | block (one or a list) | Standing on |
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. |
riding · Ride something
Checked continuously Ride ‹vehicle›
| Field | Type | Meaning |
|---|---|---|
vehicle | entity (one or a list) | Ride |
passenger | entity (one or a list) | With passenger |
holding | item (one or a list) | Holding. In either hand. |
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. |
playtime · Play for a while
Checked continuously Play for ‹minutes› minutes
| Field | Type | Meaning |
|---|---|---|
minutes required | int, 1+ | Minutes |
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.