Jump to content

Modifying the Damage and Defense Points of Vanilla Tools and Armor


Le Capitaine

Recommended Posts

Hello,

I recently started working on my first mod to improve the usefulness of gold items. While I've managed to change the durability and mining level using .setMaxDamage() and .setHarvestLevel(), it has been much more difficult finding a straightforward method to modify the damage and armor values. A lot of Google searching has led to vague answers about using getAttributeModifiers, but I have no idea how I would implement that or how to make it affect vanilla items. I have a very basic fluency in Java so while I can understand code it would be helpful if you can post examples as well.

*I am currently modding for 1.12.2 before moving on to more recent versions like 1.18.2 or 1.19.4.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.