Posted September 22, 20214 yr I'm trying to stop the onItemUse method from a sword that comes from ano ther mod from firing. I've tried cancelling the LivingEntityUseItemEvent but that doesn't seem to stop anything.
September 22, 20214 yr Author Got it working by using the PlayerInteractEvent.RightClickItem event instead
September 22, 20214 yr Ah ok glad you found a solution. For the Start sub class of LivingEntityUseItemEvent, cancelling it or setting duration <= 0 should prevent it as well.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.