Item 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 Craft Item
The arc:oncraftitem action type is triggered when a player crafts an item.
🪣 On Drop Item
The arc:ondropitem action type is triggered when a player drops an item.
✨ On Enchant Item
The arc:onenchantitem action type is triggered when a player enchants an item.
🎣 On Fished Up Item
The arc:onfishedup_item action type is triggered when a player fishes up an item.
⚙️ On Grind Item
The arc:ongrinditem action type is triggered when a player grinds an item.
🗡️ On Hurt Item
The arc:onhurtitem action type is triggered when a player hurts/damages an item.
🔥 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 Throw Item
The arc:onthrowitem action type is triggered when a player throws an item (e.g. snowball, egg, ender pearl).
🖱️ On Use Item
The arc:onuseitem action type is triggered when a player uses an item (right-clicks with an item).