Mojira Archive
MC-273594

advancements can't detect instant potion effects

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.

Duplicate

LeoTheRedShifter

2024-06-19, 12:21 PM

2024-06-19, 12:36 PM

2024-06-19, 12:36 PM

0

0

Unconfirmed

(Unassigned)

1.21

-