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.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description

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 spellslists every registered spell./tonimagic filland/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. - 12 languages: English, Spanish, French, German, Italian, Polish, Portuguese, Russian, Turkish, Simplified Chinese, Japanese and Korean.
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
- TONI's Core Lib
- Forge 1.7.10 - 26.3, Fabric 1.14 - 26.3 and NeoForge 1.20.2 - 26.3 (126 versions)
Built on it
| TONI's Magic: Wizardry Become a wizard: 13 spells from tomes (Arcane Ray, meteor, blizzard...), an Inscription Table and spell hotkeys, good and dark wizards, the Ancient Mage, Dark Towers and the Arcane Bunker dungeon. |
Join the Discord: discord.com/invite/4YAxqzxgBd
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
- TONI's Magic: Wizardry
- Toni's Immersive Lanterns
- TONI's TNT Lib
- TONI's Better Shipwrecks: Sunken Ships & Pirate Wrecks (Forge/Fabric)
- TONI's Core Lib
- TONI's Better Bastions: Nether Bastion Remnant Overhaul (NeoForge)
- TONI's Better Ocean Monuments
- TONI's Structure Lib
- TONI's Better Pillager Outposts: Fortified War Camps (Forge/Fabric)
- TONI's Better Nether Fortresses
- TONI's Better End Cities
- TONI's Weaponry
Stats
- Downloads
- 6k
- Used in
- 4 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Nov 28, 2026 1:41 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works
External Links
Stats
- Downloads
- 6k
- Used in
- 4 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Nov 28, 2026 1:41 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works