Item Attributes
id
This attribute defines the unique id of the item.
Examples
// Uses a fixed id
id = 6789;
// Uses the id from the config file
// In the mod.js you have to call config.addItemIdProperty("myItem", 5678); before adding the item
// 5678 is the default id
id = config.getItemId("myItem");
id = 6789;
// Uses the id from the config file
// In the mod.js you have to call config.addItemIdProperty("myItem", 5678); before adding the item
// 5678 is the default id
id = config.getItemId("myItem");