Advancement/JSON format

Custom advancements in data packs of a Minecraft world store the advancement data for that world as separate JSON files.

File format
All advancement JSON files are structured according to the following format.

Legend

 * * : If parent field is written, this field is required.


 * The root tag.
 * : Data related to the advancement's display.
 * * : Object containing data for the advancement's icon.
 * * : The item's ID.
 * : A string containing SNBT that may modify the item's appearance on the icon.
 * * : A JSON text component for the title of this advancement.
 * : Type of frame for the icon. challenge for Advancement-fancy-raw.png, goal for Advancement-oval-raw.png, task for Advancement-plain-raw.png. Defaults to.
 * : The directory for the background to use in this advancement tab (used only for the root advancement).
 * * : A JSON text component for the description text of this advancement.
 * : Whether to show a toast to the player when this advancement has been completed. Defaults to.
 * : Whether to announce in the chat when this advancement has been completed. Defaults to.
 * : Whether to hide this advancement and all its children from the advancement screen until this advancement have been completed. Has no effect on root advancements themselves, but still affects all their children. Defaults to.
 * : The parent advancement directory of this advancement. If absent, this advancement is a root advancement. Circular references cause a loading failure. Optional.
 * * : The criteria that have to be completed to grant the advancement.
 * : A unique name given to the criterion.
 * * : The trigger for this advancement, specifies when this advancement should have its conditions checked and be completed.
 * : Object containing conditions that need to be met when the trigger gets activated. The criterion is marked completed when the trigger activates and all conditions passed.
 * Contents depend on selected, see below for details.
 * : Defines which criteria above must be completed to grant the advancement. Contains sublists, which in turn contain names of criteria from this advancement (all the s). Optional, defaults to requiring all criteria completed.
 * Sublist within, contains strings of s. The advancement is granted when all sublists have at least one criterion within them completed.
 * : An object representing the rewards provided when this advancement is obtained.
 * : To unlock recipes.
 * A namespaced ID for a recipe.
 * : To give items from loot tables to the player.
 * A namespaced ID for a loot table.
 * : To give an amount of experience.
 * : To run a function. Function tags are not allowed.

Display
Within the root tag of an advancement JSON object, the object and the  string, both optional, are related to the display of the advancement.

If the tag is present, it must have both the  and  fields present in order to be considered as valid advancement display data.

The field, albeit not directly associated with the display data of an advancement, affects only the display data effectively. When an advancement does not have a display data and none of its children has a display data, the parent of the advancement only affects usage.

Advancement tabs
Creating a root advancement (no ) with valid data automatically creates a tab in the advancement menu. When loaded, the root advancement shows as a tab in the advancement menu when any advancement in its advancement tree is granted to the player viewing the menu.

The missing texture displays on the tab's icon if the root advancement does not have a background.

If a root advancement successfully creates a tab, child advancements of the root will show inside of that tab, provided they also have valid data.

Positioning
The game automatically arranges advancements, position them when it loads advancements from data packs, and sends the arrangement to the client. Each advancement has an arrow from its closest visible ancestor (i.e. if its parent does not have a display, it has a link from its grandparent, and so on). The root advancement appears on the leftmost column while each arrow points to an advancement in the next column. The arrangement of advancements within a column is based on file name.

Lack of display
Some advancements, such as the vanilla recipe unlocking advancements, may lack a display so that they can utilize triggers and rewards instead of excessive commands or functions for more functionalities and a more flexible control. These advancements should not have the field defined in order to hide from users and enjoy a better loading performance.

List of triggers
All JSON fields in the conditions are optional unless stated as required.

minecraft:allay_drop_item_on_block
Triggers when an allay drops an item on a block. Available conditions: An example
 * : The location at the center of the block the item was used on.
 * : The item used on the block.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The item used on the block.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:avoid_vibration
Triggers when a vibration event is ignored because the source player is crouching. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:bee_nest_destroyed
Triggers when the player breaks a bee nest or beehive. Available conditions:
 * : Checks the block that was destroyed. Accepts block IDs.
 * : The item used to break the block.
 * : The number of bees that were inside the bee nest/beehive before it was broken.
 * : Checks properties of the player that activated the trigger. Either an entity predicate with the contents shown below, or an array containing predicate conditions.
 * : The number of bees that were inside the bee nest/beehive before it was broken.
 * : Checks properties of the player that activated the trigger. Either an entity predicate with the contents shown below, or an array containing predicate conditions.

