Block Attributes

onRedstoneSignal

This attribute defines the script that is executed when the block gets added and when a neighbor block changes. It can be used to handle redstone signals.

Examples

onRedstoneSignal[0] = "if (redstoneSignal) { world.setBlockMetadata(position, 1); }";
onRedstoneSignal[1] = "if (!redstoneSignal) { world.setBlockMetadata(position, 0); }";