Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 935 Bytes

File metadata and controls

31 lines (24 loc) · 935 Bytes
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

Block Documentation - minecraft:on_step_on

minecraft:on_step_on is an Event Trigger for when an entity steps on the block.

Parameters

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.

Example

"minecraft:on_step_on":{
    "condition": "query.block_state(custom:is_playing_sound) == false", //custom condition
    "event" : "sound_the_alarm", //custom event
    "target": "self"
}