Block
The arc:block condition type checks if the block involved in the action matches a specific block description.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
block | ArcBlockState | ✅Required | - | The block to check. |
Example
The following example checks for a Chest that is facing North. Note that properties are defined within the block object.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_interact_block",
"conditions": [
{
"type": "arc:block",
"block": {
"id": "minecraft:chest",
"properties": {
"facing": "north"
}
}
}
],
"rewards": [
{
"type": "arc:command",
"command": "say You opened a North facing chest!"
}
]
}
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 Empty Bucket
The arc:onemptybucket action type is triggered when a player places a liquid or fish from a bucket.
💧 On Fill Bucket
The arc:onfillbucket action type is triggered when a player picks up a liquid or fish with a bucket.
⚡ 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 Rod Reel In
The arc:onrodreel_in action type is triggered when a player reels in a fishing rod.
🔥 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.
🌿 On Till Soil
The arc:ontillsoil action type is triggered when a player uses a hoe on a dirt-like block to create farmland.