minecraft:random_ticking for you with a switch.Get GodCraftOverview
minecraft:random_ticking is a block component: it goes in the components object of a custom block. Runs an event now and then at random times, the same way crops grow. How often it happens depends on the randomTickSpeed game rule.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
on_tick | Trigger | none | The event to run on a random tick, with an optional condition and target. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:random_ticking": {
"on_tick": {}
}
}