Started by
Alphashrimp7558
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
ye @gmr_dude explained it perfectly