Not In Block Position Cache
The arc:not_in_block_pos_cache condition type checks if a block's position is not in the player's recent placement history. This is useful for preventing rewards from blocks that the player has placed themselves.
Parameters
This condition type does not have any parameters.
Example
The following example gives the player a diamond only when they break a naturally-occurring stone block, not one they placed.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:stone"
},
{
"type": "arc:not_in_block_pos_cache"
}
],
"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 Kill Entity
The arc:onkillentity action type is triggered when a player kills an entity.
🧱 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.