Block Attributes

onUpdate

This attribute defines the script that is executed every tickCount ticks when the block is in the world.

Examples

onUpdate[0] = "position.y += 15; world.createExplosion(position, 5.0, false);";