Started by
Oreli
on
Topic category: Help with Minecraft modding (Java Edition)
i have a potion effect in my mod that is intended to multiply all incoming damage by 1.5x, but the procedure that should be doing this ends up doing nothing but cancelling all incoming damage
i've tried reordering it so the damage is dealt after the event is cancelled, i've tried waiting for a tick, i know the procedure works because adding on chat blocks works. my best guess is that somehow the brief invulnerability gained after being hit is messing with it somehow, despite this event taking place before that should be triggered. any help would be nice
Edited by Oreli on Thu, 09/16/2021 - 22:16
can anyone help with this?
Why don't you just deal half of the damage to the entity instead of cancelling the procedure and dealing 1.5 to it?
just delete the cancelling global trigger statement and deal amount/2 to the entity
sorry for the late response
managed to get this to work by simply not cancelling it and dealing 1.5x the damage
cancelling it and dealing damage never dealt the damage, but not cancelling it and dealing half the damage only dealt the full amount of damage. by dealing 1.5x the damage without cancelling it, it works
Great!!
are you sure this is working? cause i tested it and the damage is never dealt cause of invulnerability frames.