Disable healing for player

Started by AlexisAngel on

Topic category: Help with modding (Java Edition)

Last seen on 00:52, 17. Jan 2023
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable healing for player

Hey!
I've recently started making a new mod and I have added a status effect, as of now it doesn't do anything but what I want it to do is to disable the players healing, kindof like when you don't have enough food to heal
I haven't found a way to do this, does anyone have an idea on how I can do it?

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tested it 1 time it works…
Thu, 07/29/2021 - 02:35

I tested it 1 time it works unless you are talking about other variables. if you are talking about vanilla healing this should work.

Remember that you need to change the active potion defined in the picture to whatever potion you will be using.

Also this will be it's own procedure, DO NOT PUT THIS IN THE EFFECTS OF A POTION. This won't work in Any of the triggers for the potion. Hope this helps :)

 

Disable Player Healing

Last seen on 00:52, 17. Jan 2023
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you so much! That…
Thu, 07/29/2021 - 14:57

Thank you so much! That works just as i wanted it to!