Help making spell selection

Started by Alphashrimp7558 on Fri, 06/10/2022 - 16:21

Topic category: Help with modding (Java Edition)

Last seen on 21:00, 13. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help making spell selection
Fri, 06/10/2022 - 16:21

i want to make a spell selection but have no idea how,

for example pressing E will cycle the spell to the right and pressing q will do the opposite whatever spell selected is the one that gets used by 1 specific wand#

If anybody wants to msg me on discord its Alphashrimp7558#0695

Last seen on 22:44, 11. Aug 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use a keybinding that has a…
Fri, 06/10/2022 - 19:59

Use a keybinding that has a procedure that edits the wand's NBT tag.

ex.

When E pressed add 1 to the tag. If it is equal to the number of total spells set it back to 0

When Q pressed subtract 1. If it is -1 set it to 1 less than the number of total spells.

When you use the wand, check which number the NBT is and use the spell corresponding to that number.

If you already have the spells' procedures written, just use "Call Procedure" or copy them in.

Hope that helps, if it doesn't just reply.

Last seen on 09:34, 11. Aug 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ye @gmr_dude explained it…
Sat, 07/16/2022 - 04:22

ye @gmr_dude explained it perfectly