actions:action_types:place_block_from_item
Table of Contents
minecraft:place_block_from_item
The minecraft:place_block_from_item
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.txt · Last modified: 2024/05/03 15:35 by errorcraft