Magic Wand banner
Magic Wand icon

Magic Wand

Create code for a Minecraft mod (Java, Forge or Fabric) that adds a magical staff item. The staff has the following properties: When right-clicked, it...

10
fabricServer1.20.1mod

Magic Wand Mod Notes

  • Adds a Magic Staff item (magicwand:magic_staff) that appears in the Combat tab and via /give.
  • Right-clicking fires a fast magical projectile with a short cooldown; it instantly kills any hostile mob it hits.
  • Projectiles despawn on impact and emit an evoker-style cast sound on use.
  • Core registries: item magic_staff and entity type magic_projectile; server entrypoint com.magicwand.MagicWandMod handles registration.

Usage

  • Obtain the staff from the Combat creative tab or with /give @p magicwand:magic_staff.
  • Use it like a bow/snowball: right-click to launch the projectile toward your crosshair.

Notes & Limitations

  • No crafting recipe is provided; acquisition is creative/command-only.
  • Because this adds a custom item and entity, clients should have the mod loaded to see and interact with the projectile correctly.