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

Started by Hollowplayz on Sat, 09/12/2020 - 20:09

Topic category: Help with modding (Java Edition)

Last seen on 14:32, 13. Oct 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How Do I Make An Enchantment that when you get hurt it adds an effect?
Sat, 09/12/2020 - 20:09

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 04:35, 28. Oct 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:32, 13. Oct 2020
Joined Jan 2020
User points:

User statistics:

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

Ok Thanks