How do I make it so that armor takes damage when a potion is active?

Started by markjaveyt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make it so that armor takes damage when a potion is active?

I'm working on a mod right now, and I've had problems with creating a potion that damages the player's armor when the effect is applied.

I don't know if I'm missing some logical stuff but I tried doing if and get item from armor slot which ended up in failure.

Are there any ways to achieve this?
Thanks!