actions:action_types:place_block_from_item
This is an old revision of the document!
Table of Contents
minecraft:place_block
The minecraft:place_block
action places a block from the minecraft:block item component 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.
This action is successful if the block state was successfully placed.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
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_from_item", "position": "target" }
actions/action_types/place_block_from_item.1714743311.txt.gz · Last modified: 2024/05/03 13:35 by errorcraft