User Tools

Site Tools


actions:action_types:place_block

This is an old revision of the document!


minecraft:place_block

The minecraft:place_block action places a block at the specified position as if placed by a player. This means it takes the side into account when determining the block and block state to place.

Fields

Name Description Type Default Value
block The block to place. A block picker
position The position to target. An action context parameter
decrement_count Whether to decrement the item stack from the action context. An optional boolean true

Example

{
  "type": "minecraft:place_block",
  "block": "minecraft:fire",
  "position": "target",
  "decrement_count": false
}
actions/action_types/place_block.1714656461.txt.gz · Last modified: 2024/05/02 13:27 by errorcraft