trying to damage vanilla item if possible or make a fake damage icon?

Started by SkylieTuff on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
trying to damage vanilla item if possible or make a fake damage icon?

Image

Image

Image

I figured tags would override vanilla minecraft and let me add a damage modifer extension to the item but I'm guessing not. 

Would i still be able to use these tags to run an overlay with icon bar to indicate how much damage is left, then remove it? 

everything else works fine. 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You cannot add damage to…
Sat, 09/30/2023 - 01:50

You cannot add damage to stackable items, and you cannot, (to the best of my knowledge), change whether vanilla items can be damaged. Also, setting the damage of the item to 1 in your procedure will always set the item to having exactly one damage, and will never decrease the damage past this. You will likely need to create a custom replica of the item you want to damage, and swap it out with the vanilla item; though again, I'm not sure how you would do this, seeing as you cannot have an item be both stackable and damageable.