(FIXED) damage procedure isn't working

Started by Oreli on

Topic category: Help with modding (Java Edition)

Last seen on 00:52, 21. Apr 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(FIXED) damage procedure isn't working
Thu, 09/16/2021 - 22:16 (edited)

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
Last seen on 00:52, 21. Apr 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can anyone help with this?
Thu, 09/09/2021 - 02:28

can anyone help with this?

Last seen on 07:36, 20. Apr 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why don't you just deal half…
Thu, 09/09/2021 - 15:10

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

Last seen on 00:52, 21. Apr 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for the late response …
Thu, 09/16/2021 - 22:16

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

Last seen on 07:36, 20. Apr 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Great!!
Fri, 09/17/2021 - 10:55

Great!!

Last seen on 00:59, 25. Apr 2024
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
are you sure this is working…
Sun, 08/13/2023 - 14:31

are you sure this is working? cause i tested it and the damage is never dealt cause of invulnerability frames.