Blocks
The arc:blocks condition type checks if a block is one of several specified blocks or belongs to a specified block tag.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
blocks | string[] | ✅Required | - | The blocks/block tags to check. |
Example
The following example rewards the player with a diamond when they break any block that is part of the #minecraft:logs tag.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:blocks",
"blocks": ["#minecraft:logs"]
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:diamond" }
}
]
}
Compatible Action Types
⛏️ On Break Block
The arc:onbreakblock action type is triggered when a player breaks a block.
🧪 On Brew Potion
The arc:onbrewpotion action type is triggered when a player brews a potion.
⚡ 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 Harvest Crop
The arc:onharvestcrop action type is triggered when a player harvests a crop.
🖱️ On Interact Block
The arc:oninteractblock action type is triggered when a player interacts with a block, 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 Smelt Item
The arc:onsmeltitem action type is triggered when a player takes an item out of a furnace, smoker, or blast furnace. Just like experience orbs in vanilla Minecraft, this action also counts the items that are taken out with a hopper. As long as the player takes out one of the smelted items, the action will be triggered. The action is called for every item smelted individually, regardless of how many are taken out at once.
🪵 On Strip Log
The arc:onstriplog action type is triggered when a player strips a log or wood block using an axe.