Problems when trying to detect the "instant damage" potion effect

Started by Alex_332 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Problems when trying to detect the "instant damage" potion effect

Im making an armor piece that gives you health when you get hit By an instant damage potion

 

But the armor doesnt give me the health back when i trow a potion on miself neither when i drink It

 

I did use the effect on miself using commands (this time giving me like a minute of instant damage) and that time It did work, so i came to the conclusion that the problem is the potion itself 

 

Is there any way to make an armor that detects the instant damage potion and then gives you instant health?