Block Action Types
Action types are the core of Arc Lib's functionality. They define the events that can trigger rewards and conditions in your datapack. Each action type corresponds to a specific event or state in the game, such as a player sprinting, taking damage, or placing a block.
If you can't find the action type you're looking for, it may be because it hasn't been implemented yet. If you think an action type should be added, feel free to open an issue on the GitHub repository to suggest it.
Action Type Categories
⛏️ On Break Block
The arc:onbreakblock action type is triggered when a player breaks a block.
⚡ 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.