Skip to main content

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

Fill Bucket

The arc:on_fill_bucket action type is triggered when a player picks up a liquid or fish with a bucket.

Action Data

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

Action Data TypeDescription
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:block_stateRepresents the state of a block, including its type and properties.
arc:worldRefers to the world/dimension where the action occurs.

Example

The following example gives the player a raw cod when they fill a water bucket.

data/my_datapack/arc/bonus_fish.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_fill_bucket",
"conditions": [
{
"type": "arc:item",
"item": "minecraft:water_bucket"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:cod" }
}
]
}

Compatible Condition Types

Compatible Reward Types