1. Wiki
  2. /Blocks
  3. /minecraft:random_ticking

minecraft:random_ticking

Don't want to write this by hand? GodCraft sets minecraft:random_ticking for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
on_tickTriggernoneThe 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": {}
  }
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more