Wizards of Lua

Wizards of Lua

Unlock the Magic of Lua Scripting in Minecraft 🌟 WoL adds the /lua command, allowing you to cast spells and interact with the game using the Lua programming language.

by
4.8K Downloads
fabricgame-mechanicslibraryutility
Rent Server with this Mod

Screenshots

Editing Spells

About this Mod

Wizards of Lua is a server-side Fabric mod that lets you write spells in Lua and cast them inside Minecraft.

Type a one-liner in the chat for an instant change, or start a long-running spell that reacts to everything happening in your world. No Java or modding experience needed, no server restarts, no client mods.

/lua require "greeting"

Casts a spell using the code from config/wizards-of-lua/greeting.lua.

local queue = spell:collect("PlayerJoinedEvent")
while true do
  local evt = queue:next()
  spell:execute("/say Welcome, " .. evt.player.name .. "!")
end

Greets every player who joins.

Get Started

The Quickstart Video walks you through installing the mod and casting your first spell in under two minutes. The Getting Started Guide covers the same ground in writing, and goes on from there.

What You Can Do

  • Run Lua in-game: Cast spells with the /lua command, either as inline code or from files in config/wizards-of-lua. Edited files are recompiled the next time they're used, so no server restart is needed.
  • Change the world: Place blocks, summon mobs, edit items and entities, all through an extensive Lua API.
  • Give mobs orders: Send any mob walking to a spot, following or fleeing from someone, standing guard or attacking a target. An order only borrows the mob's attention: when it's done, the mob goes back to its own business.
  • React to events: Respond when players join, break blocks or swing tools, and cancel or extend what happens next.
  • Add your own commands: Register Brigadier commands at runtime, with typed arguments and auto-completion.
  • Code with autocompletion: Write spells in Visual Studio Code with full type support.
  • Stay in control: Spells run on a per-tick budget and yield automatically, so a busy spell doesn't freeze your server. Access is controlled by permission levels and nodes, compatible with LuckPerms. Use /wol spell list all to see what's running and /wol spell break all to stop it.
  • Install on the server only: Works in singleplayer and multiplayer. Players don't need to install anything.

What People Build

  • Safe zones where PvP is disabled
  • Minecarts that climb ladders
  • A magic wand that strikes hostile mobs with lightning
  • A spider bodyguard that stays at your side and attacks whoever hurts you
  • Guards who hold their posts against hostile mobs without chasing them too far
  • A miner who digs a tunnel, lights it with torches, and fetches a fresh pickaxe from a chest when his breaks
  • A lumberjack spell that makes the whole tree fall when any player breaks a single log
  • A magic hoe that harvests a whole wheat field with one swing
  • Mini-games like Journey

Versioning

Versions follow the format MAJOR.MINOR.PATCH-MCVERSION, for example 6.2.0-1.21.11. The first part follows Semantic Versioning and describes compatibility with your scripts. The part after the - is the Minecraft version.

Updates that raise MINOR or PATCH are safe. If MAJOR increases, check the changelog first, because your scripts may need changes.

Learn More

This mod is a complete rewrite for Fabric of the original Wizards of Lua for Forge, which is no longer maintained. The two APIs differ, and scripts written for the Forge version won't run unchanged.

New here? Watch the Quickstart Video, then find guides, examples and the full API reference at wizards-of-lua.net.

Available Versions

Wizards of Lua 6.2.0-26.3release
MC 26.3fabric
October 7, 2026
Wizards of Lua 6.2.0-26.2release
MC 26.2fabric
October 7, 2026
Wizards of Lua 6.2.0-26.1.2release
MC 26.1.2fabric
October 7, 2026
Wizards of Lua 6.2.0-26.1.1release
MC 26.1.1fabric
October 7, 2026
Wizards of Lua 6.2.0-1.21.11release
MC 1.21.11fabric
October 7, 2026

How to Install Wizards of Lua on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.3).

3

Install Mod

Open the mod browser in the dashboard and search for "Wizards of Lua". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.3, 26.2, 26.1.2 (+12 more)

Server-side

✓ Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Wizards of Lua server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.3). You can switch loaders with one click in the panel.

Is Wizards of Lua compatible with fabric?

Wizards of Lua officially supports fabric for Minecraft 26.3, 26.2, 26.1.2. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Wizards of Lua – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Wizards of Lua consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Wizards of Lua with just one click on your server.

Recommended RAM
4 GBfrom €5.2/mo
Minimum 3 GB | per 8 players
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 or later
Server-side
Required

Supported Versions

26.326.226.1.226.1.11.21.111.21.101.21.91.21.81.21.71.21.6+5 more