Help making spell selection

Started by Alphashrimp7558 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help making spell selection

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

Joined Mar 2022
Points:

User statistics:

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

Joined May 2022
Points:

User statistics:

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

ye @gmr_dude explained it perfectly