Skip to main content

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

Till Soil

The arc:on_till_soil action type is triggered when a player uses a hoe on a dirt-like block to create farmland.

Action Data

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

Action Data TypeDescription
arc:block_stateRepresents the state of a block, including its type and properties.
arc:block_positionSpecifies the coordinates (x, y, z) of a block in the world.
arc:worldRefers to the world/dimension where the action occurs.
arc:item_stackRepresents a stack of items, including item type and quantity.

Example

The following example gives the player wheat seeds when they till grass blocks.

data/my_datapack/arc/seeds_from_tilling.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_till_soil",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:grass_block"
}
],
"rewards": [
{
"type": "arc:item",
"item": {
"id": "minecraft:wheat_seeds"
}
}
]
}

Compatible Condition Types

Compatible Reward Types