KubeJS ProjectE
Modby BobVarioa
Lets you control various aspects of ProjectE with KubeJS
Description
Lets you set the EMC values of items and the Philosopher's Stone transformations blocks with the ProjectE mod. Examples are shown below.
In server_scripts:
ProjectEEvents.setEMC(event => {
// sets the absolute emc value of an item
event.setEMC("minecraft:cobblestone", 0) // 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);
})
ItemEvents.rightClicked("minecraft:stick", event => {
let player = event.player;
// getPlayerEMC will always return a string
// because emc values can get very large
player.tell("Your emc is " + ProjectE.getPlayerEMC(player))
ProjectE.addPlayerEMC(player, 1000);
// the second argument can be a string because of the above
// ProjectE.setPlayerEMC also exists
player.tell("Your new emc is " + ProjectE.getPlayerEMC(player))
})
In startup_scripts:
ProjectEEvents.registerWorldTransmutations(event => {
event.transform("minecraft:tnt", "minecraft:oak_planks");
})
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
VulkanMod
Vulkan renderer mod for Minecraft.
SolarGeneration
Produce FE from the sun, use your head for recharging your inventory
Restricted Portals
A mod that requires the obtainment of an item before allowing the player to enter a dimension.
Sodium Leaf Culling
Smart leaf culling algorithm for Sodium on 1.21+
You Died
Adds a Dark Souls inspired death screen
Infusion Table
Infusion Table give player possibility to rip enchantment from item into book.