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 Drink
The arc:on_drink action type is triggered when a player drinks an item (e.g., potion, milk bucket, etc.).
🍽️ On Eat
The arc:on_eat action type is triggered when a player eats an item.
💉 On Effect Added
The arc:onaddeffect action type is triggered when a player receives a potion effect.
🪣 On Empty Bucket
The arc:onemptybucket action type is triggered when a player places a liquid or fish from a bucket.
⚔️ On Get Attack Speed
The arc:getattackspeed action type is used to retrieve the attack speed of a player.
⚡ On Get Destroy Speed
The arc:ongetdestroy_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.
🤕 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 Land
The arc:on_land action type is triggered when a player lands on the ground after falling or jumping.
🧱 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 Strip Log
The arc:onstriplog action type is triggered when a player strips a log or wood block using an axe.
🐾 On Tame Animal
The arc:ontameanimal action type is triggered when a player tames an animal.
🖱️ On Use Item
The arc:onuseitem action type is triggered when a player uses an item (right-clicks with an item).