Posted July 29, 201510 yr Hey guys, I made new tools and I want to make them unenchantable. By overriding getItemEnchantability() with return 0; I can make them unenchantable in the enchanting table but enchanting with books works anyway
July 29, 201510 yr Someone may have a more graceful way to do it, but there is a tick event for items in your inventory. Just check for enchantment and remove if detected. Blocking it would be less of a load, perhaps you should look at enchantment books and see how they work to find a way to block it. Long time Bukkit & Forge Programmer Happy to try and help
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.