An example

minecraft:bred_animals
Triggers after the player breeds 2 animals. Available conditions:
 * : The child that results from the breeding. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The parent. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The partner. (The entity the parent was bred with) May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The partner. (The entity the parent was bred with) May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

An example

minecraft:brewed_potion
Triggers after the player takes any item out of a brewing stand. Available conditions: An example
 * : A brewed potion ID.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:changed_dimension
Triggers after the player travels between two dimensions. Available conditions: An example
 * : The dimension the entity traveled from. Accepts these 3 values.
 * : The dimension the entity traveled to. Same accepted values as above.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:channeled_lightning
Triggers after the player successfully uses the Channeling enchantment on an entity or a lightning rod. Available conditions:
 * : The victims hit by the lightning summoned by the Channeling enchantment. All entities in this list must be hit. Each entry may also be a list of predicates that must pass in order for the trigger to activate. The checks are applied to the victim hit by the enchanted trident.
 * : A victim.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

An example

minecraft:construct_beacon
Triggers after the player changes the structure of a beacon. (When the beacon updates itself). Available conditions: An example
 * : The tier of the updated beacon structure.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:consume_item
Triggers when the player consumes an item. Available conditions: An example
 * : The item that was consumed
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:cured_zombie_villager
Triggers when the player cures a zombie villager. Available conditions: An example
 * : The villager that is the result of the conversion. The 'type' tag is redundant since it will always be "villager". May also be a list of predicates that must pass in order for the trigger to activate.
 * : The zombie villager right before the conversion is complete (not when it is initiated). The 'type' tag is redundant since it will always be "zombie_villager". May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The zombie villager right before the conversion is complete (not when it is initiated). The 'type' tag is redundant since it will always be "zombie_villager". May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:effects_changed
Triggers after the player gets a status effect applied or taken from them. Available conditions: An example
 * : A list of status effects the player has.
 * : A status effect with the key name being the status effect name.
 * : Whether the effect is from a beacon.
 * : The effect amplifier.
 * : The maximum value.
 * : The minimum value.
 * : The effect duration in ticks.
 * : The maximum value.
 * : The minimum value.
 * : Whether the effect has visible particles.
 * : The entity that was the source of the status effect. Empty when there is no entity or when the effect was self-applied or removed. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : Whether the effect has visible particles.
 * : The entity that was the source of the status effect. Empty when there is no entity or when the effect was self-applied or removed. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:enchanted_item
Triggers after the player enchants an item through an enchanting table (does not get triggered through an anvil, or through commands). Available conditions: An example
 * : The item after it has been enchanted.
 * : The levels spent by the player on the enchantment.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:enter_block
Triggers when the player stands in a block. Checks every tick and will try to trigger for each successful match (up to 8 times, the maximum amount of blocks a player can stand in), which only works if the advancement is revoked from within the advancement using a function reward. Available conditions: An example
 * : The block that the player is standing in. Accepts block IDs.
 * : The block states of the block.
 * : A single block state, with the key name being the state name and the value being the required value of that state.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:entity_hurt_player
Triggers after a player gets hurt, even without a source entity. Available conditions:
 * : Checks the damage done to the player. Missing corresponding list of predicates.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

An example

minecraft:entity_killed_player
Triggers after a living entity kills a player. Available conditions: An example
 * : Checks the entity that was the source of the damage that killed the player (for example: The skeleton that shot the arrow). May also be a list of predicates that must pass in order for the trigger to activate.
 * : Checks the type of damage that killed the player. Missing corresponding list of predicates for the direct entity.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : Checks the type of damage that killed the player. Missing corresponding list of predicates for the direct entity.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:fall_from_height
Triggers when a player lands after falling. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : A location predicate for the last position before the falling started.
 * : A predicate for the distance.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.

minecraft:filled_bucket
Triggers after the player fills a bucket. Available conditions: An example
 * : The item resulting from filling the bucket.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:fishing_rod_hooked
Triggers after the player successfully catches an item with a fishing rod or pulls an entity with a fishing rod. Available conditions: An example
 * : The entity that was pulled. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The item that was caught.
 * : The fishing rod used.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The fishing rod used.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:hero_of_the_village
