Skip to main content

Strip Log

The arc:on_strip_log action type is triggered when a player strips a log or wood block using an axe.

Action Data

When this action is triggered, the following action data is made available to be used by conditions and rewards:

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.

Example

The following example will give the player an oak log every time they strip a log or wood block.

data/my_datapack/arc/loot_on_strip_log.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_strip_log",
"conditions": [],
"rewards": [
{
"type": "arc:item",
"item": {
"id": "minecraft:oak_log"
}
}
]
}

Compatible Condition Types

The following condition types can be used with this action type:

Compatible Reward Types

The following reward types can be used with this action type: