EnchantJS
Modby yiran1457
Allow enchantment modifications using KubeJS
Type
Mod
CurseForge Downloads
438,626
CurseForge ID
1261241
Last Updated
Oct 9, 2026
Description
Due to the extensive use of redirects, compatibility may be poor. Use it cautiously
Allows you to modify the maxlevel of the enchantment.
Allows you to modify the minlevel of the enchantment.
Allows you to modify whether the enchantment can be applied via an enchantment table.
Allows you to modify the items that can be enchanted with this enchantment.
Allows you to modify the enchantment category
Allows you to modify the enchantmentvalue of the item.
Allows you to modify whether the item is enchantable.
A Example Script (In startup_scripts)
EnchantJSEvent.modification(event=>{ event.modify('minecraft:power',(enchant)=>{ enchant.setRealMaxLevel(2) }) event.modify("minecraft:infinity",(enchant)=>{ enchant.setRealMaxLevel(2) enchant.setRealMinLevel(1) enchant.setCanApplyAtEnchantingTableFn(stack=>false) //enchant.setCanEnchantFn(i=>true) //enchant.setCategory(i=>true) enchant.setRarity("very_rare") }) event.modify("minecraft:flame",enchant=>{ enchant.setCategory(i=>true) }) event.modify("minecraft:unbreaking",enchant=>{ enchant.setCategory(i=>true) }) }) ItemEvents.modification(event=>{ event.modify("stick",item=>{ item.setRealIsEnchantable(stack=>true) item.setRealGetEnchantmentValueFn(stack=>{ return 100 }) }) })Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Longer Following Time
Animals will follow you even after switching the item in your hand, for a configurable amount of time (in case you need...
Cobblemon Journey Mounts
Turn your Cobblemon world into a true adventure route. Cobblemon Journey Mounts adds more fully rideable Pokémon to expl...
Nature Expansion
🌷 Improves the Minecraft vegetation adding plants and foods
Iris & Oculus Flywheel Compat
Enable Flywheel's optimizations when using shaderpacks.
Dungeons and Taverns Ancient City Overhaul
Standalone Splinter version of Dungeons and Taverns Ancient City Overhaul
Don't Clear Chat History
Don't Clear the Chat History on Disconnect!