Triggers when the player defeats a raid and checks where the player is. Available conditions: An example
 * : The location of the player.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:impossible
Never triggers. An example

minecraft:inventory_changed
Triggers after any changes happen to the player's inventory. Available conditions: An example
 * : A list of items in the player's inventory. All items in the list must be in the player's inventory, but not all items in the player's inventory have to be in this list.
 * : The amount of slots empty in the inventory.
 * : The maximum value.
 * : The minimum value.
 * : The amount of slots completely filled (stacksize) in the inventory.
 * : The maximum value.
 * : The minimum value.
 * : The amount of slots occupied in the inventory.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The maximum value.
 * : The minimum value.
 * : The amount of slots occupied in the inventory.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:item_durability_changed
Triggers after any item in the inventory has been damaged in any form. Available conditions:
 * The change in durability (negative numbers are used to indicate a decrease in durability).
 * : The maximum value.
 * : The minimum value.
 * : The remaining durability of the item.
 * : The maximum value.
 * : The minimum value.
 * : The item before it was damaged, allows you to check the durability before the item was damaged.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The minimum value.
 * : The item before it was damaged, allows you to check the durability before the item was damaged.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

An example

minecraft:item_used_on_block
Triggers when the player their hand or an item on a block. Available conditions: An example
 * : The location at the center of the block the item was used on.
 * : The item used on the block.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The item used on the block.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:kill_mob_near_sculk_catalyst
Triggers after a player is the source of a mob or player being killed within the range of a sculk catalyst. Available conditions: An example
 * : The entity that was killed. May be a list of predicates that must pass in order for the trigger to activate.
 * : The type of damage that killed an entity. Missing corresponding list of predicates for the direct entity.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The type of damage that killed an entity. Missing corresponding list of predicates for the direct entity.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:killed_by_crossbow
Triggers after the player kills a mob or player using a crossbow in ranged combat. Available conditions: An example
 * : The exact count of types of entities killed.
 * : The acceptable range of count of types of entities killed.
 * : The maximum value.
 * : The minimum value.
 * : A list of predicates for any of the killed entities. All of the predicates must be matched, and one killed entity may match only one predicate.
 * : A predicate for any of the killed entities. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:levitation
Triggers when the player has the levitation status effect. Available conditions: An example
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The duration of the levitation in ticks.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The maximum value.
 * : The minimum value.
 * : The duration of the levitation in ticks.
 * : The maximum value.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:lightning_strike
Triggers when a lightning bolt disappears from the world, only for players within a 256 block radius of the lightning bolt. Available conditions: An example
 * : The lightning bolt that disappeared. May also be a list of predicates that must pass in order for the trigger to activate.
 * : An entity not hurt by the lightning strike but in a certain area around it. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : An entity not hurt by the lightning strike but in a certain area around it. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:location
Triggers every 20 ticks (1 second) and checks where the player is. Available conditions: An example
 * : The location of the player.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:nether_travel
Triggers when the player travels to the Nether and then returns to the Overworld. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : A location predicate for the last position before the player teleported to the Nether.
 * : A predicate for the distance between the position of the player when they entered the Nether and when they exited it.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.

minecraft:placed_block
Triggers when the player places a block. Available conditions: An example
 * : The block that was placed. Accepts block IDs.
 * : The item that was used to place the block before the item was consumed.
 * : The location of the block that was placed.
 * : The block states of the block.
 * : A single block state, with the key name being the state name and the value being the required value of that state.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The block states of the block.
 * : A single block state, with the key name being the state name and the value being the required value of that state.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:player_generates_container_loot
Triggers when the player generates the contents of a container with a loot table set. Available conditions: An example
 * * : The resource location of the generated loot table.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:player_hurt_entity
Triggers after the player hurts a mob or player. Available conditions: An example
 * : The damage that was dealt. Missing corresponding list of predicates for the direct entity.
 * : The entity that was damaged. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The entity that was damaged. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:player_interacted_with_entity
Triggers when the player interacts with an entity. Available conditions: An example
 * : The item which was in the player's hand during interaction.
 * : The entity which was interacted with. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The entity which was interacted with. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:player_killed_entity
