Unlimited enchantment level increase with imbuement spells and Astral Sorcery resplendent prism
Hubry opened this issue ยท 0 comments
Minecraft version: 1.12.2
Wizardry version: 4.1.2
Environment: Singleplayer
Other mods involved: Astral Sorcery 1.10.3
Issue details:
Astral Sorcery adds a bauble called the Resplendent Prism, which increases some enchantment levels of worn or held items with random properties of the prism determined on craft time. This involves using ASM to patch EnchantmentHelper's enchantment getter methods to return the item's stored levels + the prism's effects.
Casting Imbue Weapon or another imbuement enchantment spell while wearing a prism affecting the affected weapon, and letting the spell expire when holding it will result in the prism's enchantment increase getting permanently applied to the weapon. This is infinitely repeatable, allowing for enchantment levels way above the cap. Sharpness 100 Looting 50, anyone?
Short reproduction steps: cheat in a Resplendent Prism until you get one that adds a weapon enchantment, equip it, cast Imbue Weapon, hold a sword until imbuement expires, cast Imbue Weapon, hold the sword... repeat.
I had a small discussion about this with Astral Sorcery's author today, his words: