Started by
Warden154
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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).
i figured it out. for anyone trying to figure it out here's the procedure:
Do you think you can send that photo again? Im trying to do the same and I cant find the right procedure.
or you can say: on entity healed (or something similar), if event/target entity has effect:(your effect name here) cancel
i don't know the exact wording for the block that cancels the trigger.