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.
{
"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
⛏️ On Break Block
The arc:onbreakblock action type is triggered when a player breaks a block.
🐑 On Breed Animal
The arc:onbreedanimal action type is triggered when a player breeds two animals.
💉 On Effect Added
The arc:oneffectadded action type is triggered when a player receives a new effect.
🤕 On Get Hurt
The arc:ongethurt action type is triggered when a player takes damage.
🌾 On Harvest Crop
The arc:onharvestcrop action type is triggered when a player harvests a crop.
🗡️ On Hurt Entity
The arc:onhurtentity action type is triggered when a player hurts an entity.
🗡️ On Hurt Item
The arc:onhurtitem action type is triggered when a player hurts/damages an item.
🩸 On Hurt Player
The arc:onhurtplayer action type is triggered when a player hurts another player.
🖱️ On Interact Block
The arc:oninteractblock action type is triggered when a player interacts with a block, such as right-clicking it.
🖱️ On Interact Entity
The arc:oninteractentity action type is triggered when a player interacts with an entity, such as right-clicking it.
🧱 On Place Block
The arc:onplaceblock action type is triggered when a player places a block.
🌱 On Plant Crop
The arc:onplantcrop action type is triggered when a player plants a crop.
🐾 On Tame Animal
The arc:ontameanimal action type is triggered when a player tames an animal.