Skip to main content

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

Set Block

The arc:set_block reward type places a specific block at a target location.

Parameters

ParameterTypeRequiredDefaultDescription
blockArcBlockStateRequired-No default valueThe block state to place.
targetArcPositionTargetOptionalBLOCKThe target position (PLAYER, BLOCK, ENTITY).
place_as_playerbooleanOptionaltrueWhether to simulate player placement.

Example

The following example turns the block under the player into ice when they walk.

data/my_datapack/arc/frost_walker.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_walk",
"rewards": [
{
"type": "arc:set_block",
"block": "minecraft:ice",
"target": "PLAYER",
"place_as_player": false
}
]
}

Compatible Action Types