Need help changing weapons on right click

Started by God_Of_Wood on

Topic category: User side tutorials

Last seen on 16:55, 21. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help changing weapons on right click

I have a sword that on right-click is supposed to change between multiple different forms. The only issue is that when I right-click, the only change is that it plays the animation you get when you change items on your main hand.

I tried adding a 1-second cooldown to each form as soon as they change but that did nothing. Can anyone help?

 

Also, is there a way to stop the new swords from going into the first inventory slot instead of the one the previous sword was in?

Last seen on 11:11, 27. Nov 2022
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
to force it to go in the…
Sat, 06/12/2021 - 17:16

to force it to go in the mainhand, replace the 'add 1 (custom_sword) to inventory with a 'set (custom_sword) in mainhand'.

for the other problems i can't help

Last seen on 16:55, 21. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Mon, 06/14/2021 - 23:28

Thank you!

Last seen on 23:13, 22. Nov 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you
Fri, 12/16/2022 - 22:01

thank you