Drop Item
The arc:drop_item reward type drops an item at the location of the action (e.g., where a block was broken).
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
item | ItemStack | ✅Required | -No default value | The item to drop. |
Example
The following example drops a Golden Apple when breaking leaves.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:blocks",
"blocks": ["#minecraft:leaves"]
}
],
"rewards": [
{
"type": "arc:drop_item",
"item": {
"id": "minecraft:golden_apple",
"count": 1
}
}
]
}
Compatible Action Types
🛡️ On Block With Shield
The arc:onblockwith_shield action type is triggered when a player successfully blocks damage using a shield.
⛏️ 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 Crouch
The arc:on_crouch action type is triggered when a player crouches (sneaks).
💀 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 Drop Item
The arc:ondropitem action type is triggered when a player drops an item.
🍽️ On Eat
The arc:on_eat action type is triggered when a player eats an item.
💉 On Effect Added
The arc:onaddeffect action type is triggered when a player receives a potion effect.
🪂 On Elytra Fly
The arc:onelytrafly action type is triggered when a player is flying with an elytra.
🪣 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 Attack Speed
The arc:getattackspeed action type is used to retrieve the attack speed of a player.
⚡ 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 Grind Item
The arc:ongrinditem action type is triggered when a player grinds an item.
🌾 On Harvest Crop
The arc:onharvestcrop action type is triggered when a player harvests a crop.
🐎 On Horse Ride
The arc:onhorseride action type is triggered when a player is riding a horse.
🖱️ On Interact Block
The arc:oninteractblock action type is triggered when a player interacts with a block, such as right-clicking it.
💔 On Item Break
The arc:onitembreak action type is triggered when a tool or armor piece loses all durability and breaks.
🦘 On Jump
The arc:on_jump action type is triggered when a player jumps.
💀 On Kill Entity
The arc:onkillentity action type is triggered when a player kills an entity.
⬇️ On Land
The arc:on_land action type is triggered when a player lands on the ground after falling or jumping.
🤲 On Pickup Item
The arc:onpickupitem action type is triggered when a player picks up an item from the ground.
🧱 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 Shoot Projectile
The arc:onshootprojectile action type is triggered when a player shoots a projectile, such as an arrow or a snowball.
🔥 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 Sprint
The arc:on_sprint action type is triggered when a player is sprinting.
🦶 On Start Crouching
The arc:oncrouchstart action type is triggered when a player starts crouching (sneaking).
🪂 On Start Elytra Flying
The arc:onelytrafly_start action type is triggered when a player starts flying with an elytra.
🐎 On Start Horse Riding
The arc:onhorseride_start action type is triggered when a player starts riding a horse.
🏃♂️ On Start Sprinting
The arc:onsprintstart action type is triggered when a player starts sprinting.
🏊♂️ On Start Swimming
The arc:onswimstart action type is triggered when a player starts swimming.
🚶♂️ On Start Walking
The arc:onwalkstart action type is triggered when a player starts walking.
🦶 On Stop Crouching
The arc:oncrouchstop action type is triggered when a player stops crouching (sneaking).
🪂 On Stop Elytra Flying
The arc:onelytrafly_stop action type is triggered when a player stops flying with an elytra.
🐎 On Stop Horse Riding
The arc:onhorseride_stop action type is triggered when a player stops riding a horse.
🏃♂️ On Stop Sprinting
The arc:onsprintstop action type is triggered when a player stops sprinting.
🏊♂️ On Stop Swimming
The arc:onswimstop action type is triggered when a player stops swimming.
🚶♂️ On Stop Walking
The arc:onwalkstop action type is triggered when a player stops walking.
🪵 On Strip Log
The arc:onstriplog action type is triggered when a player strips a log or wood block using an axe.
🏊♂️ On Swim
The arc:on_swim action type is triggered when a player is swimming.
🐾 On Tame Animal
The arc:ontameanimal action type is triggered when a player tames an animal.
🌿 On Till Soil
The arc:ontillsoil action type is triggered when a player uses a hoe on a dirt-like block to create farmland.
⚒️ On Use Anvil
The arc:onuseanvil action type is triggered when a player uses an anvil to repair or rename an item.
🚶♂️ On Walk
The arc:on_walk action type is triggered when a player is walking.