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:
 * The root tag.
 * : The optional display data.
 * : The data for the icon.
 * : The item id.
 * : The nbt data of the item.
 * : The title for this advancement.
 * : A JSON text component (containing text and formatting like used in /tellraw and various other commands. Also translate tag can be used here).
 * : The optional type of frame for the icon. challenge for a tile with a more fancy spiked border as it is used for the kill all mobs advancement, goal for a tile with a rounded border as it is used for the full beacon advancement, task for a normal tile (default.)
 * : The optional directory for the background to use in this advancement tab (used only for the root advancement).
 * : The description of the advancement.
 * : A JSON text component (containing text and formatting like used in and various other commands. Also translate tag can be used here).
 * : Can be true or false. Whether or not to show the toast pop up after completing this advancement. Defaults to true.
 * : Can be true or false. Whether or not to announce in the chat when this advancement has been completed. Defaults to true.
 * : Can be true or false. Whether or not 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 false.
 * : The optional parent advancement directory of this advancement. If this field is absent, this advancement is a root advancement. Circular references cause a loading failure.
 * : The required criteria that have to be met.
 * : A name given to the criterion (can be any string, must be unique).
 * : The trigger for this advancement; specifies what the game should check for the advancement.
 * : All the conditions that need to be met when the trigger gets activated.
 * : An optional list of requirements (all the  ). If all criteria are required, this may be omitted. With multiple criteria: requirements contains a list of lists with criteria (all criteria need to be mentioned). If all of the lists each have any criteria met, the advancement is complete. (basically AND grouping of OR groups)
 * : An optional object representing the rewards provided when this advancement is obtained.
 * : A list of recipes to unlock.
 * A namespaced ID for a recipe.
 * : A list of loot tables to give to the player.
 * A namespaced ID for a loot table.
 * : An amount of experience.
 * : A function to run. Function tags are not allowed.

Display
Within the root tag of an advancement JSON object, the field and the  field, 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 a 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 has no effect to the advancement itself.

Tab creation
To create a tab in the advancement menu, define a root advancement (an advancement without a parent) with a display. When the data pack containing the advancement is loaded, the root advancement shows a tab in the advancement menu when any advancement in its advancement tree is granted to the player viewing the menu.

When a background is not specified for a root advancement, the tab is still created, but with the tab background appearing as the missing texture.

Presence
For a non-root advancement (i.e. an advancement with a parent defined), these conditions must be met in order to have it displayed in a tab when unlocked:
 * 1) Its root advancement must be a valid tab.
 * 2) It must have a display.

Position
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.

minecraft:bee_nest_destroyed
Triggers when the player breaks a bee nest or beehive. Available conditions:
 * : 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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The number of bees that were inside the bee nest/beehive before it was broken.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : The parent. May also be a list of loot table conditions 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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The partner. (The entity the parent was bred with) May also be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:channeled_lightning
Triggers after the player successfully uses the Channeling enchantment on an entity. 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 loot table conditions that must pass in order for the trigger to activate. The checks are applied to the victim hit by the enchanted trident.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:consume_item
Triggers when the player consumes an item. Available conditions: An example
 * : The item that was consumed
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions 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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : 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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : The effect amplifier.
 * : The maximum value.
 * : The minimum value.
 * : The effect duration in ticks.
 * : The maximum value.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The maximum value.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The maximum value.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:entity_hurt_player
Triggers after a player gets hurt. Available conditions: An example
 * : Checks the damage done to the player. Missing corresponding list of loot table conditions.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:entity_killed_player
Triggers after an 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 loot table conditions that must pass in order for the trigger to activate.
 * : Checks the type of damage that killed the player. Missing corresponding list of loot table conditions for the direct entity.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : Checks the type of damage that killed the player. Missing corresponding list of loot table conditions for the direct entity.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:filled_bucket
Triggers after the player fills a bucket. Available conditions: An example
 * : The item resulting from filling the bucket.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : The item that was caught.
 * : The fishing rod used.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The fishing rod used.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:impossible
Triggers only using commands. 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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The maximum value.
 * : The minimum value.
 * : The amount of slots occupied in the inventory.
 * : The maximum value.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The minimum value.
 * : The item before it was damaged, allows you to check the durability before the item was damaged.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

An example

minecraft:item_used_on_block
Triggers when the player 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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The item used on the block.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 predicate for any of the killed entities.
 * : 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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A predicate for any of the killed entities. May also be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The maximum value.
 * : The minimum value.
 * : The duration of the levitation in ticks.
 * : The maximum value.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:location
Triggers every 20 ticks (1 second) and checks where the player is. Available conditions: An example
 * : The location of the player.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:nether_travel
Triggers when the player travels to the Nether and then returns to the Overworld. Available conditions: An example
 * : The overworld distance between where the player entered the Nether and where the player exited the Nether.
 * : 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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The maximum value.
 * : The minimum value.
 * : The maximum value.
 * : The minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : 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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions for the direct entity.
 * : The entity that was damaged. May be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The entity that was damaged. May be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The entity which was interacted with. May be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : The type of damage that killed an entity. Missing corresponding list of loot table conditions for the direct entity.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The type of damage that killed an entity. Missing corresponding list of loot table conditions for the direct entity.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:shot_crossbow
Triggers when the player shoots a crossbow. Available conditions: An example
 * : The item that was used.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:slept_in_bed
Triggers when the player enters a bed. Available conditions: An example
 * : The location of the player.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:slide_down_block
Triggers when the player slides down a block. Available conditions: An example
 * : The block that the player slid on.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : Entity predicate for the player who shot or threw the projectile.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The entity which picked up the item. May be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:tick
Triggers every tick (20 times a second). Available conditions: An example
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A minimum value.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:used_totem
Triggers when the player uses a totem. Available conditions: An example
 * : The item, only works with totem items.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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 loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : The villager the item was purchased from. May be a list of loot table conditions that must pass in order for the trigger to activate.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

minecraft:arbitrary_player_tick
Triggers every tick for one player only.

Removed in 1.12-pre1.

minecraft:player_damaged
Triggers when the player receives damage. Available conditions:
 * : Checks whether the damage was blocked.
 * : Checks if the damage was caused by a projectile.
 * : Checks if the damage was caused by a projectile.

This trigger had these two conditions only because it was made just for the Deflect Arrow advancement. 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.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.
 * : A list of loot table conditions that must pass in order for the trigger to activate. The checks are applied to the player that would get the advancement.

Removed in 20w20a.

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