ModsFinder

LuaDatapack

by kinderhead

LuaDatapack lets datapacks include Lua scripts that run inside Minecraft, with a Lua subfolder in each datapack.

FabricServer-side onlyMIT LicenseOpen source1.19 – 1.20.1

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

  1. Lua scripts in datapacks

    Datapacks can include Lua scripts in a lua subfolder, and the scripts run on the server.

  2. Namespaced script calls

    A script at data/foo/lua/bar.lua is called as foo:bar, matching the namespaced id system.

  3. Project system

    A project.lua file in a namespace controls which scripts run and which external project scripts are imported.

  4. 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.

No stable releases
Every published file is a beta or alpha build.
1.20.10.11.0-beta
1.200.11.0-beta
1.19.40.10.2-beta
1.190.7.1-beta
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
LuaDatapackFabric1.19 – 1.20.1Server-side only2023-06-15
BouquetFabric1.21.1 – 26.1.2Client or server, optional2026-03-24
LuafyFabric and Quilt1.20.4 – 1.20.6Server-side only2024-05-14
Wizards of LuaFabric1.21.1 – 26.3Server-side only2026-10-11

Questions

Does LuaDatapack need Fabric API?

Yes. Fabric API is a required dependency, so it must be installed next to LuaDatapack on the server.

Does a player need LuaDatapack installed?

No. It runs on the server alone, so players need nothing extra to join.

How are Lua scripts called from a datapack?

A script at data/foo/lua/bar.lua is called as foo:bar. Arguments are passed through an array named args.

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

All projects

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.
kinderhead, on the Modrinth page

Official listing

Owner
kinderhead
Published
2022-07-09
Updated on Modrinth
2023-06-15
Facts verified
2026-10-15

Tags