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"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