I'm trying to check when a player recieves an instant damage or harming effect, and cancel the effect before it triggers.
I'm using the effects changed advancement in a datapack, and I can cancel the effect if the origin is a command (the advancement triggers) however if i use any potion to apply the effect, the advancement does not trigger, and i can't cancel it.
I suppose this is because splash potions must use a special calculation to apply reduced healing or damage... but i can't see, why it could'nt work with normal drinkable potions
(Yes i need this for players who turn into zombies)
I attached the relevant files from my datapack.
Thank you for your report!
We're tracking this issue in MC-121429, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki