potion that stops player from healing

Started by Warden154 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
potion that stops player from healing

My friends and I are trying to make a mod with many new aspects of the game. One of the ideas made was a potion that, when thrown at someone, would stop them from being able to heal. Is there any way I could do that?

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There's probably a global…
Thu, 12/15/2022 - 22:28

There's probably a global event you can hook into via a Procedure. Something like "on entity healed". It also has a dependency named "amount", which dictates how much hp will be healed.

You can manipulate the "amount" dependency using the dependencyName pieces in the Advanced category.

For starters, you could check if the entity is under your potion effect, and set "amount" to "amount" x0.5 or whatever you need (0 also works).

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i figured it out. for anyone…
Thu, 12/29/2022 - 23:45

i figured it out. for anyone trying to figure it out here's the procedure:

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you think you can send…
Mon, 05/29/2023 - 12:10

Do you think you can send that photo again? Im trying to do the same and I cant find the right procedure.

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
or you can say: on entity…
Mon, 05/29/2023 - 23:52

or you can say: on entity healed (or something similar), if event/target entity has effect:(your effect name here) cancel

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i don't know the exact…
Tue, 05/30/2023 - 00:38

i don't know the exact wording for the block that cancels the trigger.