How to make player swing item?

Started by Nintwendo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make player swing item?

I'm trying to make a weapon dual wieldable, that is, when the player swings it, if they are holding the same weapon in their other hand, it swings the off hand as well. I tried this:

 https://drive.google.com/file/d/18zklXMx6V_lJIrjA_YlSR3_W4cuVji3X/view?usp=sharing

But for some reason it isn't working. How can I make this work?

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having the exact same…
Wed, 03/10/2021 - 22:54

Having the exact same problem - doing it any other way causes crashes, too.