feat: some minecraft shit

This commit is contained in:
2026-11-15 09:07:57 +00:00
parent a451a9de0a
commit c9c276d9de
3 changed files with 72 additions and 7 deletions
+65 -3
View File
@@ -11,7 +11,69 @@ Upload to a temporary filename, verify the remote SHA-256, then rename to the
final version filename. Pin that path and hash in
`nixos/system/neuro/minecraft/wow-mine-map.nix`.
The repository now pins `world-of-sosal-20261113T172314Z-outland.tar.gz`,
The repository now pins `world-of-sosal-20261114T223938Z-winter-biomes.tar.gz`,
SHA-256 `d1afd169b16b7b50a57c47da46245e93285b46b6c833bfd08941d07d0341b208`
(6,423,189,189 bytes). Archive and JSON manifest were uploaded separately,
fully downloaded again, hash checked, and renamed to immutable Storage Box
paths on 2026-11-15 UTC. The manifest SHA-256 is
`4fd3caff074c1f2f30f55dd82a94fef6fd6918e06243094c4fd39457408facc0`.
The winter revision extends existing snowy plains, snowy taiga, and ice spikes
through the native height Y=-512..2031. The approved northern snowy `the_end`
component becomes snowy plains. Its exact contour contains 218,269 native
4x4 columns; existing winter areas contain 1,384,211 columns. Isolated snow
and ice decorations outside these masks remain unchanged. Together these
cover 1,602,480 columns in 104,637 chunks and 187 Azeroth region files.
The approved contour bundle SHA-256 is
`d15c85c563553c203fb32034f74421bda6a5b00209220ef4f9e780b5900760bd`.
The transformation checks all 1,019,177,280 target biome cells and every
unselected biome cell in each affected chunk. Original non-biome NBT bytes,
chunk membership, region timestamps, and untouched compressed chunk payloads
are preserved. Missing sections added within the native height contain only
air blocks. An independent verifier also checked every modified region header,
every untouched payload, and 512 selected chunks. A private server with the
production NeoForge 21.1.250, Java 21, and 133 mod JARs passed 117 biome predicates
and 216 original-block predicates at nine control points. Biome expectations
use Minecraft's seeded biome sampling, including neighboring quart cells.
On 2026-11-15 UTC the running world received a biome-only overlay, without a
reset or source extraction. Minecraft was stopped before copying the original
187 target region files and player/progress metadata to
`/srv/minecraft/backups/wowMineMap-before-winter-biomes-20261114T223938Z`.
This is a targeted backup, not a full-world snapshot. Separate output MCA files
passed the complete biome/non-biome checks and the independent 512-chunk check
before atomic replacement. All 3,361 other world files retained their SHA-256,
size, ownership, mode, inode, and modification time before server startup,
including entities, POI, playerdata, advancements, statistics, and level metadata.
The original live `SOURCE_VERSION.txt` remains unchanged; the separate overlay
receipt is `/var/tmp/worldofsosal-winter-biomes/live-application.json`.
The old Azeroth `data/DistantHorizons.sqlite` was moved intact into the backup's
`derived-dh/` directory (807,206,912 bytes, SHA-256
`d7c5174889f236bbbeca63be68cb7bd56f85cd96d83d5bd3730af7c089598a30`).
This derived terrain cache must be regenerated to avoid serving old biome LODs.
Other dimensions' caches were preserved. Old source versions and backups remain.
After startup at 00:23:37 UTC on 2026-11-15, the production server passed all
117 biome predicates and 216 block predicates against the pre-change live
baseline at nine control points. Both dimensions registered, temporary
force-load tickets were removed, and `save-all flush` succeeded. The Azeroth
DH database was recreated with the new cache identity. Only `levelKeyPrefix`
changed in the DH configuration; all other parsed TOML settings matched.
The v11 archive, all 133 mod JARs, JVM launcher and memory flags
(`-Xmx24G -Xms2G`), and view/simulation distances 32/32 were verified unchanged.
The public Minecraft status endpoint answered with the v11 MOTD.
No heightmap warnings appeared. All 304 distinct startup error messages matched
the previous 2026-11-13 launch: existing mod compatibility, registry, loot,
recipe, and function errors remain outside this biome change.
Verification reports reside in `/var/tmp/worldofsosal-winter-biomes/`:
`live-patch-report.json`, `live-independent.json`, `live-application.json`,
`live-runtime-report.json`, `live-config-application.json`, and
`live-final-report.json`. These separate offline byte-preservation evidence
from normal game writes after startup.
The parent is `world-of-sosal-20261113T172314Z-outland.tar.gz`,
SHA-256 `bee81bb955099e85ed93ca7c258a9cc48ec1a26590bfe891c869a80ad0094def`
(6,579,158,241 bytes). This is a clean source revision, derived from the spawn
revision below, without gameplay state. It was activated on neuro on 2026-11-13:
@@ -30,8 +92,8 @@ type (`min_y=-512`, `height=2544`) and an empty flat generator. The Azeroth spaw
datapack remains enabled. Updated installation and teleport instructions and
`OUTLAND_SEPARATION.json` are included in the archive.
The server uses the new Distant Horizons `server.levelKeyPrefix`
`world-of-sosal-20261113T172314Z-outland-`, enforced by the modpack importer's
The server uses Distant Horizons `server.levelKeyPrefix`
`world-of-sosal-20261114T223938Z-winter-biomes-`, enforced by the modpack importer's
`postStart`. The archive configuration omits this key, so `postStart` inserts it
under `[server]` rather than only replacing an existing line. This gives clients
a fresh terrain-cache identity for each dimension. Obsolete client terrain
@@ -42,8 +42,11 @@ in
"${config.services.minecraft-servers.dataDir}/wowMineMap/mods/sable_dynamicheight_compat-1.0.0.jar"
${pkgs.gnused}/bin/sed -i \
-e '/^[[:space:]]*levelKeyPrefix[[:space:]]*=/d' \
-e '/^\[server\]$/a\levelKeyPrefix = "world-of-sosal-20261113T172314Z-outland-"' \
-e '/^\[server\]$/a\levelKeyPrefix = "world-of-sosal-20261114T223938Z-winter-biomes-"' \
"${config.services.minecraft-servers.dataDir}/wowMineMap/config/DistantHorizons.toml"
${pkgs.gnused}/bin/sed -i \
-e 's/^\([[:space:]]*enableCheatModeForCreative[[:space:]]*=\).*/\1 false/' \
"${config.services.minecraft-servers.dataDir}/wowMineMap/config/jei-server.toml"
'';
};
}
@@ -13,10 +13,10 @@
serverName = "wowMineMap";
remoteHost = "u664722.your-storagebox.de";
remoteUser = "u664722";
remotePath = "minecraft/map/versions/world-of-sosal-20261113T172314Z-outland.tar.gz";
archiveName = "world-of-sosal-20261113T172314Z-outland.tar.gz";
remotePath = "minecraft/map/versions/world-of-sosal-20261114T223938Z-winter-biomes.tar.gz";
archiveName = "world-of-sosal-20261114T223938Z-winter-biomes.tar.gz";
cacheDir = "/var/lib/minecraft-maps";
archiveSha256 = "bee81bb955099e85ed93ca7c258a9cc48ec1a26590bfe891c869a80ad0094def";
archiveSha256 = "d1afd169b16b7b50a57c47da46245e93285b46b6c833bfd08941d07d0341b208";
sshKeyFile = config.sops.secrets."minecraft/storage-box-key".path;
worldName = "world";
hostPublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw==";