User Tools

Site Tools


actions:action_types:modify_block_state

minecraft:modify_block_state

The minecraft:modify_block_state action modifies the block state at the specified position. The action is unsuccessful if the block state was not modified.

Fields

Name Description Type Default Value
position The position to target. An action context parameter
properties The properties to give the block state. A map of block state properties
push_entities_upwards Whether to push entities upwards before modifying the block state, so they always end up on top of the new block state. An optional boolean false

Example

{
  "type": "minecraft:modify_block_state",
  "position": "target",
  "properties": {
    "eye": "true"
  },
  "push_entities_upwards": true
}
actions/action_types/modify_block_state.txt · Last modified: 2024/05/01 15:20 by errorcraft