Need help changing weapons on right click

Started by God_Of_Wood on

Topic category: User side tutorials

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?

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

Joined Feb 2021
Points:

User statistics:

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

thank you