If player takes damage

Started by aoooodi2 on

Topic category: Help with modding (Java Edition)

Last seen on 01:34, 26. Mar 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If player takes damage

I am making a mod for a armor that has a chance that when you take damage you completly negate that damage,i made the procedure for the % but i dont know how to do:

If player/entity takes damage do...

 

is there a way to do that?

I would like to know :)

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do something like this
Mon, 10/19/2020 - 03:16

do something like this

https://cdn.discordapp.com/attachments/599250311852458006/767586743465148436/unknown.png

Last seen on 01:34, 26. Mar 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks,but i would like to…
Mon, 10/19/2020 - 15:50

thanks,but i would like to know what that cancel event that trigered global triger does,can i replace that with give player effect?

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you see the top green…
Mon, 10/19/2020 - 21:28

if you see the top green block, the drop down box says "Entity attacked". canceling the event cancels the attack.

you can put anything you want there. its just an example.