Minecraft:Advancement definition
More actions
Template:Exclusive Custom Minecraft:advancements in Minecraft:data packs of a Minecraft world store the advancement data for that world as separate JSON files. Template:TOC
File format
All advancement JSON files are structured according to the following format.
Legend
- *: If parent field is written, this field is required.
- Template:Nbt The root tag.
- Template:Nbt: The parent advancement directory of this advancement. If absent, this advancement is a root advancement. Circular references cause a loading failure.
- Template:Nbt: Data related to the advancement's display.
- Template:Nbt*: Object containing data for the advancement's icon.
- Template:Nbt*: An item ID.
- Template:Nbt: Optional. The amount of the item. Falls back to 1 if the field is absent.
- Template:Nbt: Optional. Additional information about the item. See item components.
- Template:NbtTemplate:NbtTemplate:Nbt*: A JSON text component for the title of this advancement.
- Template:NbtTemplate:NbtTemplate:Nbt*: A JSON text component for the description text of this advancement.
- Template:Nbt: Type of frame for the icon. Template:Code for fancy frame, Template:Code for oval frame, Template:Code for plain frame. Defaults to Template:Cd.
- Template:Nbt: The directory for the background to use in this advancement tab (used only for the root advancement).
- Template:Nbt: Whether to show a toast to the player when this advancement has been completed. Defaults to Template:Cd.
- Template:Nbt: Whether to announce in the chat when this advancement has been completed. Defaults to Template:Cd.
- Template:Nbt: 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 Template:Cd.
- Template:Nbt*: Object containing data for the advancement's icon.
- Template:Nbt*: The criteria to be tracked by this advancement.
- Template:Nbt: The key is a unique name given to the criterion. Can be any valid text.
- See below for details.
- Template:Nbt: The key is a unique name given to the criterion. Can be any valid text.
- Template:Nbt: Defines how these criteria above are completed to grant the advancement. Contains sublists, which in turn contain names of criteria from this advancement (all the Template:Cds). When a criterion is newly completed or revoked, the advancement is granted if all sublists have at least one criterion within them completed. Optional, defaults to requiring all criteria completed.
- Template:Nbt Sublist within Template:Nbt, contains strings of Template:Cds. If a sublist is empty, the advancement is unachievable without cheats.
- Template:Nbt A criterion name.
- Template:Nbt Sublist within Template:Nbt, contains strings of Template:Cds. If a sublist is empty, the advancement is unachievable without cheats.
- Template:Nbt: An object representing the rewards provided when this advancement is obtained.
- Template:Nbt: To give an amount of Minecraft:experience. Defaults to 0.
- Template:Nbt: To unlock Minecraft:recipes.
- Template:Nbt The Minecraft:identifier of a recipe.
- Template:Nbt: To give items from Minecraft:loot tables to the player.
- Template:Nbt The Minecraft:identifier of a loot table.
- Template:Nbt: To run a function. Function tags are not allowed.
- Template:Nbt: Determines whether Minecraft:telemetry data should be collected when this advancement is achieved or not. Defaults to false.
Display
Within the root tag of an advancement JSON object, the Template:Nbt object and the Template:Nbt string, both optional, are related to the display of the advancement.
If the Template:Nbt tag is present, it must have the Template:NbtTemplate:Nbt, Template:NbtTemplate:Nbt and Template:Nbt fields present in order to be considered as valid advancement display data.
The Template:Nbt 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 affects only Template:Cmd usage.
Advancement tabs
Creating a root advancement (no Template:Nbt) with valid Template:Nbt data automatically creates a tab in the advancement menu. When loaded, the root advancement shows as a tab in the menu when any advancement in its advancement tree is granted to the player viewing the menu.
The Minecraft:missing texture displays on the tab's background if the root advancement does not have a background.
If a root advancement successfully creates a tab, child advancements of the root appear inside of that tab, provided they also have valid Template:Nbt data.
Positioning
The game automatically arranges advancements, positions 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 chosen at random upon the player joining the world or server.
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 Minecraft:commands or functions for more functionalities and a more flexible control. These advancements should not have the Template:Nbt field defined in order to hide from users and enjoy a better loading performance.
Criteria
- *: If parent field is written, this field is required.
The format of a criterion:
- Template:Nbt: Root object. The key can be any valid text.
- Template:Nbt*: The trigger for this criterion.
- Template:Nbt: 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.
- Template:Nbt: Checks properties of the player that would get the advancement. Not available for
minecraft:impossibletrigger. - Template:Nbt: Another format for "player". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. Not available for
minecraft:impossibletrigger.- Template:Nbt: A single Minecraft:predicate.
- Extra contents depend on selected Template:Nbt.
- Template:Nbt: Checks properties of the player that would get the advancement. Not available for
List of triggers
All JSON fields in the conditions are optional unless marked with "*".
The possible values for Template:Nbt and associated extra contents in Template:Nbt:
minecraft:allay_drop_item_on_block
Triggers when an allay drops an item on a block. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block the item was dropped on, the block state belongs to that block, and the tool is the item dropped on the block. The Template:Cd entity is the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block the item was dropped on, the block state belongs to that block, and the tool is the item dropped on the block. The Template:Cd entity is the player that would get the advancement.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:allay_drop_item_on_block",
"conditions": {
"location": {
"biome": "minecraft:meadow",
"block": {
"blocks": [
"minecraft:note_block"
]
}
},
"item": {
"items": [
"minecraft:cookie"
]
}
}
}
}
}
</syntaxhighlight>minecraft:any_block_use
Triggers under the same conditions as both minecraft:default_block_use and minecraft:item_used_on_block. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block that was interacted with, the block state belongs to that block, and the tool is either the item used on the block (for the item_used_on_block case) or simply the item in the player's main hand (for the default_block_use case). The Template:Cd entity is the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block that was interacted with, the block state belongs to that block, and the tool is either the item used on the block (for the item_used_on_block case) or simply the item in the player's main hand (for the default_block_use case). The Template:Cd entity is the player that would get the advancement.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:any_block_use",
"conditions": {
"location": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"blocks": "minecraft:grass_block"
}
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"items": "minecraft:iron_shovel"
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:avoid_vibration
Triggers when a vibration event is ignored because the source player is crouching. No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:avoid_vibration",
"conditions": {
"player": {
"location": {
"biome": "minecraft:deep_dark"
}
}
}
}
}
}
</syntaxhighlight>minecraft:bee_nest_destroyed
Triggers when the player breaks a bee nest or beehive. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Checks the block that was destroyed. Accepts block IDs.
- Template:Nbt: The item used to break the block.
- Template:Nbt: The number of bees that were inside the bee nest/beehive before it was broken.
- Template:Nbt: Another form for Template:Nbt.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:bee_nest_destroyed",
"conditions": {
"block": "minecraft:beehive",
"item": {
"items": [
"minecraft:wooden_axe"
]
},
"num_bees_inside": 3
}
}
}
}
</syntaxhighlight>minecraft:bred_animals
Triggers after the player breeds 2 Minecraft:animals. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Checks properties of the child that results from the breeding.
- Template:Nbt: Another format for "child". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin of the predicate is the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The parent.
- Template:Nbt: Another format for "parent". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin of the predicate is the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The partner (The entity the parent was bred with).
- Template:Nbt: Another format for "partner". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin of the predicate is the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:bred_animals",
"conditions": {
"child": {
"type": "minecraft:mule"
},
"parent": {
"location": {
"biome": "minecraft:beach"
}
},
"partner": {
"effects": {
"minecraft:speed": {
"amplifier": {
"min": 2
}
}
}
}
}
}
}
}
</syntaxhighlight>minecraft:brewed_potion
Triggers after the player takes any item out of a Minecraft:brewing stand. Available extra conditions:
An example
{
"criteria": {
"example": {
"trigger": "minecraft:brewed_potion",
"conditions": {
"potion": "minecraft:strong_swiftness"
}
}
}
}
</syntaxhighlight>minecraft:changed_dimension
Triggers after the player travels between two Minecraft:dimensions. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The dimension the entity traveled from. This tag is an Minecraft:identifier for a dimension (only Template:Tooltip in vanilla; more can be added with data packs).
- Template:Nbt: The dimension the entity traveled to. Same accepted values as above.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:changed_dimension",
"conditions": {
"from": "minecraft:the_end",
"to": "minecraft:overworld"
}
}
}
}
</syntaxhighlight>minecraft:channeled_lightning
Triggers after the player successfully uses the Channeling enchantment on an entity or a lightning rod. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The victims hit by the lightning summoned by the Channeling enchantment. All entities in this list must be hit.
- Template:Nbt: A victim.
- Template:Nbt: Another format for the victim. Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the victim hit by the lighting, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The victims hit by the lightning summoned by the Channeling enchantment. All entities in this list must be hit.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:channeled_lightning",
"conditions": {
"victims": [
{
"type": "minecraft:skeleton_horse",
"nbt": "{SkeletonTrap: true}"
}
]
}
}
}
}
</syntaxhighlight>minecraft:construct_beacon
Triggers after the player changes the structure of a Minecraft:beacon. (When the beacon updates itself). Available extra conditions:
- Template:Nbt:
- Template:Nbt: The level of the updated beacon structure.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:construct_beacon",
"conditions": {
"level": {
"min": 3
}
}
}
}
}
</syntaxhighlight>minecraft:consume_item
Triggers when the player consumes an item. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item that was consumed.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:consume_item",
"conditions": {
"item": {
"items": [
"minecraft:enchanted_golden_apple"
],
"nbt": "{display:{Name:\"Example\"}}"
}
}
}
}
}
</syntaxhighlight>minecraft:crafter_recipe_crafted
Triggers when the player is ±8 blocks on any axis of a Minecraft:crafter when it crafts a recipe. Available extra conditions:
- Template:Nbt:
- Template:Nbt*: The recipe that was crafted.
- Template:Nbt: An array of item predicates for the recipe ingredients. Each item can match only one predicate, and every predicate needs to pass for the criterion to be granted.
- Template:Nbt: A single predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:crafter_recipe_crafted",
"conditions": {
"recipe_id": "minecraft:furnace",
"ingredients": [
{
"items": [
"minecraft:cobblestone"
]
},
{
"items": [
"minecraft:blackstone"
]
},
{
"items": [
"minecraft:cobbled_deepslate"
]
}
]
}
}
}
}
</syntaxhighlight>minecraft:cured_zombie_villager
Triggers when the player cures a Minecraft:zombie villager. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The villager that is the result of the conversion. The 'type' tag is redundant since it is always "villager".
- Template:Nbt: Another format for "villager". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the villager, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The zombie villager right before the conversion is complete (not when it is initiated). The 'type' tag is redundant since it is always "zombie_villager".
- Template:Nbt: Another format for "zombie". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the zombie villager, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:cured_zombie_villager",
"conditions": {
"villager": {
"location": {
"biome": "minecraft:plains"
}
},
"zombie": {
"distance": {
"horizontal": {
"max": 10
}
}
}
}
}
}
}
</syntaxhighlight>minecraft:default_block_use
Triggers when the player activates a block's default Template:Control action (opening a door, pushing a button, opening a crafting grid, etc). Available extra conditions:
- Template:Nbt:
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block that was interacted with and the block state belongs to that block. Note that for this trigger, a "tool" is not provided. The Template:Cd entity is the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block that was interacted with and the block state belongs to that block. Note that for this trigger, a "tool" is not provided. The Template:Cd entity is the player that would get the advancement.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:default_block_use",
"conditions": {
"location": [
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"blocks": "minecraft:oak_door"
}
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:effects_changed
Triggers after the player gets a Minecraft:status effect applied or taken from them. Available extra conditions:
- Template:Nbt:
- Template:Nbt: A list of active status effects the player currently has.
- Template:Nbt: The key name is a status effect name.
- Template:Nbt: Whether the effect is from a beacon.
- Template:Nbt: The effect amplifier.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: The effect duration in ticks.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: Whether the effect has visible particles.
- Template:Nbt: The key name is a status effect name.
- Template:Nbt: The entity that was the source of the status effect. When there is no entity or when the effect was self-applied or removed, the test passes only if the source is not specified.
- Template:Nbt: Another format for "source". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the source, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: A list of active status effects the player currently has.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:effects_changed",
"conditions": {
"effects": {
"minecraft:weakness": {},
"minecraft:slowness": {
"amplifier": 2,
"duration": {
"min": 100,
"max": 500
}
}
}
}
}
}
}
</syntaxhighlight>minecraft:enchanted_item
Triggers after the player enchants an item through an Minecraft:enchanting table (does not get triggered through an Minecraft:anvil, or through Minecraft:commands). Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item after it has been enchanted.
- Template:Nbt: The levels spent by the player on the enchantment.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:enchanted_item",
"conditions": {
"item": {
"items": [
"minecraft:wooden_sword"
],
"enchantments": [
{
"enchantment": "minecraft:sharpness",
"levels": {
"min": 2
}
}
]
},
"levels": {
"min": 3
}
}
}
}
}
</syntaxhighlight>minecraft:enter_block
Triggers once for each block the player's hitbox is inside (up to 12 blocks, the maximum number of blocks the player can stand in), twice per tick plus once more for every time the player moves or looks around during the same tick. This results in the trigger activating tens of times per tick, and in extreme cases, even hundreds of times per tick. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The block that the player is standing in. Accepts block IDs.
- Template:Nbt: A map of block property names to values. Errors if the block doesn't have these properties.
- Template:Nbt: Block property key and value pair.
- Template:Nbt: Another format.
- Template:Nbt: A maximum value.
- Template:Nbt: A minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:enter_block",
"conditions": {
"block": "minecraft:rose_bush",
"state": {
"half": "lower"
}
}
}
}
}
</syntaxhighlight>minecraft:entity_hurt_player
Triggers after a player gets hurt (even when it's not caused by an entity)<ref>Template:Bug</ref>. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Checks the damage done to the player.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:entity_hurt_player",
"conditions": {
"damage": {
"type": {
"source_entity": {
"type": "minecraft:skeleton"
},
"direct_entity": {
"type": "minecraft:arrow"
}
},
"taken": {
"min": 4.0
}
}
}
}
}
}
</syntaxhighlight>minecraft:entity_killed_player
Triggers after a living Minecraft:entity kills a player. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Checks the entity that was the source of the damage that killed the player (for example: The skeleton that shot the arrow).
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity that kills the player, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Checks the type of damage that killed the player.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:entity_killed_player",
"conditions": {
"entity": {
"type": "minecraft:skeleton"
},
"killing_blow": {
"is_projectile": true
}
}
}
}
}
</syntaxhighlight>minecraft:fall_after_explosion
Triggers when a player lands after being launched upward by an explosion or wind burst. Available extra conditions:
- Template:Nbt:
- Template:Nbt: A location predicate for the last position before the falling started.
- Template:Nbt: The distance between the start position and the player's position.
- Template:Nbt: Checks the entity that was the source of the explosion or wind burst that launched the player upward.
- Template:Nbt: Another format for "source". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity that kills the player, with the origin being the position of the player that would get the advancement.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:fall_after_explosion",
"conditions": {
"distance": {
"y": {
"min": 10
}
},
"cause": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:tnt"
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:fall_from_height
Triggers when a player lands after falling. Available extra conditions:
- Template:Nbt:
- Template:Nbt: A location predicate for the last position before the falling started.
- Template:Nbt: The distance between the start position and the player's position.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:fall_from_height",
"conditions": {
"start_position": {
"position": {
"y": {
"min": -13,
"max": 256
}
}
},
"distance": {
"y": {
"min": 50,
"max": 320
}
}
}
}
}
}
</syntaxhighlight>minecraft:filled_bucket
Triggers after the player fills a bucket. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item resulting from filling the bucket.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:filled_bucket",
"conditions": {
"item": {
"items": [
"minecraft:lava_bucket"
]
}
}
}
}
}
</syntaxhighlight>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 extra conditions:
- Template:Nbt:
- Template:Nbt: The entity that was pulled, or the fishing bobber if no entity is pulled.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity pulled or the bobber, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The item that was caught.
- Template:Nbt: The fishing rod used.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:fishing_rod_hooked",
"conditions": {
"item": {
"items": [
"minecraft:bamboo"
]
}
}
}
}
}
</syntaxhighlight>minecraft:hero_of_the_village
Triggers when a Minecraft:raid ends in victory and the player has attacked at least one raider from that raid. No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:hero_of_the_village",
"conditions": {
"player":{
"location": {
"biome": "minecraft:plains",
"dimension": "minecraft:overworld",
"position": {
"z": {
"min": -10,
"max": 10
}
}
}
}
}
}
}
}
</syntaxhighlight>minecraft:impossible
Never triggers. No available conditions.
Criteria with this trigger can only be granted from commands.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:impossible"
}
}
}
</syntaxhighlight>minecraft:inventory_changed
Triggers after any changes happen to the player's Minecraft:inventory. Available extra conditions:
- Template:Nbt:
- Template:Nbt: A list of items to be checked against the item(s) that were added to the player's inventory when the advancement was triggered. For the trigger to pass, each item predicate in this list must match at least one item that was added.
- Template:Nbt: An item stack.
- Template:Nbt inherit/conditions/item
- Template:Nbt:
- Template:Nbt: The amount of slots empty in the inventory.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: The amount of slots completely filled (stacksize) in the inventory.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: The amount of slots occupied in the inventory.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: A list of items to be checked against the item(s) that were added to the player's inventory when the advancement was triggered. For the trigger to pass, each item predicate in this list must match at least one item that was added.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:inventory_changed",
"conditions": {
"items": [
{
"items": [
"minecraft:polished_granite"
],
"count": {
"min": 5,
"max": 10
}
},
{
"items": [
"minecraft:lime_wool"
]
},
{
"items": [
"minecraft:wooden_sword"
],
"durability": {
"min": 50
},
"components": {
"minecraft:custom_name": "Example"
}
}
],
"slots": {
"occupied": 3
}
}
}
}
}
</syntaxhighlight>minecraft:item_durability_changed
Triggers after any item in the inventory has been damaged in any form. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The change in durability (negative numbers are used to indicate a decrease in durability).
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: The remaining durability of the item.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: The item before it was damaged, allows you to check the durability before the item was damaged.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:item_durability_changed",
"conditions": {
"delta": -2,
"item": {
"items": [
"minecraft:wooden_axe"
],
"durability": {
"max": 1
}
}
}
}
}
}
</syntaxhighlight>minecraft:item_used_on_block
Triggers when the player Template:Control their hand or an item on a block. Note that the item (or lack thereof) must be able to interact with the block, e.g. an item cannot be "used" on a Minecraft:campfire if there isn't a Minecraft:recipe that allows the item to be cooked on a campfire (however, placing a block by using on the campfire does count as an interaction). See also minecraft:default_block_use for detecting non-item-specific uses.
Available extra conditions:
- Template:Nbt:
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block the item was used on, the block state belongs to that block, and the tool is the item used on the block. The Template:Cd entity is the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block the item was used on, the block state belongs to that block, and the tool is the item used on the block. The Template:Cd entity is the player that would get the advancement.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"location": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:glow_ink_sac"
]
}
},
{
"condition": "minecraft:location_check",
"predicate": {
"block": {
"tag": "minecraft:all_signs"
}
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:kill_mob_near_sculk_catalyst
Triggers after a player is the source of a Minecraft:mob or player being killed within the range of a Minecraft:sculk catalyst. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The entity that was killed.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the mob, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The type of damage that killed an entity.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:kill_mob_near_sculk_catalyst",
"conditions": {
"entity": {
"type": "minecraft:creeper",
"nbt": "{powered:1b}",
"location": {
"biome": "minecraft:the_void"
},
"effects": {
"minecraft:slowness": {},
"minecraft:weakness": {
"amplifier": {
"min": 2
}
}
}
},
"killing_blow": {
"source_entity": {
"nbt": "{SelectedItem:{id:\"minecraft:wooden_sword\"}}"
}
}
}
}
}
}
</syntaxhighlight>minecraft:killed_by_arrow
Triggers after the player kills a Minecraft:mob or player using an arrow in ranged combat. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The weapon that fired the arrow.
- Template:Nbt: The exact count of types of entities killed.
- Template:Nbt: Another format. The acceptable range of count of types of entities killed.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: A list of victims. All of the entries must be matched, and one killed entity may match only one entry.
- Template:Nbt: A killed entities.
- Template:Nbt: Another format for the victim. Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the victim, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:killed_by_arrow",
"conditions": {
"unique_entity_types": 5,
"fired_from_weapon": {
"items": "minecraft:crossbow"
},
"victims": [
{
"type": "minecraft:phantom"
},
{
"type": "minecraft:phantom"
}
]
}
}
}
}
</syntaxhighlight>minecraft:levitation
Triggers when the player has the levitation Minecraft:status effect. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The distance between the position where the player started levitating and the player's current position.
- Template:Nbt: The duration of the levitation in ticks.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:levitation",
"conditions": {
"distance": {
"horizontal": {
"min": 5
},
"y": {
"min": 2
}
},
"duration": {
"min": 100
}
}
}
}
}
</syntaxhighlight>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 extra conditions:
- Template:Nbt:
- Template:Nbt: The lightning bolt that disappeared.
- Template:Nbt: Another format for "lightning". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the lightning, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: An entity not hurt by the lightning strike but in a certain area around it.
- Template:Nbt: Another format for "bystander". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the bystander, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:lightning_strike",
"conditions": {
"lightning": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"lightning_bolt": {
"entity_struck": {
"type": "minecraft:creeper"
}
}
}
}
],
"bystander": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:pig"
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:location
Triggers every 20 Minecraft:ticks (1 second). No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:location",
"conditions": {
"player": {
"location": {
"position": {
"x": {
"min": -10,
"max": 10
}
},
"biomes": "minecraft:jungle",
"structures": "minecraft:jungle_pyramid",
"dimension": "minecraft:overworld"
}
}
}
}
}
}
</syntaxhighlight>minecraft:nether_travel
Triggers when the player travels to the Minecraft:Nether and then returns to the Minecraft:Overworld. Available extra conditions:
- Template:Nbt:
- Template:Nbt: A location predicate for the last position before the player teleported to the Nether.
- Template:Nbt: The distance between the position where the player teleported to the Nether and the player's position when they returned.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:nether_travel",
"conditions": {
"distance": {
"horizontal": {
"min": 1000
},
"absolute": {
"min": 1100
}
}
}
}
}
}
</syntaxhighlight>minecraft:placed_block
Triggers when the player places a block. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block placed, the block state belongs to that block, and the tool is the item used to place the block. The Template:Cd entity is the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the block placed, the block state belongs to that block, and the tool is the item used to place the block. The Template:Cd entity is the player that would get the advancement.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:placed_block",
"conditions": {
"location": [
{
"condition": "location_check",
"predicate": {
"block": {
"blocks": "wall_torch",
"state": {
"facing": "west"
}
},
"position": {
"x": 10,
"z": 14
},
"biome": "minecraft:plains"
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:player_generates_container_loot
Triggers when the player generates the contents of a container with a loot table set. Available extra conditions:
- Template:Nbt:
- Template:Nbt*: The identifier of the generated loot table.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:player_generates_container_loot",
"conditions": {
"loot_table": "minecraft:chests/jungle_temple_dispenser"
}
}
}
}
</syntaxhighlight>minecraft:player_hurt_entity
Triggers after the player hurts a Minecraft:mob or player. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The damage that was dealt.
- Template:Nbt: The entity that was damaged.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"damage": {
"blocked": true,
"type": {
"direct_entity": {
"type": "minecraft:arrow"
}
}
},
"entity": {
"type": "minecraft:player",
"nbt": "{Tags:[\"example\"]}"
}
}
}
}
}
</syntaxhighlight>minecraft:player_interacted_with_entity
Triggers when the player interacts with an entity. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item that was in the player's hand during interaction.
- Template:Nbt: The entity that was interacted with.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:player_interacted_with_entity",
"conditions": {
"item": {
"items": [
"minecraft:iron_ingot"
]
},
"entity": {
"type": "minecraft:iron_golem"
}
}
}
}
}
</syntaxhighlight>minecraft:player_killed_entity
Triggers after a player is the source of a Minecraft:mob or player being killed. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The entity that was killed.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: The type of damage that killed an entity.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:player_killed_entity",
"conditions": {
"entity": {
"type": "minecraft:creeper",
"nbt": "{powered:1b}",
"location": {
"biome": "minecraft:the_void"
},
"effects": {
"minecraft:slowness": {},
"minecraft:weakness": {
"amplifier": {
"min": 2
}
}
}
},
"killing_blow": {
"source_entity": {
"equipment": {
"mainhand": {
"items": "minecraft:wooden_sword"
}
}
}
}
}
}
}
}
</syntaxhighlight>minecraft:player_sheared_equipment
Triggers after a player shears equipment off of a mob, such as Minecraft:wolf armor. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The entity whose equipment was sheared.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: The item of equipment that was sheared off.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:player_sheared_equipment",
"conditions": {
"entity": {
"type": "minecraft:pig",
"location": {
"biome": "minecraft:forest"
},
},
"item": {
"items": "minecraft:saddle"
}
}
}
}
}
</syntaxhighlight>minecraft:recipe_crafted
Triggers when the player crafts a recipe in a crafting table, stonecutter or smithing table. Available extra conditions:
- Template:Nbt:
- Template:Nbt*: The recipe that was crafted.
- Template:Nbt: An array of item predicates for the recipe ingredients. Each item can match only one predicate, and every predicate needs to pass for the criterion to be granted.
- Template:Nbt: A single predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:recipe_crafted",
"conditions": {
"recipe_id": "minecraft:furnace",
"ingredients": [
{
"items": [
"minecraft:cobblestone"
]
},
{
"items": [
"minecraft:blackstone"
]
},
{
"items": [
"minecraft:cobbled_deepslate"
]
}
]
}
}
}
}
</syntaxhighlight>minecraft:recipe_unlocked
Triggers after the player unlocks a recipe (using a Minecraft:knowledge book for example). Available extra conditions:
- Template:Nbt:
- Template:Nbt*: The recipe that was unlocked.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "minecraft:wooden_sword"
}
}
}
}
</syntaxhighlight>minecraft:ride_entity_in_lava
Triggers when a player mounts an entity walking on lava and while the entity moves with them. Available extra conditions:
- Template:Nbt:
- Template:Nbt: A location predicate for the last position before the player mounted the entity.
- Template:Nbt: The distance between the start position and the player's position.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:ride_entity_in_lava",
"conditions": {
"distance": {
"horizontal": {
"min": 10,
"max": 100
}
}
}
}
}
}
</syntaxhighlight>minecraft:shot_crossbow
Triggers when the player shoots a crossbow. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The crossbow that is used.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:shot_crossbow",
"conditions": {
"item": {
"items": [
"minecraft:crossbow"
]
}
}
}
}
}
</syntaxhighlight>minecraft:slept_in_bed
Triggers when the player enters a Minecraft:bed. No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:slept_in_bed",
"conditions": {
"player": {
"location": {
"position": {
"x": {
"min": -10,
"max": 10
}
},
"biome": "minecraft:jungle",
"structure": "minecraft:jungle_pyramid",
"dimension": "minecraft:overworld"
}
}
}
}
}
}
</syntaxhighlight>minecraft:slide_down_block
Triggers when the player slides down a block. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The block that the player slid on.
- Template:Nbt: A map of block property names to values. Errors if the block doesn't have these properties.
- Template:Nbt: Block property key and value pair.
- Template:Nbt: Another format.
- Template:Nbt: A maximum value.
- Template:Nbt: A minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:slide_down_block",
"conditions": {
"block": "minecraft:honey_block"
}
}
}
}
</syntaxhighlight>minecraft:started_riding
Triggers when the player starts riding a vehicle or an entity starts riding a vehicle currently ridden by the player. No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:started_riding",
"conditions": {
"player": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"vehicle": {
"type": "minecraft:strider"
}
}
}
]
}
}
}
}
</syntaxhighlight>minecraft:summoned_entity
Triggers after an Minecraft:entity has been summoned. Works with Minecraft:iron golems (iron blocks and pumpkin), Minecraft:snow golems (snow blocks and pumpkin), Minecraft:copper golems (copper block and pumpkin), the Minecraft:ender dragon (end crystals) and the Minecraft:wither (soul sand/soul soil and wither skulls). Using Minecraft:dispensers, commands, or Minecraft:pistons to place the wither skulls or pumpkins still activate this trigger. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The summoned entity.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:summoned_entity",
"conditions": {
"entity": {
"type": "minecraft:snow_golem"
}
}
}
}
}
</syntaxhighlight>minecraft:tame_animal
Triggers after the player tames an animal. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Checks the entity that was tamed.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:tame_animal",
"conditions": {
"entity": {
"type": "minecraft:parrot",
"nbt": "{Variant:2}"
}
}
}
}
}
</syntaxhighlight>minecraft:target_hit
Triggers when the player shoots a Minecraft:target block. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The redstone signal that the target block emits.
- Template:Nbt: Another format.
- Template:Nbt: The maximum value.
- Template:Nbt: The minimum value.
- Template:Nbt: The projectile hit the target block.
- Template:Nbt: Another format for "projectile". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the projectile, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:target_hit",
"conditions": {
"signal_strength": 15,
"projectile": [
{ "condition": "minecraft:entity_properties", "predicate": { "type": "minecraft:snowball" }, "entity": "this" } ]
} } }
}
</syntaxhighlight>minecraft:thrown_item_picked_up_by_entity
Triggers after the player throws an item and another entity picks it up. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The thrown item that was picked up.
- Template:Nbt: The entity that picked up the item.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:thrown_item_picked_up_by_entity",
"conditions": {
"item": {
"items": [
"minecraft:diamond"
]
},
"entity": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "minecraft:player"
},
"entity": "this"
}
]
}
}
}
}
</syntaxhighlight>minecraft:thrown_item_picked_up_by_player
Triggers when a player picks up an item thrown by another entity. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item thrown.
- Template:Nbt: The entity that threw the item.
- Template:Nbt: Another format for "entity". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the entity, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:thrown_item_picked_up_by_player",
"conditions": {
"item": {
"items": [
"minecraft:cookie"
]
},
"entity": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "minecraft:allay"
},
"entity": "this"
}
]
}
}
}
}
</syntaxhighlight>minecraft:tick
Triggers every Minecraft:tick (20 times a second). No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:tick",
"conditions": {
"player": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"team": "red"
},
"entity": "this"
}
]
}
}
}
}
</syntaxhighlight>minecraft:used_ender_eye
Triggers when the player uses an Minecraft:eye of ender (in a world where Minecraft:strongholds generate). Available extra conditions:
- Template:Nbt:
- Template:Nbt: The horizontal distance between the player and the stronghold.
- Template:Nbt: Another format.
- Template:Nbt: A maximum value.
- Template:Nbt: A minimum value.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:used_ender_eye",
"conditions": {
"distance": {
"min": 100,
"max": 200
}
}
}
}
}
</syntaxhighlight>minecraft:used_totem
Triggers when the player uses a totem. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item, works only with totem items.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:used_totem",
"conditions": {
"item": {
"items": [
"minecraft:totem_of_undying"
]
}
}
}
}
}
</syntaxhighlight>minecraft:using_item
Triggers for every tick that the player uses an item that is used continuously. It is known to trigger for Minecraft:bows, Minecraft:crossbows, Minecraft:honey bottles, Minecraft:milk buckets, Minecraft:potions, Minecraft:shields, Minecraft:spyglasses, Minecraft:tridents, food items, eyes of ender, etc. Most items that activate from a single click, such as Minecraft:fishing rods, do not affect this trigger. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item that is used.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:using_item",
"conditions": {
"item": {
"items": [
"minecraft:enchanted_golden_apple"
],
"components": {
"minecraft:item_name": "Example"
}
}
}
}
}
}
</syntaxhighlight>minecraft:villager_trade
Triggers after the player trades with a Minecraft:villager or a Minecraft:wandering trader. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item that was purchased. The "count" tag checks the count from one trade, not multiple.
- Template:Nbt: The villager the item was purchased from.
- Template:Nbt: Another format for "villager". Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The checks are applied to the villager, with the origin being the position of the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:villager_trade",
"conditions": {
"item": {
"items": [
"minecraft:emerald"
],
"count": {
"min": 1
}
},
"villager": {
"nbt": "{VillagerData:{profession:\"minecraft:librarian\"}}"
}
}
}
}
}
</syntaxhighlight>minecraft:voluntary_exile
Triggers when the player causes a Minecraft:raid. No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:voluntary_exile",
"conditions": {
"player":{
"location": {
"biome": "minecraft:savanna",
"dimension": "minecraft:overworld",
"position": {
"z": {
"min": -10,
"max": 10
}
}
}
}
}
}
}
}
</syntaxhighlight>Removed triggers
minecraft:arbitrary_player_tick
Triggers every tick for one player only. No available conditions.
Only exists in 17w18b.
minecraft:item_delivered_to_player
Triggers when an allay delivers an item to the player. No extra conditions.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:item_delivered_to_player",
"conditions": {
"player": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"location": {
"dimension": "minecraft:the_nether"
}
},
"entity": "this"
}
]
}
}
}
}
</syntaxhighlight>Only exists in 22w14a.
minecraft:player_damaged
Triggers when the player receives damage. Available conditions:
- Template:Nbt:
- Template:Nbt: Damage 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 extra conditions:
- Template:Nbt:
- Template:Nbt: The block that the player harvested the honey from.
- Template:Nbt: A block ID.
- Template:Nbt: A block tag.
- Template:Nbt: The item that the player used to harvest the honey.
- Template:Nbt: The block that the player harvested the honey from.
An example
{
"criteria": {
"example": {
"trigger": "minecraft:safely_harvest_honey",
"conditions": {
"block": {
"tag": "minecraft:beehives"
},
"item": {
"item": "minecraft:shears"
}
}
}
}
}
</syntaxhighlight>This trigger was made redundant by the item_used_on_block trigger. Removed in 20w20a.
Temporary triggers
Minecraft:23w13a_or_b
minecraft:voted
Triggers when the player casts a vote. No extra conditions.
Minecraft:24w14potato
minecraft:bring_home_corruption
Triggers when the player uses corrupted potato peels on the top side of terre de pomme placed in the Overworld. No extra conditions.
minecraft:compost_staff
Triggers when the player uses a Potatiesh, Greatstaff of the Peasant on a composter. No extra conditions.
minecraft:eat_armor
Triggers when the player eats a part of an equipped poisonous potato chestplate. No extra conditions.
minecraft:get_peeled
Triggers when the player is peeled by another player while wearing a poisonous potato chestplate. No extra conditions.
minecraft:peel_block
Triggers when the player uses a potato peeler on a block that can be peeled. No extra conditions.
minecraft:peel_potato_armor
Triggers when the player uses a potato peeler on an entity wearing a poisonous potato chestplate. No extra conditions.
minecraft:peel_potato_sheep
Triggers when the player uses a potato peeler on a sheep in the Potato dimension. No extra conditions.
minecraft:potato_refined
Triggers when the player takes an item out of the output slot of a potato refinery. Available extra conditions:
- Template:Nbt:
- Template:Nbt*: The result of the refining recipe.
- Template:Nbt*: The type of refining recipe. Must be either
standardfor a recipe that outputs a different item than the input, orlubricationfor a recipe that increments the lubrication factor of an item. - Template:Nbt*: The output item.
- Template:Nbt: The minimum lubrication factor the output item must have. Must exist if Template:Nbt is
lubricationand has no effect otherwise.
- Template:Nbt*: The type of refining recipe. Must be either
- Template:Nbt*: The result of the refining recipe.
minecraft:rumble_plant
Triggers when the player equips a poisonous potato plant on their head. No extra conditions.
minecraft:said_potato
Triggers when the player sends a chat message containing "potato" (case-sensitive). No extra conditions.
minecraft:throw_lubricated
Triggers when the player throws a lubricated item. Available extra conditions:
- Template:Nbt:
- Template:Nbt*: The minimum lubrication factor the thrown item must have. This condition does not support a min-max range.
Minecraft:25w14craftmine
minecraft:consume_poisonous_potatoes
Triggers when the player consumes a poisonous potato that causes their Template:Cd statistic to increase to 100. Available extra conditions:
- Template:Nbt:
- Template:Nbt: The item that was consumed.
minecraft:inventory_cashed_in
Triggers when the player cashes in an item by returning to the hub from a successful mine. Available extra conditions:
- Template:Nbt:
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the mine crafter, the block state belongs to that block, and the tool is the item that was cashed in. The Template:Cd entity is the player that would get the advancement.
- Template:Nbt: A single Minecraft:predicate.
- Template:Nbt: Specifies a list of Minecraft:predicates that must pass in order for the criterion to be granted. The origin is the location of the mine crafter, the block state belongs to that block, and the tool is the item that was cashed in. The Template:Cd entity is the player that would get the advancement.
minecraft:level_completed
Triggers when the player returns to the hub after successfully exiting a mine. No extra conditions.
minecraft:level_failed
Triggers when the player returns to the hub after failing a mine. No extra conditions.
minecraft:mine_crafter_upgraded
Triggers when the player upgrades a mine crafter using experience. No extra conditions.
minecraft:mine_revisitor_activated
Triggers when the player places a mine on a mine revisitor. No extra conditions.
minecraft:player_unlock_bought
Triggers when the player buys an unlock. No extra conditions.
minecraft:player_unlock_unlocked
Triggers when the player gets the ability to buy a new unlock by buying its parent unlock. No extra conditions.
minecraft:special_mine_completed
Triggers when the player returns to the hub after successfully exiting a special mine. No extra conditions.
External links
References
Template:Navbox Java Edition technical
Minecraft:de:Fortschrittsdefinition Minecraft:fr:Définition de progrès Minecraft:ja:進捗/JSONフォーマット Minecraft:pt:Definição de progressos Minecraft:ru:Достижение (Java Edition)/Формат JSON Minecraft:zh:进度定义格式