Repository navigation
Adding a Version
Design stage. Nothing here is implemented.
Mojang ships a new version, NeoForge catches up, and the pack should be able to follow without an engineering project. This page is the flexibility requirement made concrete.
A Minecraft version is data, never code. No version string appears in a source file, a config file, a systemd unit, a Caddy route, or the website. Every one of those is generated from a row.
v1 broke this rule and the cost was visible. A line in its server core read:
minecraftVersion == "26.1.2" ? "/var/minecraft_26.1.2" : nilThree hand-written systemd units, three hand-written Caddy route blocks, three API ports, and a website with a page for 26.1.2 and 26.2 but none for 26.3 — a version that was otherwise fully configured. Every one of those is a place someone had to remember to update, and 26.3 is where someone forgot.
version "26.4"
neoforge_build "26.4.1.12" discovered, not typed
minecraft_port 25568 allocated from the configured range
role staging live | staging | retired
sheet_tab "26.4"
java_version 21
sort_order 4
state provisioning provisioning | ready | failed
reference_version "26.3" where carried-forward mods came from
Everything downstream reads this. The website's version selector, the API's routes, the reconciliation loop, the deploy gate's notion of which version is live — all of it iterates the table.
pummelchen-engine version add --version 26.4 --reference 26.3- Allocate. Insert the row, take the next free port from the configured range.
-
Discover NeoForge. Query
maven.neoforged.netmetadata for the newest build targeting 26.4. If NeoForge has not shipped for this Minecraft version yet, stop here and say so plainly — this is the normal case in the days after a Mojang release, not an error. -
Provision. Create
/var/minecraftai/26.4/, install the server jar and NeoForge, writeeula.txtand aserver.propertiesderived from the template. -
Generate the systemd unit from a template,
daemon-reload, enable it. - Create the sheet tab via the Sheets API, with the header row and the protected ranges already applied.
- Carry forward. Seed the mod list from the reference version — every mod it runs, marked as a candidate rather than an install.
-
Resolve. Find a 26.4 build for each carried mod. Mods with no 26.4 release are marked
unavailableand written back to the sheet, which is exactly the report you want on day one. - Validate. Static-check, propose a modset, conflict-test it, bisect anything that fails.
- Report. A ready version, or a specific list of what is blocking it.
Nothing on that list requires editing a file by hand.
The interesting output is step 7. For a ~300-mod pack on a fresh Minecraft version, the answer to "can we move yet?" is a list: which mods have a build, which do not, and which are blocked only by a dependency that has not updated.
That list is the migration plan, and it arrives automatically the day the version is added rather than after someone checks 300 project pages by hand. As upstream authors publish, re-running resolve shrinks it.
Mods marked Priority or Admin Locked carry their protection forward, so a mod the pack cannot ship without is visibly blocking rather than quietly dropped — a behaviour v1 got right and worth keeping.
| Artifact | Generated from | Regenerated when |
|---|---|---|
| systemd unit per Minecraft server | Template + version row | Version added or changed |
server.properties |
Template + version row | Version added |
| Website version selector | GET /api/v1/versions |
Every page load |
| API version routes | Version table | In-process, immediately |
Caddy needs no per-version configuration at all. The engine serves every version from one loopback API, so the edge config written once in Edge and TLS is the whole of it. This is the main structural payoff of collapsing v1's three services into one engine.
Templates live in the repository and are reviewable. Generated units are written to disk with a header marking them generated, so nobody hand-edits one and loses the change on the next regeneration.
pummelchen-engine version promote --version 26.4
pummelchen-engine version retire --version 26.1The live role is a column, not a constant. Promotion moves it: 26.4 starts requiring deploy approval, the previously live version relaxes to staging, and the global download aliases follow. No redeploy, no config edit.
Retirement stops the server and archives its state, keeping the world and the final modset digest so a retired version can be brought back if players object.
The day a new Minecraft version matters, the work is one command and then a report about which mods are not ready — rather than a checklist of files to remember. The version count stops being an architectural fact and becomes a number of rows.
Design stage — not implemented
Design
Validation
Trust
Interfaces
Operations
Project
Reference