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

minecraft:tick

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

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

FieldTypeDefaultDescription
interval_rangeinteger[]noneShortest and longest wait in ticks, for example [10, 20].
loopingbooleantrueWhen 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
  }
}

Blocks: Behavior pack

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