Skip to main content

Cancel Action

The arc:cancel_action reward type prevents the default outcome of a triggered action.

Parameters

This reward type does not have any parameters.

Example

The following example prevents the player from breaking diamond ore.

data/my_datapack/arc/prevent_breaking_diamond_ore.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:diamond_ore"
}
],
"rewards": [
{
"type": "arc:cancel_action"
}
]
}

Compatible Action Types