How Do I Make An Enchantment that when you get hurt it adds an effect?

Started by Hollowplayz on

Topic category: Help with modding (Java Edition)

Last seen on 01:34, 13. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How Do I Make An Enchantment that when you get hurt it adds an effect?

I am making an enchantment that when you get hit you get the glowing effect and send out particles. Any Help how to do this?

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use the "on entity hurt"…
Sun, 09/13/2020 - 00:44

use the "on entity hurt" procedure trigger and check for if your armor in slot x has enchantment.

slot 3,2,1,0 is helmet, chest, leggings, and boots respectively.

Last seen on 01:34, 13. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok Thanks  
Sun, 09/13/2020 - 12:04

Ok Thanks