Started by
FroakieGamer12260
on
Topic category: Help with Minecraft modding (Java Edition)
I want to do a especial "power" to an weapon. I want to do something like, when the weapon first hit hits an mob, does nothing; when the weapon second hit hits an mob, does nothing; when the weapon third hit hits an mob, does extra damage, and start the cycle again.
if someone help me how to do that, I'll me grateful ( ̄︶ ̄)↗ .
add a variable for the number of times the weapon is swung, when you need to reset the counter, set it to 0, and when you swing, add 1
when the counter = 2 do damage
I honestly don't know how though
i tried to do this, but it didnt work