If player takes damage

Started by aoooodi2 on Sun, 10/18/2020 - 16:11

Topic category: Help with modding (Java Edition)

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If player takes damage
Sun, 10/18/2020 - 16:11

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 18:04, 26. Nov 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 18:04, 26. Nov 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.