Player 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 Brew Potion
The arc:onbrewpotion action type is triggered when a player brews a potion.
๐ On Death
The arc:on_death action type is triggered when the player dies.
๐ฅค On Drink
The arc:on_drink action type is triggered when a player drinks an item (e.g., potion, milk bucket, etc.).
๐ฝ๏ธ On Eat
The arc:on_eat action type is triggered when a player eats an item.
๐ On Effect Added
The arc:oneffectadded action type is triggered when a player receives a new effect.
โ๏ธ On Get Attack Speed
The arc:getattackspeed action type is used to retrieve the attack speed of a player.
๐ค On Get Hurt
The arc:ongethurt action type is triggered when a player takes damage.
๐ฉธ On Hurt Player
The arc:onhurtplayer action type is triggered when a player hurts another player.
๐ฃ On Rod Reel In
The arc:onrodreel_in action type is triggered when a player reels in a fishing rod.
๐น On Shoot Projectile
The arc:onshootprojectile action type is triggered when a player shoots a projectile, such as an arrow or a snowball.
๐ชต On Strip Log
The arc:onstriplog action type is triggered when a player strips a log or wood block using an axe.
โ๏ธ On Use Anvil
The arc:onuseanvil action type is triggered when a player uses an anvil to repair or rename an item.