I have a custom item that needs to be damage every tick when right mouse button is down. I used onItemRightClick() and onUsingTick and damage the item. But I found out although the player has released the mouse button, onUsingTick() was still called every tick. But when I delete the code that damages the item it was all good. Any ideas to fix it?
I have a custom item that needs to be damage every tick when right mouse button is down. I used onItemRightClick() and onUsingTick and damage the item. But I found out although the player has released the mouse button, onUsingTick() was still called every tick. But when I delete the code that damages the item it was all good. Any ideas to fix it?
Fixed by override the canContinueUsing method.