Posted June 16, 20205 yr I have been doing datapacks and command blocking for a while now, but I have recently moved to modding. I am trying to add attribute modifiers to my armor items within my 1.15.2 mod, but I cannot figure out how. All online resources I have found are for either 1.7, 1.8 or 1.11. Specifically, I am adding different armor sets that provide different modifiers when worn (such as movement speed, max health, damage, etc, all of which are available through generic modifiers) If anyone could help me out, it would be greatly appreciated
June 16, 20205 yr override getAttributeModifiers in ur item class, you can also check how sword does similar thing
June 16, 20205 yr On the side note: I suggest overriding its ItemStack sensitive version as you will have more control.
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.