Skip to main content

Get Destroy Speed

The arc:on_get_destroy_speed action type is triggered when a player is determining how quickly they can break a block. This action type allows you to modify the destroy speed based on various conditions.

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:itemRefers to a single item type without stack information.
arc:block_stateRepresents the state of a block, including its type and properties.
arc:block_positionSpecifies the coordinates (x, y, z) of a block in the world.

Example

The following example will double the player's destroy speed when they are breaking a diamond block.

data/my_datapack/arc/double_speed_for_diamond_block.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_get_destroy_speed",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:diamond_block"
}
],
"rewards": [
{
"type": "arc:destroy_speed_multiplier",
"multiplier": 2.0
}
]
}

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: