Block Attributes

id

This attribute defines the unique id of the block.

Examples

// Uses a fixed id
id = 3456;

// Uses the id from the config file
// In the mod.js you have to call config.addBlockIdProperty("myBlock", 2345); before adding the block
// 2345 is the default id
id = config.getItemId("myBlock");