Need help changing weapons on right click

Started by God_Of_Wood on Mon, 06/07/2021 - 15:21

Topic category: User side tutorials

Last seen on 07:39, 4. Jul 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need help changing weapons on right click
Mon, 06/07/2021 - 15:21

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 15:29, 29. Jul 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 07:39, 4. Jul 2021
Joined Aug 2020
Points:

User statistics:

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

Thank you!