LuaCord: Scripting Minecraft Plugins with Lua
For years, Minecraft server customization meant wrestling with Java and complex build tools. LuaCord changes that by bringing the simplicity of Lua scripting to the Spigot and Paper ecosystem. Whether you are a seasoned developer tired of boilerplate or a newcomer who finds Java intimidating, this modern plugin framework opens up a world of possibilities without sacrificing access to the full Spigot API. Now with native JAR support, distributing your creations on CurseForge or Modrinth is just as easy as writing the code.
What Exactly Is LuaCord?
LuaCord is a lightweight plugin framework that acts as a bridge between your server and Lua scripts. Instead of compiling Java classes, you write plugins in clean, readable Lua. Under the hood, it exposes commands, events, permissions, and virtually every Spigot API feature you would expect from a traditional plugin. The result is a development experience that feels refreshingly immediate, especially when you need to prototype mechanics or add custom features on the fly.
Key Features That Set LuaCord Apart
- Full Spigot API Access: Tap into commands, events, permissions, and more without touching Java.
- JAR Support: Package your Lua plugins as standard .jar files for seamless distribution on platforms like CurseForge and Modrinth.
- Web JAR Generator: Convert .lkt archives to .jar right in your browser at luacordmc.github.io/generator.html. The tool runs entirely client-side, so your files never leave your computer.
- Paper Compatibility: Works flawlessly on modern Paper servers, including a bypass mode for Paper’s plugin registration restrictions.
- Easy to Learn: Lua’s gentle learning curve means you can start building custom game logic in minutes, not days.
- Hot Reload: Test changes instantly in development mode without restarting the entire server.
- Backwards Compatible: All existing Lukkit plugins run unchanged, preserving your previous work.
Getting Started with LuaCord
Installation
Setting up LuaCord is straightforward. First, download the LuaCord JAR from the official website at luacordmc.github.io and place it into your server’s /plugins folder. After that, add your own plugins—either as .lkt files (ZIP archives), .jar wrappers, or even plain folders for quick testing. Restart the server, and LuaCord will automatically load everything. For players who manage multiple modded setups, installing LuaCord and its companion plugins can be done effortlessly through the foxygame.net launcher, a convenient, flexible, and modern Minecraft launcher where you can download mods and server tools right from the menu.
Plugin Structure
Every LuaCord plugin contains at least two essential files:
- main.lua – Your plugin code, where you define commands, event listeners, and logic.
- plugin.yml – Metadata such as name, version, author, and the main Lua file to load.
An optional config.yml can hold default configuration values. Here is a minimal example of a healing command:
plugin:onEnable(function()
logger:info("Plugin enabled!")
end)
plugin:addCommand({
name = "heal",
description = "Heal yourself"
}, function(event)
local player = event:getSender()
player:setHealth(20)
player:sendMessage("Healed!")
end)
plugin:registerEvent("PlayerJoinEvent", function(event)
local player = event:getPlayer()
player:sendMessage("Welcome!")
end)
And the corresponding plugin.yml:
name: MyPlugin
version: 1.0
main: main.lua
author: YourName
description: My awesome plugin
Distributing Your Plugin as a JAR
One of LuaCord’s standout additions is the ability to wrap your Lua plugin into a standard JAR file. This means you can upload your work to CurseForge or Modrinth just like any Java plugin. The process is simple: create your .lkt plugin, head over to luacordmc.github.io/generator.html, upload the file, fill in the metadata, and download the generated JAR. Because the generator runs entirely in your browser, your code stays private. Once you have the JAR, drop it into /plugins alongside LuaCord, and it will be recognized automatically.
Useful Commands for Developers
LuaCord ships with a set of administrative commands to streamline development:
/lukkit plugins– List all loaded LuaCord plugins (especially handy on Paper, where they won’t appear in/plugins)./lukkit dev reload <plugin>– Hot reload a plugin in development mode./lukkit dev pack <plugin>– Package a folder-based plugin into a .lkt archive./lukkit dev unpack <plugin>– Extract a .lkt file back into a folder for editing./lukkit dev errors– View recent error logs to debug issues quickly.
Configuration Options
The main LuaCord configuration file allows you to fine-tune behavior:
- debug-mode: Set to
truefor verbose logging during troubleshooting. - bypass-plugin-registration: Enabled by default; this Paper compatibility mode ensures plugins load correctly even under strict registration rules.
- lua-debug: When active, exposes Lua debug globals for advanced diagnostics.
Why Choose Lua Over Java?
For many server owners, Java plugin development feels like a steep hill. LuaCord flattens that curve. Lua’s syntax is minimal and forgiving, allowing you to focus on game logic instead of classpaths and build tools. The hot reload feature alone saves hours of restarting during testing. Additionally, the ability to distribute plugins as JARs removes the old stigma that scripted plugins are only for private use. You can now share your creations with the wider Minecraft community while keeping the development process lightweight and fun.
Requirements and Compatibility
LuaCord runs on any Spigot or Paper server (any version) with Java 8 or higher. It maintains full backwards compatibility with all Lukkit plugins, so migrating is painless. The current release (0.2.0-BETA) introduces JAR wrapper support, an improved error messaging system, and a public LuaCordAPI for developers who want to extend the framework itself.
Conclusion
LuaCord bridges the gap between rapid prototyping and professional plugin distribution. By letting you write in Lua while accessing the complete Spigot API, it removes unnecessary complexity without limiting what you can achieve. The addition of JAR packaging, browser-based generation, and Paper compatibility makes it a serious contender for anyone managing a Minecraft server. Whether you are building a small quality-of-life tweak or a full game mode, LuaCord gives you the tools to do it faster and with less friction. Give it a try, and you may never want to go back to pure Java plugin development again.
--- **Update Sep 1, 2026:** Added 1 file for version 26.2, 26.1.2, 26.1.1, 26.1, 1.9, 1.8.1, 1.8, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5-Snapshot, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.11, 1.21.10, 1.21.1, 1.21, 1.20.6, 1.20.5-Snapshot, 1.20.5, 1.20.4, 1.20.3-Snapshot, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17, 1.16, 1.15, 1.14, 1.13, 1.12, 1.11, 1.10.