Random Ticking¶
文档版本:1.21.0.24
[Experimental] Triggers the specified event randomly based on the random tick speed gamerule. The random tick speed determines how often blocks are updated.
架构¶
random_ticking:
{
"on_tick" : opt
string "condition" : opt
string "event" : opt
string "target" : opt
}
on_tick
- the event that will be triggered on random ticks.
condition
:string- A condition using Molang queries that results to true/false. If true on the random tick, the event will be triggered. If false on the random tick, the event will not be triggered.
event
:string- The event that will be triggered.
target
:string- The target of the event executed by the block