How to cancel left click swing animation with item in hand.

Started by CBJaxxx on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to cancel left click swing animation with item in hand.

I'm making a gun mod. I was able to turn the animation used for right click off, so when I shoot my gun it shoots and does not swing like a sword. I want to make a procedure so when the player left clicks with the gun it will fire, but I need to make the left mouse click swing/attack animation turn off so I can shoot the gun with left click. I'll make a invisible quiet projectile with very little damage and almost no rage so the right click won't actually be used to shoot the gun but rather aim the gun instead. How can I turn off the left click animation?

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a keybind and bind it…
Tue, 01/02/2024 - 13:41

Create a keybind and bind it to left click.