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

Started by Hollowplayz on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

Joined Jan 2020
Points:

User statistics:

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

Ok Thanks