deal damage after entity attacked not working

Started by kittysatanic on

Topic category: Help with modding (Java Edition)

Last seen on 13:50, 21. Mar 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
deal damage after entity attacked not working
Mon, 02/06/2023 - 18:33 (edited)

ok I have this messy procedure 

There is a two custom enchantments. First is for creating random bonus attack to attacked entity if the one who attacks did it with custom enchanted item. 2 is gifting bonus chance to deal bigger damage when first one is active.

Up until today it worked fine but it not working anymore. I didn't changed it a bit and there's no any 'undefined' things as well.

'Deal damage' simply not working. I tried without waiting but it doesnt worked as well. The mess with random also not the cause because I using it in most of my procedures that still working fine.

(on pic below: DMG is amount, 1st bonusdmg is local variable, 2nd - nbt, the upper line is damage through item with enchantment, lower line is punch without any item)

As you see in 'HP left' 'deal damage' didn't dealt bonus damage (btw there also another levels of enchantment which are simply copypaste in procedure) 

I also has another one alike procedure that dealing damage through item nbt with waiting (but without random damage) that works perfectly btw. 

 

Edited by kittysatanic on Mon, 02/06/2023 - 18:33
Last seen on 13:50, 21. Mar 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Idk why and what happened…
Tue, 02/07/2023 - 12:18

Idk why and what happened but it works again