How to store selected spells for each magic wand. (MCreator 2025.2, NeoForge 1.21.4)

Started by x0rbyt3 on

Topic category: Help with MCreator software

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to store selected spells for each magic wand. (MCreator 2025.2, NeoForge 1.21.4)
Sun, 08/24/2025 - 16:42 (edited)

Goal

I want to implement separate magic switching information for multiple different magic wands.

 

When you hold a magic wand and press the R key, the wand's spell will switch.

If there is only one magic wand, this can be achieved simply by having the NBT tag contain current_spell and max_spells (number of spells), but I don't know how to keep track of the switching status for multiple magic wands.

  • Key Bindings: Pressing the R key calls the procedure.
  • Magic List: Each magic wand has a different set of spells.

Example (Pseudocode)

fire_magic_wand:
Fire Wand = [“Fireball”, “Flame Pillar”, “Meteor”]
max_spells=3

ice_magic_wand:
Ice Wand = `[“Ice Bolt”, “Blizzard”]
max_spells=2

 

I am new to MCreator and not an English speaker, so the explanation may be unclear, but please bear with me.

Development environment

(MCreator 2025.2, NeoForge 1.21.4)

Edited by x0rbyt3 on Sun, 08/24/2025 - 16:42
Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I selected another…
Sun, 08/24/2025 - 16:48

Sorry, I selected another topic category by mistake.