modifiedmods-1.0.0-neoforge-1.21.1.jar
Curse Maven Snippet
What's new
Neoforge 1.21.x:
- No direct mod dependencies (No crash risk) In version 1.20.1, classes were imported directly from the Mekanism and Tinker's Construct mods. If the mod wasn't installed, the game would crash.
- How detection works in this new NeoForge 1.21.1 version: Instead of checking item instanceof, the code checks the native restrictions that mods enable in Minecraft:
- !EnchantmentHelper.canStoreEnchantments(left) (if the mod doesn't allow storing enchantments)
- !left.isBookEnchantable(right) (if the mod forbids book enchantment on the anvil)
- !left.isEnchantable() (if the mod disabled the enchantable property)
- !left.supportsEnchantment(enchantment) (if the mod specifically blocks that enchantment)
- If the item has any of these restrictions, our mod handler takes over and allows enchanting!
- If it is a standard vanilla item that already accepts the book normally (e.g., Diamond Sword + Sharpness), the code lets the vanilla anvil process it without interference.
- Now, not only Mekanism, but the mod supports enchanting any other items or armor from other mods that are blocked by the anvil!
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

