LuaDatapack
by kinderhead
LuaDatapack lets datapacks include Lua scripts that run inside Minecraft, with a Lua subfolder in each datapack.
What it does
A datapack that includes a lua subfolder can run Lua scripts, which are executed on the server. Scripts are referenced by namespaced id, so data/foo/lua/bar.lua is called as foo:bar. Arguments passed to a script are read from an array named args. Scripts that use require must use Minecraft's namespaced id system, and fields used by a script need to be explicitly defined. The execution engine is Cobalt, which the author describes as giving fast execution times, and the mod ships with TypeScriptToLua support and a few common utility libraries.
Larger projects are organized with a simple project system. A project.lua file in a namespace folder sets which scripts are executed and which external project scripts are imported alongside them. If a library fails to load, the project fails to load its scripts. The mod requires Fabric API and is server-side only, so players join without installing it. It is open source under the MIT License and is published for Fabric only, across 1.19, 1.19.4, 1.20 and 1.20.1, with 0.11.0-beta for 1.20.1 as the latest file.
Key features
Lua scripts in datapacks
Datapacks can include Lua scripts in a lua subfolder, and the scripts run on the server.
Namespaced script calls
A script at data/foo/lua/bar.lua is called as foo:bar, matching the namespaced id system.
Project system
A project.lua file in a namespace controls which scripts run and which external project scripts are imported.
Bundled utility libraries
A few common utility libraries and an object-oriented programming library are included by default.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Who it’s for: Datapack authors and server owners who want Lua scripts to run inside a world. Players only need the server side installed.
How it compares
Bouquet is open source under the MIT License and runs on Fabric with files for 1.21.1 – 26.1.2, where the client or server may run it. Luafy is server-side only, not open source, licensed under Creative Commons Attribution Non Commercial 4.0, and published for Fabric and Quilt across 1.20.4 – 1.20.6. Wizards of Lua is server-side only and open source under the GNU Lesser General Public License v3.0 or later, with files for 1.21.1 – 26.3.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| LuaDatapack | Fabric | 1.19 – 1.20.1 | Server-side only | 2023-06-15 |
| Bouquet | Fabric | 1.21.1 – 26.1.2 | Client or server, optional | 2026-03-24 |
| Luafy | Fabric and Quilt | 1.20.4 – 1.20.6 | Server-side only | 2024-05-14 |
| Wizards of Lua | Fabric | 1.21.1 – 26.3 | Server-side only | 2026-10-11 |
Questions
Does LuaDatapack need Fabric API?
Does a player need LuaDatapack installed?
How are Lua scripts called from a datapack?
In the catalog
LuaDatapack is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 34,764 mods support Minecraft 1.20.1.
More from kinderhead
Similar mods
What the author says
Allows lua scripts to be ran in Minecraft. Note: LuaDatapack is in beta, so the api is subject to change.
Official listing
- Modrinth page
- modrinth.com/mod/luadatapack
- Owner
- kinderhead
- Published
- 2022-07-09
- Updated on Modrinth
- 2023-06-15
- Facts verified
- 2026-10-15
