author | ms.author | title | description | ms.service |
---|---|---|---|---|
mammerla |
mikeam |
Block Documentation - minecraft:on_step_on |
A reference document detailing the 'on_step_on' block trigger |
minecraft-bedrock-edition |
minecraft:on_step_on
is an Event Trigger for when an entity steps on the block.
minecraft:on_step_on
can use the following parameters
Name | Default Value | Type | Description |
---|---|---|---|
condition | not set | String | The condition of event to be executed on the block. |
event | not set | String | The event executed on the block. |
target | self | String | The target of event executed on the block. |
"minecraft:on_step_on":{
"condition": "query.block_state(custom:is_playing_sound) == false", //custom condition
"event" : "sound_the_alarm", //custom event
"target": "self"
}