Started by
TheGreenFax
on
Topic category: Help with Minecraft modding (Java Edition)
Hi. So, I made a custom fluid that damages the player and gives an effect when they step in it. I'm now trying to create a potion that prevents that from happening. I'm using a procedure, but I'm not sure how to do this and what blocks I should try and use. Any idea on how to do this?
If the damage to the entity (player in this case) is in the "OnEntityCollides" trigger of the fluid you can do the following:
Before hurting the entity that is colliding with the fluid, you can check if the potion (effect) that you created is active in the entity and if it is, you can skip the part where you damage it.
Hope it helps!
It worked! Thank you so much. :)