Started by
Suddz
on
Topic category: Help with modding (Java Edition)
So i have been messing around with geckolib animations, and i really want to use left click for this but the swing animation ruins it.
Is there a way to cancel the swing? I know the haste and attack speed increase to somewhat disable the swing but i am avoiding that for obvious reasons.
Thanks!
you could try using haste 110 for 3 ticks in item hand tick in main hand, you would like to change the harvesting level of your item into a negative number so players cannot abuse the effect.
this is the closest thing that i know about "canceling swing animation"
I found out how to fix it. Change the onEntitySwing() method in the "item_name".java class to return true you can lock the code and add this or you can use a mixin.