Disable healing for player

Started by AlexisAngel on Wed, 07/28/2021 - 11:35

Topic category: Help with modding (Java Edition)

Last seen on 13:36, 30. Jul 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Disable healing for player
Wed, 07/28/2021 - 11:35

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 21:51, 20. Aug 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:36, 30. Jul 2021
Joined Dec 2020
Points:

User statistics:

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