Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Item Break

The arc:on_item_break action type is triggered when a tool or armor piece loses all durability and breaks.

Action Data

When this action is triggered, the following action data is made available:

Action Data TypeDescription
arc:item_stackRepresents a stack of items, including item type and quantity.
arc:itemRefers to a single item type without stack information.
arc:block_positionSpecifies the coordinates (x, y, z) of a block in the world.
arc:worldRefers to the world/dimension where the action occurs.

Example

The following example gives the player two sticks when a wooden pickaxe breaks.

data/my_datapack/arc/sticks_refund.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_item_break",
"conditions": [
{
"type": "arc:item",
"item": "minecraft:wooden_pickaxe"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:stick", "count": 2 }
}
]
}

Compatible Condition Types

Compatible Reward Types