We’re announcing two new terminal tools to support developers and server owners. Luma allows you to install, update, and manage Luanti packages and worlds. Flint is a formatter and linter to help developers catch common mistakes and improve the quality of their games and mods.
What is the Developer Experience (devex) team?
You might have missed the formation of a new Luanti devex team a few months ago. No one would blame you, as we didn’t have a big announcement, only a list of tools we wanted to implement.
The Luanti devex team is focused on providing an improved experience for mod/game developers, and for server owners. We have several projects in the works, and this blog post only focuses on two of them: Luma and Flint.
Luma
Luma, a portmanteau of Luanti + Manager, provides both a Terminal User Interface (TUI) and a Command-Line Interface (CLI) for installing, updating, and managing Luanti mods, modpacks, games, and texture packs through ContentDB.
It comes as a single binary and is meant for server hosts or devs who want to automate managing Luanti content entirely from the command line.
Luma is available to download for Linux, Windows, and macOS here.
Full documentation is also available online here.
Key features
- Interactive TUI: the above-pictured terminal interface provides an interactive method to manage packages and worlds.
- Scriptable CLI: a traditional command-line interface accepts commands for all features the TUI provides, allowing automation without interaction.
- ContentDB integration: browse, search, inspect details, install, and update packages automatically matched to your installed Luanti engine version.
- Dependency resolution: Luma automatically resolves and installs hard dependencies for mods and modpacks, allowing easy installation and updating of content.
- World management: lists worlds, shows mods loaded by each world, and can also install and manage mods into a world’s
worldmods/folder.
Luma is still being actively developed to add more features, including toggling mods per world, smart world settings editing, Git-based updates, and more.
For full information, see Luma’s roadmap.
Flint
Flint is a simple play on the two core constructs of this tool: Format + lint. Unfortunately, it is unable to assist in setting your Luanti packages on fire; it leaves that up to the user :P.
Flint provides a collection of checkers that allow you to catch common mistakes, format code, and generally improve the quality of your games and mods. It can help you migrate your mods and games through Luanti updates, automatically replacing deprecated APIs using your package’s min_minetest_version.
Many developers already use Luacheck; Flint is intended to complement and not replace it.
For complete information on Flint’s features and getting started, see the documentation online.
Key features
- Linting: general Lua linting (using Selene) plus Luanti-specific lints, dependent on your min engine version. For example, it catches item names missing your mod’s prefix,
dofilepaths with mismatched case (works on Windows, breaks elsewhere), unclosed VoxelManips, settings not declared insettingtypes.txt, LuaJIT-only syntax, deprecated API usage, files not ignored for ContentDB release, outdated conventions (.tr→.po,.txt→.conf,minetest→core,.b3d→ glTF), and much more. - Autofix: the
--writeflag automatically fixes many of the issues Flint reports, though not everything. - Generate: writes and updates common package files. It adds undeclared settings to
settingtypes.txt(inferring type and default from usage), builds a.pottemplate and adds missing strings to existing.pofiles, and sets or raisesmin_minetest_versionbased on the newest engine function used. - Convert: converts
.xand.b3dmodels (whose formats will be removed in the next major version) to glTF,.objfiles to node boxes, and schematics between formats (Luanti.mts, WorldEdit.we, blockexchange.zip, aaschems’ ASCII-art.lua). - Compress: shrinks media (currently
.pngand.ogg) to reduce download size and speed up initial join time on servers.
User Showcase
The mt-mods organization has been one of the first to put Flint to work across its repositories. Here’s what that looked like:
- Continuous checks: 10 repositories now include a
.github/workflows/flint.yml(see the CI docs) that runs lint and compress on every push and pull request, so problems are caught before they get merged. - Translations: 343 translation files were converted from
.trto.po, which lets those mods plug into mt-mods’ Weblate instance for community translation. - Smaller downloads: across the Flint commits and three follow-ups, 324 media files shrank from 1.96 MB to 1.49 MB, about 24% smaller (≈459 KB saved).
digistuffalone accounts for about 418 KB of that. Every joining player has to download this media, so it adds up quickly on busy servers.
| Type | Files | Before → after | Saved |
|---|---|---|---|
| OGG audio | 33 | 1.49 MB → 1.12 MB (−24.9%) | ≈361 KB |
| PNG textures | 289 | 449 KB → 345 KB (−23.2%) | ≈101 KB |
Getting started
Grab a build from the latest commit, and trial whichever features (or all of them) tickle your fancy to improve your package. Add it to CI to make sure your package is always in its best shape.
What’s next
There’s more coming from the devex team. Take a peek at Luanti Workbench, a set of in-browser tools for creating content. You can already grow L-system trees and lay out formspecs there, and more tools are on the way. Workbench is built to connect with the rest of the Luanti ecosystem, starting with the docs: every example on the L-system trees page opens straight in the editor.
Community feedback decides what we build next. If something is missing, broken, or annoying in Luma, Flint, or Workbench, let us know in #luanti-devex (Discord, Matrix, IRC).