How to cycle through abilities on a weapon

Started by HollowVoidGojo on Mon, 07/04/2022 - 11:43

Topic category: Help with modding (Java Edition)

Last seen on 03:23, 15. Jul 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to cycle through abilities on a weapon
Mon, 07/04/2022 - 11:43

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 04:21, 14. Aug 2022
Joined Jan 2022
Points:

User statistics:

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