Triggers after a player is the source of a mob or player being killed. Available conditions: An example
 * : The entity that was killed. May be a list of predicates that must pass in order for the trigger to activate.
 * : The type of damage that killed an entity. Missing corresponding list of predicates for the direct entity.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The type of damage that killed an entity. Missing corresponding list of predicates for the direct entity.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:recipe_unlocked
Triggers after the player unlocks a recipe (using a knowledge book for example). Available conditions: An example
 * * : The recipe that was unlocked.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:ride_entity_in_lava
Triggers when a player mounts an entity walking on lava and while the entity moves with them. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : A location predicate for the last position before the player mounted the entity.
 * : A predicate for the distance.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.

minecraft:shot_crossbow
Triggers when the player shoots a crossbow. Available conditions: An example
 * : The item that was used.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:slept_in_bed
Triggers when the player enters a bed. Available conditions: An example
 * : The location of the player.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:slide_down_block
Triggers when the player slides down a block. Available conditions: An example
 * : The block that the player slid on.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:started_riding
Triggers when the player starts riding a vehicle or an entity starts riding a vehicle currently ridden by the player. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:summoned_entity
Triggers after an entity has been summoned. Works with iron golems (pumpkin and iron blocks), snow golems (pumpkin and snow blocks), the ender dragon (end crystals) and the wither (wither skulls and soul sand/soul soil). Using dispensers to place the wither skulls or pumpkins will still activate this trigger. Spawn eggs, commands and mob spawners will not work however. Available conditions: An example
 * : The summoned entity. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:tame_animal
Triggers after the player tames an animal. Available conditions: An example
 * : Checks the entity that was tamed. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:target_hit
Triggers when the player shoots a target block. Available conditions:
 * : The redstone signal that will come out of the target block.
 * : The projectile used to hit the target block.
 * : The player who shot or threw the projectile. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

An example

minecraft:thrown_item_picked_up_by_entity
Triggers after the player throws an item and another entity picks it up. Available conditions: An example
 * : The thrown item which was picked up.
 * : The entity which picked up the item. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The entity which picked up the item. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:thrown_item_picked_up_by_player
Triggers when a player picks up an item thrown by another entity. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The entity that threw the item. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The item thrown.
 * : The entity that threw the item. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The item thrown.
 * : The item thrown.

minecraft:tick
Triggers every tick (20 times a second). Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:used_ender_eye
Triggers when the player uses an eye of ender (in a world where strongholds generate). Available conditions: An example
 * : The horizontal distance between the player and the stronghold.
 * : A maximum value.
 * : A minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : A minimum value.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:used_totem
Triggers when the player uses a totem. Available conditions: An example
 * : The item, only works with totem items.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:using_item
Triggers for every tick that the player uses an item that is used continuously. It is known to trigger for bows, crossbows, honey bottles, milk buckets, potions, shields, spyglasses, tridents, food items and eyes of ender. Most items that activate from a single click, such as fishing rods, do not affect this trigger. Available conditions: An example
 * : The item that is used
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:villager_trade
Triggers after the player trades with a villager or a wandering trader. Available conditions: An example
 * : The item that was purchased. The "count" tag checks the count from one trade, not multiple.
 * : The villager the item was purchased from. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The villager the item was purchased from. May be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:voluntary_exile
Triggers when the player causes a raid and checks where the player is. Available conditions: An example
 * : The location of the player.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

minecraft:arbitrary_player_tick
Triggers every tick for one player only.

Removed in 1.12-pre1.

minecraft:item_delivered_to_player
Triggers when an allay delivers an item to the player. Available conditions: An example
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

Only exists in 22w14a.

minecraft:player_damaged
Triggers when the player receives damage. Available conditions:
 * : Damage source predicate.
 * : Damage source predicate.

Removed in 17w14a.

minecraft:safely_harvest_honey
Triggers when the player harvests honey from a bee nest/beehive with a campfire below it. Available conditions: An example
 * : The block that the player harvested the honey from.
 * : A block ID.
 * : A block tag.
 * : The item that the player used to harvest the honey.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
 * : The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.

This trigger was made redundant by the  trigger. Removed in 20w20a.

Fortschrittsdaten Progrès/Format JSON Progressos/Formato JSON 进度/JSON格式