Started by
Trehmor
on
Topic category: Help with Minecraft modding (Java Edition)
Im making a potion that when someone attacks you during night, there is a chance that it heals you by 1 but i dont know how to do this. help me please
Topic category: Help with Minecraft modding (Java Edition)
Im making a potion that when someone attacks you during night, there is a chance that it heals you by 1 but i dont know how to do this. help me please
Just make a procedure
Global trigger : Entity attacked
Procedure : If (is day in world = false) AND (has event/target entity potion effect CUSTOM:YOUR_POTION) AND (Random[0,1) < 0,5) Do : Heal event/target entity by 1
You just need to find the correct procedure blocks.
i cant find the heal procedure block
Just do that :
My plugin ExtraProcedures contains a "Heal entity" procedure block that is easier to use that what I showed you. You can download last update here : https://github.com/Max094Reikeb/ExtraProceduresPlugin/releases
Thank you so much, your plugin is great, but what happens if i update mcreator when the new release is out ?
In general, code doesn't change. For the 2020.4 update, only one block's code changed, and as you see, I made a patch a few days after the release so don't worry ;)
Thank you so much, you really helped me :D