Enchantments Control

Enchantments Control

913k Downloads

Need help with a crash caused by an entity spawn?

Heaveness opened this issue ยท 2 comments

commented

I am currently working on making a spin-off modpack from "Rebirth of the Night." I just recently added in a mod called "better survival" by block_vader which adds in some new enchantments. It randomly crashes whenever spawning is going on.

Here is the Pastebin of the crash report:
https://pastebin.com/raw/sQqX2XW6

Need some help figuring out how to fix this problem, if possible.

commented

Now I have a new problem when I try to add in the newer enchantments to Enchcontrol...

https://pastebin.com/raw/ErDDf1y4

Not exactly sure what's causing this... when I open up the world again then it's not problem. But when I travel around and the chunks load then it crashes randomly.

commented

For any onlookers struggling with this issue, I've encountered it with multiple enchant mods and solved it (as far as I can tell); ArrayIndexOutOfBoundsException appears to occur when a mod or its config sets the maximum enchant level to zero (but not the minimum level?) and does not unregister the enchant.

From my experience, the fix is to ensure you've done the following any time you add or remove enchants from your modlist:

  • Run /ec update command, then run /ec reload, close Minecraft.
  • Modify enchantments.json in config\enchcontrol, and set "enabled" to false for any enchants which have "max_lvl": 0.