How to make player swing item?

Started by Nintwendo on Fri, 02/05/2021 - 17:57

Topic category: Help with modding (Java Edition)

Last seen on 18:33, 6. Apr 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make player swing item?
Fri, 02/05/2021 - 17:57

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?

Last seen on 00:10, 11. Mar 2021
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.