Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Pickup Item

The arc:on_pickup_item action type is triggered when a player picks up an item from the ground.

Action Data

When this action is triggered, the following action data is made available:

Action Data TypeDescription
arc:entityRepresents an entity in the game, such as a player, mob, or item.
arc:item_stackRepresents a stack of items, including item type and quantity.
arc:itemRefers to a single item type without stack information.
arc:block_positionSpecifies the coordinates (x, y, z) of a block in the world.
arc:worldRefers to the world/dimension where the action occurs.

Example

The following example doubles the amount of diamonds picked up (by giving an extra one).

data/my_datapack/arc/double_pickup.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_pickup_item",
"conditions": [
{
"type": "arc:item",
"item": "minecraft:diamond"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:diamond" }
}
]
}

Compatible Condition Types

Compatible Reward Types