Skip to main content

Smelt Item

The arc:on_smelt_item action type is triggered when a player takes an item out of a furnace, smoker, or blast furnace. Just like experience orbs in vanilla Minecraft, this action also counts the items that are taken out with a hopper. As long as the player takes out one of the smelted items, the action will be triggered. The action is called for every item smelted individually, regardless of how many are taken out at once.

Action Data

When this action is triggered, the following action data is made available to be used by conditions and rewards:

Action Data TypeDescription
arc:item_stackRepresents a stack of items, including item type and quantity.
arc:block_positionSpecifies the coordinates (x, y, z) of a block in the world.
arc:block_stateRepresents the state of a block, including its type and properties.
arc:worldRefers to the world/dimension where the action occurs.
arc:recipeDefines a crafting or smelting recipe used in an action.

Example

The following example will give the player a Speed II effect every time they smelt an item in a smoker.

data/my_datapack/arc/smoker_speed.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_smelt_item",
"conditions": [
{
"type": "arc:is_smoking_recipe"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": "minecraft:speed",
"duration": 200,
"amplifier": 1
}
]
}

Compatible Condition Types

The following condition types can be used with this action type:

Compatible Reward Types

The following reward types can be used with this action type: