Block Attributes

onAdded

This attribute defines the script that is executed when the block gets added (no matter how) to the world.

Examples

onAdded[0] = "position.y++; world.setBlockId(position, 1);";