Change Vanilla Weapons / Armour Values

Started by CrypTic Deadman on

Topic category: Help with modding (Java Edition)

Last seen on 04:31, 5. Sep 2021
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change Vanilla Weapons / Armour Values

I'm currently working on an armour mod, and for this to properly work I was wondering if there is any possible way you can change the default minecraft armour values by overriding them? Either with code or not because I can't find anything. Thank you!

Last seen on 17:20, 17. Mar 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I always would do, is…
Sat, 07/31/2021 - 08:24

What I always would do, is check if the item is picked up for the first time (ex. some specific diamond sword) using an NBT tag.

The procedure looks smth like this: 

In your case, put this kind of procedure in "Item in hand" event.

But if you want to change vanilla attributes (damage, attack speed etc.), you might need to use commands from the game.

This should help: https://minecraft.fandom.com/wiki/Attribute