Detect left clicking ranged weapon in hand

Started by Adi_MC on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect left clicking ranged weapon in hand

I'm making a dart blower. It's going to have normal, poison and wither darts. But I can only use one ammo type per weapon. So I thought I could switch modes of the dart blower to poison and wither dart blower by swinging item in hand. It worked! But right clicking also worked, meaning I can't even shoot with it. I want to shoot with right click and change mode with left click, maybe even shift left click. Can anyone help?

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would have a keybind that…
Thu, 01/21/2021 - 07:12

I would have a keybind that would change the mode of the tart blower when pressed.

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I thought of that, but I…
Fri, 01/22/2021 - 10:46

I thought of that, but I think it might be cooler left clicking