Overview
minecraft:tick is a block component: it goes in the components object of a custom block. Makes the block run its tick event after a delay, once or over and over. The delay is chosen at random from a range of ticks (20 ticks is one second).
Fields
| Field | Type | Default | Description |
|---|---|---|---|
interval_range | integer[] | none | Shortest and longest wait in ticks, for example [10, 20]. |
looping | boolean | true | When true, the block keeps ticking; when false, it ticks only once. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:tick": {
"interval_range": [],
"looping": true
}
}