← Назад к ресурсам

KubeJS ProjectE

Lets you control various aspects of ProjectE with KubeJS

Modrinth library

Описание

Lets you set the EMC values of items and the Philosopher's Stone transformations blocks with the [ProjectE](https://beta.curseforge.com/minecraft/mc-mods/projecte) mod. Examples are shown below. Note: Modrinth does not host a version of ProjectE, so to use this mod you must download it from another source In `server_scripts`: ```js ProjectEEvents.setEMC(event => { // sets the absolute emc value of an item event.setEMC("minecraft:cobblestone", 10000) // alias. setEMCAfter // sets the emc of an item before anything else happens // this can sometimes result in this emc value not being // set, but also it allows for emc values to be generated // from this one; i.e crafting recipes event.setEMCBefore("minecraft:stick", 10000); }) ``` In `startup_scripts`: ```js ProjectEEvents.registerWorldTransmutations(event => { event.transform("minecraft:tnt", "minecraft:oak_planks"); }) ```