KubeJS ProjectE
This mod provides the ability to configure EMC values for items and Philosopher's Stone transformations from the ProjectE mod using KubeJS. Usage examples are shown below.
In server_scripts files:
ProjectEEvents.setEMC(event => {
// sets the absolute EMC value for an item
event.setEMC("minecraft:cobblestone", 10000) // alias for setEMCAfter
// sets EMC for an item before all other operations
// sometimes this can result in the EMC value not being
// set, but also allows generating EMC values
// from this one; for example, from crafting recipes
event.setEMCBefore("minecraft:stick", 10000);
})
In startup_scripts files:
ProjectEEvents.registerWorldTransmutations(event => {
event.transform("minecraft:tnt", "minecraft:oak_planks");
})