Set Block (Block Action Type)

Overwrites the block at the targeted position with the default state of another one.

Overwrites the block at the targeted position with the default state of another one.

Type ID: apoli:set_block

Fields

FieldTypeDefaultDescription
blockIdentifierThe namespace and ID of the block to place.
nbtNBToptionalThe NBT data to give the block.

Examples

"block_action": {
    "type": "apoli:set_block",
    "block": "minecraft:coal_ore"
}

This example will set a Coal Ore block at the position of the block action type.

"block_action": {
    "type": "apoli:set_block",
    "block": "minecraft:redstone_lamp"
}

This example will set a Lit Redstone Lamp at the position of the block action type.

"block_action": {
    "type": "apoli:set_block",
    "block": "minecraft:redstone_lamp[lit=true]",
    "nbt":"[lit=true]"
}

Same as before but with the NBT field