Action On Block Placed
Executes an action upon placing a block.
Type ID: apugli:action_on_block_placed
Fields
Field | Type | Default | Description |
---|---|---|---|
block_action |
Block Action Type | optional | If specified, this action type will be executed upon placing a block using a certain block item. |
item_condition |
Item Condition Type | The block item used for placing a block. |
Examples
{
"type": "apugli:action_on_block_placed",
"block_action": {
"type": "apoli:execute_command",
"command": "summon armor_stand ~ ~ ~ {Marker: 1b, Tags: [\"test\"]}"
},
"item_condition": {
"type": "apoli:ingredient",
"ingredient": {
"item": "minecraft:cobblestone"
}
}
}
This example will summon a marker Armor Stand at the position of the placed Cobblestone block.