How to cycle through abilities on a weapon

Started by HollowVoidGojo on

Topic category: Help with modding (Java Edition)

Last seen on 02:09, 26. Sep 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to cycle through abilities on a weapon

I am making a MCreator mod where there are a bunch of abilities and weapons, and I want to know how to cycle through abilities on the weapon by pressing a button. If you could send a ss guide or a word guide on how to do that, It would be very much appreciated.

 

thank you 

Hollow 

Last seen on 15:16, 8. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You would make 1 sword/wand…
Fri, 07/22/2022 - 00:22

You would make 1 sword/wand/whatever for each ability, then make a button that would get what sword is in your hand, then it would switch it to the next sword in the sequence using the set item in main hand command.