Skip to main content

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

Repair Held Item

The arc:repair_held_item reward type repairs the item held in a specific hand.

Parameters

ParameterTypeRequiredDefaultDescription
amountintRequired-No default valueAmount to repair.
is_percentagebooleanOptionalfalseIs amount a percentage.
handInteractionHandOptionalMAIN_HANDHand to repair.

Example

The following example repairs the main hand item by 5% when breaking a block.

data/my_datapack/arc/tool_maintenance.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"rewards": [
{
"type": "arc:repair_held_item",
"amount": 5,
"is_percentage": true,
"hand": "MAIN_HAND"
}
]
}

Compatible Action Types