actions:action_types:set_block_state
Table of Contents
minecraft:set_block_state
The minecraft:set_block_state
action sets a block state at the specified position.
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 | |
state | The block state to place. | A block state |
Example
{ "type": "minecraft:set_block_state", "position": "target", "state": { "Name": "minecraft:farmland", "Properties": { "moisture": "0" } } }
actions/action_types/set_block_state.txt · Last modified: 2024/05/02 23:32 by errorcraft