Jump to content

[SOLVED] I'm in my item class right now. Is there a way to use getAttributeModifiers() to change the attack damage of the item?


Redjay

Recommended Posts

Posted (edited)

I've been trying to create a weapon for my little brother to use and what's a weapon without a decent attack damage?

 

EDIT: I extended the SwordItem class instead of the Item class.

Edited by Redjay
Link to comment
Share on other sites

If you are creating a custom weapon, I'm pretty sure you can set that in the item's constructor somewhere.

If you are creating a custom vanilla weapon that can be made with commands, that can obviously be done in vanilla.

I'm not good at modding, but at least I can read a crash report (well enough). That's something, right?

Link to comment
Share on other sites

  • Redjay changed the title to [SOLVED] I'm in my item class right now. Is there a way to use getAttributeModifiers() to change the attack damage of the item?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

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