Posted November 15, 20222 yr I'm implementing an armor item and I want to make it compatible with vanilla armor. But I find `getDefaultAttributeModifiers` is deprecated, is there an replacement for it? Also, I don't want my item to show the extra tooltip like `When on Head, Armor +1`, but it will automatically show when `getDefaultAttributeModifiers` is given. Is there a way to bypass it?
November 15, 20222 yr Override IForgeItem.getDefaultAttributes(ItemStack) IForgeItem.getAttributesModifiers(EquipmentSlot, ItemStack) in your Item. Its default implementation is to call that deprecated method. The deprecation like other methods on Block and Item is really meant for people trying to call the method, not people overriding/implementing it. Edited November 15, 20222 yr by warjort Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
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.