Topic category: Help with Minecraft modding (Java Edition)
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.
Idk why and what happened but it works again