Block Attributes

onPlacedBy

This attribute defines the script that is executed when a living places the block. If the living is a player, onPlacedByPlayer is executed instead.

Examples

onPlacedBy[0] = "world.createExplosion(position, 5.0, false);";