Back to mods
TONI's Magic Lib project artwork

CurseForge · Minecraft mod

TONI's Magic Lib

Magic engine for TONI's mods: spell registry, wands with mana, spell tomes, spell projectiles, ready-made spell effects, light and dark sides, spellcaster mobs and cast events.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which TONI's Magic Lib release should I use?

Updated today
Latest stable file TONI's Magic Lib 1.0.1 (NeoForge 26.3)
Game version 26.3
Loader NeoForge

TONI's Magic Lib 1.0.1 (NeoForge 26.3) targets 26.3 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is TONI's Magic Lib required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does TONI's Magic Lib 1.0.1 (NeoForge 26.3) need?

TONI's Magic Lib 1.0.1 (NeoForge 26.3). Change the file and its required mods may change too.

All 1 required mods have matching files

Install TONI's Core Lib first. We found matching files for this game-version and loader setup.

TONI's Core Lib Needed by TONI's Magic Lib 1.0.1 (NeoForge 26.3)
required
Matching file found Matched file: TONI's Core Lib 1.0.3 (NeoForge 26.3)

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add TONI's Magic Lib without breaking your instance.

Built for TONI's Magic Lib 1.0.1 (NeoForge 26.3). Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use TONI's Magic Lib 1.0.1 (NeoForge 26.3). It targets 26.3 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install TONI's Core Lib first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside TONI's Magic Lib 1.0.1 (NeoForge 26.3). It opens that exact file at the source.

About this project

What does TONI's Magic Lib add?

TONI's Magic Lib is the magic engine behind TONI's Wizardry. It adds nothing to the game on its own: install it when a mod asks for it.

It gives magic mods one shared system for spells, mana, wands, tomes, spell projectiles, sides and spellcasting mobs, so every TONI's magic mod plays the same way and works together.

What it provides

  • Spell registry: spells are registered with an id (mymod:fireball), mana cost, cooldown, colour, minimum wand tier, and a cast action. Mob-only spells are supported too.
  • Wands and staffs (WandItem): a tier (spell power), their own mana pool that refills while carried (shown as a blue bar), the spells inscribed in them, and the selected spell. Right-click casts, sneak + right-click switches spell.
  • Spell tomes (SpellTomeItem): used with a wand in the other hand, they inscribe their spell into it.
  • Mana potions (ManaPotionItem): refill every wand the player carries.
  • Spell orbs: one glowing projectile entity for every projectile spell, with pluggable behaviours. Ready-made: a homing arcane bolt, a fireball and an explosive meteor.
  • Ready-made spell effects: projectile, frost nova, lightning, blink, heal, shield, life drain, meteor rain and raise dead. A whole spell is one line.
  • Sides: a light side (players, villagers, iron golems, pets, good casters) and a dark side (dark casters and their minions). Spells never hurt allies, and area spells only hit foes, never animals.
  • Spellcaster mobs (SpellcasterMob): a base mob with a side, variants, a staff in hand and a synced "casting" state with coloured sparks. It comes with AI goals: keep distance and cast (CastSpellGoal) and heal hurt allies (HealAlliesGoal).
  • Cast events: listeners before every cast (they can cancel it) and after it.
  • Commands: /tonimagic spells lists every registered spell. /tonimagic fill and /tonimagic learnall (op) refill or teach the wand in your hand.
  • Config config/tonimagic.properties: mana refill speed and spell damage multipliers for players and for mobs. They apply to every mod that uses the lib.
  • English and Spanish.

For modders

A spell is one statement:

Spell FIREBALL = Spell.builder("mymod:fireball").mana(15).cooldown(16).color(0xFF7A1A)
    .orb(OrbBehaviors.fire(6, null))
    .cast(c -> SpellEffects.projectile(c, 1.3, 0, 1))
    .register();

REG.item("fire_tome", p -> new SpellTomeItem(p, FIREBALL));
REG.item("oak_wand", p -> new WandItem(p, 1, 100, 4, FIREBALL.id()));

Names come from the lang keys spell.mymod.fireball and spell.mymod.fireball.desc. Packages: api (Spell, Spells, SpellContext, OrbBehavior, Factions, MagicEvents), cast (Casting, SpellEffects, OrbBehaviors), entity (SpellOrb, SpellcasterMob, ai), item.

Requirements

Join the Discord: discord.com/invite/4YAxqzxgBd

Project description from CurseForge.

Pick your setup

TONI's Magic Lib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

51 available setups

Showing the newest 12 of 31 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

TONI's Magic Lib versions and loaders

50 of 50 releases match

Looking for an older file? The official CurseForge project page is in Resources.