feat: wowmine: immersive portals

This commit is contained in:
2026-11-24 09:05:38 +00:00
parent 8c42bef13f
commit 05198a98f8
44 changed files with 1517 additions and 5 deletions
+30
View File
@@ -14,6 +14,21 @@ Set `services.minecraft-backups.onCalendar` to change the schedule. Its default
is `"*-*-* 00/6:00:00"` (00:00, 06:00, 12:00, and 18:00 in the host timezone). is `"*-*-* 00/6:00:00"` (00:00, 06:00, 12:00, and 18:00 in the host timezone).
S3 retention is configured separately with `services.minecraft-backups.s3.retentionDays`. S3 retention is configured separately with `services.minecraft-backups.s3.retentionDays`.
## Shutdown warnings
wowMineMap broadcasts chat warnings five minutes before a backup stop, one
minute before it, and immediately before stopping. The countdown starts after
the maintenance lock is acquired and pending uploads have succeeded. It waits
240 seconds between the first two messages, then 60 seconds before the last.
The server remains playable during this interval.
`services.minecraft-backups.servers.<name>.announcementCommand` enables these
warnings. Its executable receives one plain-text message argument; wowMineMap
delivers it through its existing Minecraft console using `say`. Other servers
retain their previous behavior unless this option is set. Inactive servers
receive no warnings and incur no countdown. A failed announcement aborts that
backup before stopping or copying the server.
## Snapshot and local storage ## Snapshot and local storage
A running server is shut down through its normal systemd stop command while A running server is shut down through its normal systemd stop command while
@@ -39,6 +54,21 @@ S3 cleanup only deletes names matching that server's timestamped archive format.
Manual archives and other prefixes are preserved. Cleanup uses the same helper Manual archives and other prefixes are preserved. Cleanup uses the same helper
as PZ: individual object deletions and explicit validation of S3 deletion errors. as PZ: individual object deletions and explicit validation of S3 deletion errors.
## Clean shutdown verification, 2026-11-22
The deployed stop script sends Minecraft's `stop` command and waits until
the server exits. Minecraft 1.21.1 `MinecraftServer.stopServer` saves all
players, disconnects them, saves all levels with flushing enabled, closes
the levels, and releases world storage. The backup waits for systemd stop
to finish and requires `Result=success` before rsync starts.
The last inspected production shutdown logged `Saving players` followed by
`Saving worlds` at 17:02:56 UTC, then all chunks and dimensions saved at
17:02:57 UTC. Thus a normal backup copies the final stopped state rather
than combining a live inventory with an older frozen map. Process crashes,
power loss and save errors are separate failure cases; systemd success alone
does not certify that every mod or storage operation saved without error.
## wowMineMap live-backup investigation, 2026-11-16 ## wowMineMap live-backup investigation, 2026-11-16
Read-only inspection through `ssh neuro` confirmed that wowMineMap is running Read-only inspection through `ssh neuro` confirmed that wowMineMap is running
+15
View File
@@ -3,6 +3,11 @@
Source: `minecraft/pack/wowmine-v16-delight-rules-r2.mrpack`. Source: `minecraft/pack/wowmine-v16-delight-rules-r2.mrpack`.
SHA-256: `a7f474f1431719c6b11707fec05db8b571cb4d1b84d58c20962e771881b0109e`. SHA-256: `a7f474f1431719c6b11707fec05db8b571cb4d1b84d58c20962e771881b0109e`.
The survival successor removes Afterlife's Delight from both sides. See
[minecraft-survival-v16.md](minecraft-survival-v16.md) for the source pin,
backup, player-state checks and deployment evidence. The inventory below
records the original v16 selection.
The unbreakable netherite knife addon is required on both sides. Its upstream The unbreakable netherite knife addon is required on both sides. Its upstream
client-side metadata is incorrect: a real connection failed registry sync without client-side metadata is incorrect: a real connection failed registry sync without
the client JAR. The archive corrects that metadata; the JAR remains unmodified. the client JAR. The archive corrects that metadata; the JAR remains unmodified.
@@ -24,6 +29,16 @@ map on M for everyone except that UUID. Both restriction effects are cleared
from Boss. This server rule needs no new client archive. from Boss. This server rule needs no new client archive.
DH cache identities remain `wos` / `wos-w1`. DH cache identities remain `wos` / `wos-w1`.
The same server datapack filters
`cuttingdelight-dev:recipe/cutting/duplicate1.json` from lower-priority packs.
Cutting Delight 1.1.1 ships that recipe, which turns raw beef into cooked beef
on a cutting board with a knife. The normal Farmer's Delight beef-to-two-mince
recipe and both cutting-board conversion recipes remain available. No JAR is
modified, and this restriction needs no new client archive.
The remaining duplication and balance candidates, exact recipe IDs, audit
boundaries and runtime verification are recorded in
[minecraft-recipe-audit.md](minecraft-recipe-audit.md).
## Added artifacts ## Added artifacts
| Project | Version | | Project | Version |
+138
View File
@@ -0,0 +1,138 @@
# Immersive Portals v17
Original v17 source: `wowmine-v17-immersive-portals.mrpack`, SHA-256
`f958597c4bed2da74d3e4c1d52b2773e2292fb9c3d1a4f42ccda76b9c620a9de`.
The published upstream artifact is UpperMoon0 Community Edition6.1.3.1,
SHA-256 `da2fa1d90eae031e34690a64c9cd75ed3b74d47325825f8f38c0419e1220bca2`.
The older official NeoForge6.0.7 targets Sodium classes absent from this pack.
The release adds exactly one JAR to both sides. Minecraft1.21.1,
NeoForge21.1.250, all old mod downloads and all override payloads remain
unchanged except client version metadata. Cloth Config15.0.140 already exists
on both sides. Expected counts are238client and230server JARs, including the
existing server-only World Policy and Sleep Time Skip.
## Routing and existing worlds
World Policy1.1.0 handles IP's own intrinsic portal generation rather than
relying only on vanilla `NetherPortalBlock.getPortalDestination`. Its mixin
rewrites the two forward generators and their source selection to
`crafting_azeroth:azeroth` and `wowmine:void`, with both ratios1. Reverse
generations inherit these keys and ratios. Normal/adaptive mode dispatch and
the built-in portal-helper generation remain in place.
The server selects normal Nether portal mode and disables the crouch-to-vanilla
shortcut. End portal mode remains vanilla, preserving the existing Azeroth
return policy. The old Nether, End, Outland, player data and map are retained.
No alternative worlds are enabled by this CE artifact.
Existing vanilla purple portal fields do not automatically become IP entities.
To reuse an old pair, extinguish both fields by briefly breaking/replacing one
frame block at each end, then reignite. IP can then match empty frames; an
occupied vanilla destination instead causes a warning and new-frame placement.
## Frameless spaces and rendering
The built-in Portal Wand item is `immersive_portals:portal_wand`. An operator
can obtain it with `/give @s immersive_portals:portal_wand` and configure
frameless openings. The existing void dimension can hold rooms linked through
these openings. Portal commands also include `create_scaled_box_view`.
The release does not grant commands, change player game modes, or add an
automatic personal-room survival recipe.
Sodium0.8.13, Iris1.8.14-beta.1, Distant Horizons3.3.3 and Pehkui3.8.3 remain
installed. DH deliberately cancels LOD rendering inside portal views; ordinary
nearby Minecraft geometry is used there. Main-view DH cache identities remain
`wos` and `wos-w1`. A software OpenGL test establishes rendering functionality,
not performance on a player's GPU.
## Release checks
The source builder verifies every old downloaded-file entry and override byte.
Actual Java packwiz fresh installation and v16 upgrade both installed238JARs,
verified the new mod, retained every old mod hash and preserved personal options,
DH settings and minimap configuration.
Native build/copy/dry-activation succeeded. Isolated real-client/server QA passed
24 checks on the exact tall Azeroth type: real player round trip, active cow and
arrow crossings, new-frame fire ignition, four intrinsic/adaptive routes, and
frameless views from two angles. NeoOrigins Tiny retained native scale0.5,
width0.3 and height0.9. Main inspected all four final screenshots, including
the unchanged published Bliss2.1.2 shader through Iris. DH remained active.
Software OpenGL establishes functionality; no GPU performance claim is made.
Evidence is retained under `/tmp/wowmine-immersive-qa`.
Native profile:
`/nix/store/814f6qg1alfj72h55wqgsqjnc4hndsw2-nixos-system-neuro-26.05.20261006.b253099`.
Original immutable public pack release:
`e969385695e6baa55961b6e45d5e69b24fc152de8a691df2a71af5c791d9e382`.
The client channel was switched after direct server checks passed. Installed
230JARs match the pinned source and two server-only additions; all228 unrelated
old JARs,20 player/stat/advancement records,7255 region files,23 datapack files
and access lists are preserved. Seed, spawn, world name and hardcore flag match
the cold copy. Sleep remains100%, eight selective Create types and DH identities
remain unchanged. No project commit is part of this change.
The aggregate NixOS activation returned4 because the unchanged
`ollama-model-loader.service` failed. Minecraft itself passed direct integrity,
RCON dimension/sleep and backup-timer checks. Ollama was not modified.
The deployment uses the shared backup lock and a verified cold recovery copy
on the workstation under
`/home/yukkop/.local/share/hearth-backups/wowmine-before-v17-20261123`.
An online rsync pre-seed avoids transferring the whole map during downtime.
After stopping the server, every copied file is checked against a fresh source
SHA-256 manifest before native activation. This retains neuro's10GiB reserve.
The verified recovery copy contains9376files. It must not be removed with
temporary QA runtimes. Sources, JSON receipts, logs and four inspected screenshots
remain under `/tmp/wowmine-immersive-qa`; disposable game runtimes are removed.
## Client culling hotfix
Client revision `v17-ip-culling-fix` preserves Sodium's original cave-culling
argument outside portal rendering. Upstream CE6.1.3.1 replaced it with `false`
even in the ordinary main view. The portal-specific branch remains unchanged:
```java
boolean doUseOcclusionCulling = PortalRendering.isRendering()
? PortalRendering.shouldEnableSodiumCaveCulling() : originalValue;
```
Only `MixinSodiumOcclusionCuller.class` changes in the upstream JAR. The complete
source diff, attribution and original license are retained inside the artifact.
Its SHA-256 is
`6a686c51e13cec7620964861c3bc6572019e5a08b7aadf3530b5cef56ff6fc1f`.
The mod and network protocol version remain6.1.3.1.
Source `wowmine-v17-ip-culling-fix.mrpack` has SHA-256
`ad9b753d59517483341a66cd1a5beca93310a938b99c4059bd97c1069df35d90`.
It retains the original server download and supplies the patched JAR only through
`client-overrides`. Existing server activation, worlds, routing, sleep, Create
rules and DH identities are unchanged. Client JAR count remains238.
The immutable client pack release is
`9ed30864f882c3fd5b17003f1638b59b1f865e90dd6b5b8798ceaa88449e8d92`.
A component probe failed on the original argument handling, passed with the fix,
and failed again after restoring the original. Actual NVIDIA RTX3050Ti captures
with Bliss, view distance18 and window2560x1369 measured17.23FPS before,
38.18FPS after, and33.52FPS in a repeat after restoring this fix. Rendered sections
fell from2077 to approximately1080. The player confirmed destination visibility
and a successful portal round trip on the restored fix.
These captures establish an improvement; they do not establish restoration of
the reported earlier60FPS. The repeat began shortly after world entry, and a
requested warmed capture was not supplied before the game closed. Remaining
frame cost has not been attributed to a particular IP hook. An additional
framebuffer-preparation experiment did not demonstrate benefit and is excluded.
Flywheel's shader-related backend warning also occurs without IP and does not
prove a new global backend regression.
The final local Java packwiz upgrade passed with the exact patched JAR,
all237 unrelated old mod hashes, and personal options, DH and minimap settings
preserved. All682 public managed payloads, archives, checksums and the download
page matched the staged release. Actual HTTPS fresh installation and the public
updater on the already-fixed client both passed with238JARs and exact old mod
hashes; the existing client's personal options, DH and minimap bytes remained
unchanged. The original-v17-to-hotfix transition was exercised locally with the
same payloads. These are delivery checks, not additional performance measurements.
Evidence and recovery copies are retained under `/tmp/wowmine-ip-fps`.
+37
View File
@@ -0,0 +1,37 @@
# Craftable Loot Chests recipes
`wowmine-rules/pack.mcmeta` filters recipe resources in the
`craftable_loot_chests` namespace with the unique `recipe/recipe_sealed_`
prefix. Installed version1.0.0 contains18matching files for coal, diamond,
food, gold, iron, lapis, netherite and village chests, including alternatives.
The original server loads16of those recipes; both coal recipes are already
unloaded. All18resource files are covered by the filter.
The mod stays installed. Item/block registrations, loot resources, existing
placed chests and inventory items are not removed.
Keep the path prefix narrow. Minecraft1.21.1 ResourceFilterSection tests
namespace and path independently across its block list. A broad `recipe/.*`
path in this shared pack would also filter recipes from other namespaces
already listed there. Validation must compare all other RecipeManager IDs,
not only check that this mod's recipes disappeared.
Verification uses separate cold starts of a matching disposable server and
compares RecipeManager IDs, item/block registrations, loot resources and a
chest saved before applying the filter. Native deployment likewise restarts
the server. A hot-reload trial failed on a separate duplicate
`mango_compat_delight:cutting/stripped_cinnamon_log` registration; this change
does not attempt to fix that mod's reload behavior.
Cold-start comparisons also exposed a generated Create Dragons Plus polishing
recipe occasionally missing. Its provider asynchronously saves resources into
an unsynchronized HashMap. QA uses `-Dmax.bg.threads=1` for both baseline and
filtered starts to keep the generated data stable while retaining the strict
all-other-recipe comparison. This JVM setting is test-only.
The final strict comparison passed: 21,528 recipes became21,512, with exactly
the16loaded Craftable Loot Chests recipes removed and no other recipe IDs
added or lost. All25registered mod items,16blocks and28loot resources remained
equal. A placed sealed diamond chest survived the filtered cold restart with
the same block state. Existing live rules were copied into the native snapshot
before adding the filter, preserving all six prior restrictions.
+82
View File
@@ -0,0 +1,82 @@
# wowmine player visibility
Applied on neuro on November 22, 2026. Scope: hide overhead player names and
ordinary world-coordinate displays. Names in Tab, chat and Jade's targeted
entity tooltip remain available.
## Server rules
`wowmine-rules` sets `reducedDebugInfo=true` on load. This removes absolute
XYZ, block and chunk location lines from vanilla F3. Reduced F3 still shows
chunk-relative offsets; it does not remove every diagnostic value.
The datapack creates `wowmine_hidden` with `nametagVisibility=never`.
`player_visibility.mcfunction` assigns unteamed online players every tick,
including players joining later. There were no existing teams before rollout.
Existing team members are never moved. If administrators later introduce
custom teams, those teams need their own hidden-name setting.
Friendly fire stays enabled and friendly invisible players stay hidden.
The team has no custom prefix, suffix or color.
## Xaero profiles
The installed Xaero Minimap 26.4.2 renders coordinates independently of
`reducedDebugInfo`. Server profiles therefore also enforce:
- Minimap `coords`, `overworld_coords` and `chunk_coords` displays: false.
- World Map `display_coordinates`: false.
- Waypoint coordinate fields: hidden by default.
Source files live under
`nixos/system/neuro/minecraft/wowmine-server-config/xaero/`.
Minecraft's NixOS `preStart` copies them into its configuration directory.
The large `info_display_config` value has its own
`server_profiles/info_display_config/default.cfg.txt` file.
Both profiles enforce `ignore_enforcement_if_edit_permission=false`.
Other client HUD preferences remain local. Boss retains the existing minimap
and World Map access exception, with coordinate displays suppressed too.
These are display controls for the installed clients, not position secrecy.
Clients still receive positions to render the world. Xaero's waypoint editor
also offers a manual show/hide button for coordinate fields. No new client
archive or mod download is needed.
## Verification and operations
Native system:
`/nix/store/7rpz3mij1c049i8risqy1mxmaz6hpps1-nixos-system-neuro-26.05.20261006.b253099`.
Build, transfer, dry activation and native activation succeeded. Only Minecraft
was selected for restart. It reached readiness at 09:11:47 UTC with the same
18443 recipes.
Two actual matching clients were connected to an isolated server. A positive
control showed the other player's overhead name and absolute F3 coordinates.
Applying the real load function removed both. A separate normal HUD capture
showed the visible player without a name or coordinate HUD. Boss's large map
still opened without its coordinate readout. Reapplying the load function
worked with the existing team.
Screenshots under `/tmp/wowmine-visibility/`:
- `origin-human.png`: positive overhead-name control.
- `visible-control-f3.png`: absolute F3 coordinate control.
- `hidden-names-reduced-f3.png`: reduced F3 after policy application.
- `hidden-name-hud.png`: hidden overhead name and minimap coordinate HUD.
- `worldmap-no-coordinates.png`: Boss map access retained.
The live check reads persisted gamerules and scoreboard properties, checks
both server profiles and all three HUD display states, and compares previous
recipe/map rules against their snapshot. The modpack archive remains
`v16-survival-r1` with unchanged SHA-256
`a74f1b121d888247ce0fb8951d21a8c389eecd138f7b1e078430f27c6034261b`.
Previous settings and the old system reference are preserved in neuro's
private `/var/tmp/wowmine-visibility/`; the result is recorded in
`live-integrity.json` there. World identity and previous recipe/map rule files
are preserved. No player inventory, experience, class or game-mode records
were manually rewritten.
Gamerules and teams persist in world data. Reverting service files alone does
not undo those stored values. No project Git commit was created.
+20 -1
View File
@@ -14,7 +14,26 @@ The hectic-lab website, map proxy and game relay are retired. The user chose
to remove its old download URLs without redirects; existing clients must use to remove its old download URLs without redirects; existing clients must use
the canonical neuro updater URL. the canonical neuro updater URL.
## Active client: v16-delight-rules-r2 ## Active client: v17-immersive-portals
Published on2026-11-23 through the canonical neuro HTTPS8443 updater. Source:
`minecraft/pack/wowmine-v17-immersive-portals.mrpack`, SHA-256
`f958597c4bed2da74d3e4c1d52b2773e2292fb9c3d1a4f42ccda76b9c620a9de`.
Immutable pack release:
`e969385695e6baa55961b6e45d5e69b24fc152de8a691df2a71af5c791d9e382`.
Prism ZIP SHA-256:
`78b92397562f5d85616dba11e14642fa6dd10d088f78710b1f1db583befd53e2`.
Adds Immersive Portals CE6.1.3.1 to the previous v16-survival-r1 source; all237
old client JAR hashes remain identical. Fresh installation and actual public
v16-to-v17 upgrade produce238JARs and preserve personal options, DH settings and
minimap configuration. Close Minecraft and relaunch the existing Prism instance
to update. Existing vanilla purple portal fields need relighting; frameless
portals use the built-in Portal Wand/commands. Routes remain Azeroth↔wowmine:void,
scale1:1. See [minecraft-immersive-portals.md](minecraft-immersive-portals.md)
for real-client QA, native deployment and recovery details.
## Previous client: v16-delight-rules-r2
Published on 2026-11-21 to the canonical neuro HTTPS8443 updater. Source: Published on 2026-11-21 to the canonical neuro HTTPS8443 updater. Source:
`minecraft/pack/wowmine-v16-delight-rules-r2.mrpack`, SHA-256 `minecraft/pack/wowmine-v16-delight-rules-r2.mrpack`, SHA-256
+338
View File
@@ -0,0 +1,338 @@
# wowmine recipe audit — 2026-11-21
## Scope and evidence
All 228 live server JAR SHA-256 hashes matched the v16 QA fixture. The audit
covered 18,868 packaged recipe declarations, including embedded JARs and optional
built-in datapacks. Vanilla recipes were also inspected to check conversion
costs. Live filesystem world datapacks contained no recipe JSONs.
These are static findings from recipe JSON, ingredient tags, and the installed
Farmer's Delight implementation. Duplication cycles below are arithmetic proofs
of the declared recipes, not live crafting trials. Runtime-generated recipes,
conditional loading, tag replacement, loot, custom machine behavior, and item
remainders limit completeness. Packaged declarations are not necessarily loaded
recipes. Ordinary raw foods such as sushi, tartare and ceviche, vanilla food
crafting, agriculture, and normal ore processing were not automatically called
exploits.
Fixture JAR names below are audit aliases. Production filenames differ, but
their hashes match. Recipe IDs identify the resources independently of names.
## Initial beef recipe removal
Only `cuttingdelight-dev:cutting/duplicate1` was disabled. Cutting Delight 1.1.1
ships it in `data/cuttingdelight-dev/recipe/cutting/duplicate1.json`:
- Input: one `minecraft:beef`; tool: `#c:tools/knife`.
- Output: one `minecraft:cooked_beef`; no heat.
- Existing `wowmine-rules/pack.mcmeta` now filters that exact resource from
lower-priority packs. No JAR or client release was changed.
- `farmersdelight:cutting/beef`, producing two `farmersdelight:minced_beef`,
and both cutting-board conversion recipes are outside the filter.
NixOS build, closure transfer and activation exited zero. Dry activation changed
only Minecraft. Native profile:
`/nix/store/bzn51xx459gwf7f8akgply0gdchabdmf-nixos-system-neuro-26.05.20261006.b253099`.
Server startup loaded **18,470 recipes**, down from **18,471**, and reached
`Done`. RCON returned `Unknown recipe: cuttingdelight-dev:cutting/duplicate1`.
Live metadata SHA-256 matched source:
`b0c73f88b0d52310ffb574e65637ac0e0a0df179b4cf2a55c8aebaac77f5f8ef`.
An earlier live `/reload` failed and retained old data. Its cause was a duplicate
`mango_compat_delight:cutting/stripped_cinnamon_log` registration in Mango's Compat
Delight. A normal NixOS Minecraft restart applied the filter successfully. The
Mango reload defect remains; it was not changed as part of this removal.
## Selected dismantling corrections
The first table's deterministic over-refunds are corrected through the same
server datapack, under their original `farmerscuttingeverything:cutting/` IDs:
| ID suffix | Corrected return |
| --- | --- |
| `iron_door` | One door -> two iron ingots; exact original material cost. |
| `iron_bars` | One bar -> three iron nuggets; 16 bars return 48 nuggets against a 54-nugget crafting cost. |
| `armor_stand` | One stand -> six sticks and one smooth stone slab; exact cost. |
| `bowl` | Four bowls -> three oak planks; shapeless crafting, exact cost. |
| `firework_rocket` | Three rockets -> one gunpowder; shapeless crafting, paper is lost. |
| `copper_grate`, `exposed_copper_grate`, `weathered_copper_grate`, `oxidized_copper_grate` | One grate -> two copper ingots; four return eight ingots against the cheapest nine-ingot stonecutting route. |
Single-item bowl and rocket cutting cannot express the required fractional
material returns without adding probabilities. Their batch crafting recipes
replace those cutting recipes instead.
The erroneous `honeycomb` self-duplication recipe is filtered; the existing
`honeycomb_block` recipe still returns four honeycombs from one block, exactly
matching its cost. No no-op honeycomb-to-itself recipe is added.
Fortune behavior and `spectral_arrow` are deferred and unchanged. Normal
manufacturing recipes, other audit findings and mod JARs are unchanged. The
tables below document the original audited recipes, not these corrected returns.
The corrected profile was built, copied and activated successfully:
`/nix/store/wk8ffl2jhwmdbpmp66pirvyxzcijl2yc-nixos-system-neuro-26.05.20261006.b253099`.
Only Minecraft was restarted. The server loaded 18,469 recipes and reached
`Done`; none of the nine overrides produced recipe-load errors. Live hashes
of all nine recipe files and `pack.mcmeta` matched the built source. Metadata
SHA-256 is `8b01b777bee79852582e9e6b05bfafb308772b7756856fdf82779b04e0cd5de7`.
Material-budget checks passed for every changed return. These checks verify
JSON, costs, deployment and loading; manual in-game dismantling was not run.
## Rotten flesh fermentation removal — 2026-11-22
The server datapack filters only
`vintagedelight:fermenting/leather_from_fermenting`, supplied by
`vintagedelight-kots-0.3.3.jar`. It converts four rotten flesh into one leather
in a Fermenting Jar, with a base processing time of 4000 ticks.
The exact filter uses namespace `^vintagedelight$` and resource path
`^recipe/fermenting/leather_from_fermenting\.json$`. The previous beef and
honeycomb filters remain intact. The other 196 Vintage Delight recipe
resources are outside this filter; the jar, station, other leather recipes
and client release are unchanged.
Native profile:
`/nix/store/gbzgzm80srgksaq9v3pkrxr7w5w37h0h-nixos-system-neuro-26.05.20261006.b253099`.
Build, copy, dry activation and switch exited zero; only Minecraft restarted.
It reached `Done` at 13:32:51 UTC. Live metadata matches source SHA-256
`be49e0f020988fef98a5d77e1bfe0accbed1446e4ae118417f9224ef854b283b`.
A standalone probe used the installed Minecraft 1.21.1
`MultiPackResourceManager`, the identical Vintage JAR and the before/after
datapacks. The positive control exposed 197 Vintage recipe resources; applying
the new filter exposed 196, excluding exactly the requested resource. The
remaining resource-ID sets were identical. Probe code:
`/tmp/wowmine-leather-filter/ResourceFilterProbe.java`.
The general startup count remained 18442 and was not used as proof of this
specific removal. No players were online for a brewing trial, and no recipe
book, inventory or player-state operations were performed. Activation held
the existing maintenance/backup lock and preserved the old metadata under
neuro's `/var/tmp/wowmine-leather-filter/`.
## Packed and blue ice cutting removal — 2026-11-22
The server datapack now filters all four audited ice-unpacking recipes:
- `farmerscuttingeverything:cutting/packed_ice`
- `farmerscuttingeverything:cutting/blue_ice`
- `extradelight:cutting/packed_ice_axe`
- `extradelight:cutting/blue_ice_axe`
The first pair uses a pickaxe; the second uses an axe. Each unpacked one
packed ice into nine ice, or one blue ice into nine packed ice. These
reverse recipes are disabled; machine freezing/washing recipes, snow
recipes and ordinary ice crafting are unchanged.
Both audited JARs match production SHA-256: Farmer's Cutting Everything
`3c8c9681bc4b7d9f2882d0df3dabdd44cb78c2c4930b4603c8436fbb383e86c4`,
Extra Delight `5a26dcd540efdba068894e27a3b4d5663e29e236aff948215f4919684bb3cffd`.
An installed Minecraft `MultiPackResourceManager` probe compared the
previous and new rules: 724 -> 722 Farmer's Cutting Everything recipe
resources and 2030 -> 2028 Extra Delight resources. Both positive controls
contained their two targets; each resulting resource set equals its
original set minus exactly those targets. Probe:
`/tmp/wowmine-ice-filter/IceFilterProbe.java`.
Native NixOS profile:
`/nix/store/dr2ng9cyag3qadr3lg420brnjfrdllpp-nixos-system-neuro-26.05.20261006.b253099`.
Build, closure copy, dry activation and switch exited zero. Activation held
the existing maintenance/backup lock and restarted Minecraft. Live metadata
SHA-256 matches source:
`0054e20934eb834823f8da0a0a50afca3c3bb55b8f34c7f1e7699d0a0674319c`.
All 14 rules-pack file paths remain; only `pack.mcmeta` changed. Previous
rules are saved at neuro `/var/tmp/wowmine-ice-filter/rules-before/`.
Backup timer is active. No mod/client release or player NBT was edited.
No manual in-game ice-cutting trial was performed.
The historical tables below still show the original recipes, including
already corrected or disabled entries; consult the removal sections above.
## One-string wool cutting — 2026-11-22
The server datapack filters `rusticdelight:wool`, whose cutting recipe uses
`#minecraft:wool` and shears to return two string. The exact resource filter
is namespace `^rusticdelight$`, path `^recipe/wool\.json$`.
All 16 Farmer's Cutting Everything color-specific wool recipes remain:
each returns exactly one string using shears. Rustic Delight's separate
carpet recipe, also returning one string, remains unchanged.
An installed Minecraft `MultiPackResourceManager` probe exposed 282 Rustic
Delight recipe resources before the filter and 281 afterward, excluding
exactly `recipe/wool.json` while retaining `recipe/wool_carpet.json`.
Farmer's Cutting Everything's 722 resources were identical before and after;
the probe parsed all 16 wool outputs and verified one string per recipe.
Production Rustic Delight SHA-256 matches the probe fixture:
`ad3d796132984a8d06184d7c9543d6f8b87df4dac33a5dd9b8f124e95afe6801`.
Probe: `/tmp/wowmine-wool-filter/WoolFilterProbe.java`.
Native NixOS profile:
`/nix/store/p03f64gvyg48jpwgck1kj24ssrf7qnwr-nixos-system-neuro-26.05.20261006.b253099`.
Build, copy, dry activation and switch exited zero. Activation held the
existing maintenance/backup lock and restarted Minecraft. All 14 rules-pack
file paths remain; only `pack.mcmeta` changed. Live/source metadata SHA-256:
`02d10042f637d43fba1c1e282a4bed68246a509a888d0ccc50a4d9448ee9498d`.
Prior rules are saved at neuro `/var/tmp/wowmine-wool-filter/rules-before/`;
backup timer is active. No mod/client release or player NBT was edited.
No manual in-game wool-cutting trial was performed.
Scope is the reported cutting-board conflict. Inspection also found
`create:milling/wool` (one string), `create:crushing/wool` (two string plus
a 50% third), and `minecraft:string` from Peruvian's Delight (four string).
Those machine/crafting routes are unchanged; broader scope was asked about
separately and had no answer when this change was applied.
## Direct duplication and mismatched conversion ratios
Unless noted, cutting IDs have prefix `farmerscuttingeverything:cutting/` and
come from `farmers-cutting-everything.jar`. Cutting consumes one ordinary tool
durability per operation; this cost does not correct the material ratios.
| Cutting ID suffix | Input and output | Loop or issue |
| --- | --- | --- |
| `honeycomb` | 1 honeycomb -> 4 honeycomb; knife | Direct self-duplication. |
| `iron_door` | 1 iron door -> 6 iron doors; pickaxe | Direct self-duplication; output really is doors. |
| `iron_bars` | 1 bar -> 5 iron nuggets; pickaxe | Vanilla `minecraft:iron_bars`: 6 ingots -> 16 bars. 54 nuggets become 80. |
| `armor_stand` | Stand -> 7 sticks + smooth stone slab; axe | Vanilla stand costs 6 sticks + same slab. Gain one stick. |
| `bowl` | Bowl -> oak plank; axe | Vanilla `minecraft:bowl`: 3 planks -> 4 bowls. 3 oak planks become 4. |
| `firework_rocket` | Rocket -> paper + guaranteed gunpowder + another gunpowder at 75%; knife | Vanilla `minecraft:firework_rocket_simple`: paper + gunpowder -> 3 rockets. At least triple both inputs. |
| `copper_grate` | Grate -> copper block; pickaxe | Vanilla `minecraft:copper_grate_from_copper_block_stonecutting`: block -> 4 grates. Fourfold copper. |
| `exposed_copper_grate` | Grate -> exposed copper block; pickaxe | Same cycle using `minecraft:exposed_copper_grate_from_exposed_copper_stonecutting`. |
| `weathered_copper_grate` | Grate -> weathered copper block; pickaxe | Same cycle using `minecraft:weathered_copper_grate_from_weathered_copper_stonecutting`. |
| `oxidized_copper_grate` | Grate -> oxidized copper block; pickaxe | Same cycle using `minecraft:oxidized_copper_grate_from_oxidized_copper_stonecutting`. |
| `spectral_arrow` | Arrow -> 2 glowstone dust + arrow at 95%; axe | Vanilla recipe: 4 dust + arrow -> 2 spectral arrows. Fortune I guarantees arrow recovery: retain dust, double arrows. |
Additional cross-mod cycles:
| Mod / exact IDs | Cycle |
| --- | --- |
| Ramadan Delight: `ramadandelight:stonecutting/mosaic_tiles` or `ramadandelight:mosaic_tiles`, then `ramadandelight:cutting/cutting/calcite_from_mosaic_tiles` | One calcite becomes one tile; one tile returns four calcite with a pickaxe. Fourfold gain. |
| Immortalers Delight: `immortalers_delight:sniffer_fur_half_tatami_mat`, then `immortalers_delight:sniffer_fur_full_tatami_mat2` | One full mat -> two half mats -> two full mats. No tool or machine required. |
| Ice conversions listed below | Ninefold gain per packing/unpacking tier. |
| DnDesires `dndesires:freezing/snow_block_from_snowball`, then Farmer's Cutting Everything `farmerscuttingeverything:cutting/snow_block` | One snowball -> one snow block -> four snowballs; shovel required for cutting. |
Every combination of a forward and reverse recipe in each following row
produces the indicated amplification:
| Tier | Forward: one item -> one compressed item | Reverse: one compressed item -> nine inputs |
| --- | --- | --- |
| Ice -> packed ice | `create:splashing/ice`; `dndesires:freezing/packed_ice_from_ice`; `create_dragons_plus:freezing/packed_ice_from_ice` | `farmerscuttingeverything:cutting/packed_ice` (pickaxe); `extradelight:cutting/packed_ice_axe` (axe) |
| Packed ice -> blue ice | `create_ultimate_factory:splashing_packed_ice`; `dndesires:freezing/blue_ice_from_packed_ice`; `create_dragons_plus:freezing/blue_ice_from_packed_ice` | `farmerscuttingeverything:cutting/blue_ice` (pickaxe); `extradelight:cutting/blue_ice_axe` (axe) |
Create, DnDesires and Create Dragons Plus require their processing machinery.
These are cross-mod ratio mismatches, not instantaneous crafting-only loops.
## Probabilistic salvage amplification
All cutting IDs here have prefix `farmerscuttingeverything:cutting/`.
Installed FD config sets `cuttingBoardFortuneBonus = 0.1`: Fortune adds
0.1 per level to result probability, with effective cap 100%. Probability
applies per output item. Expected values below use Fortune III.
| Suffix | Cost of crafting one batch | Expected recovered batch |
| --- | --- | --- |
| `activator_rail` | 6 iron + 2 sticks + redstone torch -> 6 rails | 6 iron, 3.9 sticks, 2.7 torches |
| `detector_rail` | 6 iron + stone pressure plate + redstone -> 6 rails | 6 iron, 2.7 plates, 2.7 redstone |
| `powered_rail` | 6 gold + stick + redstone -> 6 rails | 6 gold, 2.7 sticks, 2.7 redstone |
| `rail` | 6 iron + stick -> 16 rails | 8 iron, 16 sticks |
| `andesite` | Diorite + cobblestone -> 2 andesite | 1.6 diorite, 2 cobblestone |
| `coarse_dirt` | 2 dirt + 2 gravel -> 4 coarse dirt | 4 dirt, 3.2 gravel |
| `arrow` | Flint + stick + feather -> 4 arrows | 2.2 flint, 4 sticks, 2.2 feathers |
| `torch` | Coal + stick -> 4 torches | 2.2 coal, 4 sticks |
| `soul_torch` | Coal + stick + soul sand -> 4 torches | 2.2 coal, 4 sticks, 2.2 soul sand |
| `tripwire_hook` | Iron + stick + oak plank -> 2 hooks | 1.6 iron, 2 sticks, 2 oak planks |
| `fire_charge` | Gunpowder + blaze powder + coal -> 3 charges | 1.89 gunpowder, 1.89 blaze powder, 3 coal |
| `lead` | 4 string + slime ball -> 2 leads | 4 string, 1.6 slime balls |
| `scaffolding` | 6 bamboo + string -> 6 scaffolding | 6 bamboo, 2.52 string |
| `tinted_glass` | 4 amethyst shards + glass -> 2 tinted glass | 4 shards, 1.6 glass |
All counterpart crafting IDs are `minecraft:<suffix>`. Scaffolding also has
`mynethersdelight:crafting/scaffolding_alt`, whose bamboo/string alternatives
reach the same cycle. Pickaxe is required except shovel for coarse dirt, axe
for arrows/torches/soul torches/scaffolding, and knife for leads.
Even without Fortune, andesite, arrows, coarse dirt, torches, soul torches and
tripwire hooks return their consumed resources in expectation plus surplus
other material. Expected-value cycles can fail individual batches; they are
not guaranteed perpetual loops from a tiny starting stock.
## Strong resource conversions and balance choices
These are not all bugs. Some intentionally add resource-production routes.
| Source / recipe ID | Exact conversion and qualification |
| --- | --- |
| Farmer's Cutting Everything `farmerscuttingeverything:cutting/copper_bulb` | Vanilla crafting spends 3 copper blocks + blaze rod + redstone for 4 bulbs. Cutting returns 4 copper blocks, expected 1 redstone and 2 blaze powder without Fortune. Gains copper but spends fuel material and tool wear. |
| Same: `cutting/exposed_copper_bulb`, `cutting/weathered_copper_bulb`, `cutting/oxidized_copper_bulb` | Each aged bulb also returns the corresponding full copper block, redstone at 25%, blaze powder at 50%. |
| Same: `cutting/nether_gold_ore` | Nether gold ore + pickaxe -> 2 gold nuggets, another 4 nuggets at 75%, 2 gold ingots at 50%, netherrack at 25%; no smelting. |
| Same: `cutting/bell` | Bell + pickaxe -> stick + gold block. Strong trade/loot-to-gold conversion. |
| Same: `cutting/enchanted_golden_apple` | Enchanted golden apple + pickaxe -> apple + 8 gold blocks. Consumes valuable food. |
| Same: `cutting/trident` | Trident + pickaxe -> stick, 3 prismarine shards at 50%, heart of sea at 10%. |
| Same: `cutting/nether_star` | Nether star, using clock -> 3 wither-skeleton skulls. Consumes star and permits another Wither fight. |
| Same: `cutting/campfire` | Campfire + axe -> 3 sticks, guaranteed charcoal, 2 more charcoal at 50%, another at 25%. No heating operation. |
| DnDesires `dndesires:seething/magma_block_from_netherrack` + FCE `farmerscuttingeverything:cutting/magma_block` | One netherrack -> magma block -> 2 magma cream + two netherrack rolls at 75% each. Fortune III guarantees both: net gain one netherrack and two cream. Requires seething setup and pickaxe wear. |
| DnDesires `dndesires:seething/diamond_shard_from_coal_block` | Coal block -> diamond shard at 25%; 4 shards -> diamond via `dndesires:crafting/diamond_from_diamond_shard`. Expected 16 coal blocks per diamond; seething required. |
| DnDesires `dndesires:seething/diamond_shard_from_deepslate_coal_ore` | Deepslate coal ore -> diamond shard at 75%; expected 5 1/3 ore per diamond. |
| Create Ultimate Factory `create_ultimate_factory:crushing_netherite` | Nether-bricks block -> nether brick, another at 25%, netherite scrap at 0.5%; crushing time 350. Expected 200 consumed blocks per scrap. |
| Same: `create_ultimate_factory:crushing_blackstone` | Blackstone -> wither-skeleton skull at 1%, blackstone returned at 25%; condition requires absent `wstweaks`. |
| Same: `create_ultimate_factory:crushing_coral` | Coral-tag item -> heart of sea at 1%; crushing time 250. |
| Same: `create_ultimate_factory:compacting_coalblock` | 9 coal blocks + 100 mB lava -> diamond at 30%; heated compacting. Expected 270 coal per diamond. |
| Create New Age `create_new_age:sequenced_assembly/enchanted_golden_apple` | Apple + total 8 gold blocks + 8,000,000 energy -> enchanted golden apple. Not an apple-only recipe. |
| Apothic Enchanting `apothic_enchanting:infusion/echo_shard` | Echo shard -> 4 shards through advanced enchanting; Eterna 70, Quanta 50, Arcana 50 required. Intended gated infusion. |
| Same: `apothic_enchanting:infusion/carrot` | Carrot -> golden carrot through enchanting; Eterna 20, Quanta 10–30. |
| Iron's Spellbooks `irons_spellbooks:ancient_debris_from_pyrium` | Pyrium ingot -> 5 ancient debris. No cheap pyrium-producing recipe was established. |
DnDesires seething is not heatless crafting: its implementation requires
seething catalysts and the appropriate heated setup. Ordinary Create washing
of crushed metals is intended timed machinery processing and was not counted
as a cutting-board exploit.
## Food preparation without heat
These are the full food candidates found by the instant-processing checks.
They include possible mistakes and deliberate recipe abstractions; they are
not all equivalent to raw beef becoming a cooked steak.
| Source / recipe ID | Input -> output |
| --- | --- |
| Fast Delights `fastdelights:bacon_cheeseburger` | 2 buns + **raw FD bacon** + cooked beef patty + flaxen cheese wedge + sliced pickles -> bacon cheeseburger |
| Same: `fastdelights:chicken_bacon_cheeseburger` | 2 buns + **raw FD bacon** + chicken patty + cheese wedge + sliced pickles -> chicken bacon cheeseburger |
| Same: `fastdelights:crafting/bacon_cheeseburger_from_cheeseburger` | Cheeseburger + **raw FD bacon** -> bacon cheeseburger |
| Same: `fastdelights:crafting/chicken_n_cheeseburger_from_cheeseburger` | Chicken-and-cheese burger + **raw FD bacon** -> chicken bacon cheeseburger |
| Hearth and Harvest `hearthandharvest:meat_pizza` | 3 raw-meat-tag items + 3 cheese + 2 FD wheat dough + tomato sauce -> meat pizza |
| Same: `hearthandharvest:meat_pizza_from_cheese_pizza` | 3 raw-meat-tag items + cheese pizza -> meat pizza |
| Same: `hearthandharvest:pizza` | Raw meat + vegetable + mushroom + 3 cheese + 2 dough + tomato sauce -> pizza |
| Same: `hearthandharvest:pizza_from_cheese_pizza` | Raw meat + vegetable + mushroom + cheese pizza -> pizza |
| Slavic Delight `slavic_delight:crab_sticks` | Minced cod + red dye -> crab sticks |
| Roll Delight `roll_delight:nether_roll_recipe` | 2 raw porkchops + cooked nether wart -> 2 nether rolls |
| Valheim Delight `valheim_delight:fish_wrap_crafting` | Bread + safe-raw-fish-tag item + cabbage + onion -> fish wrap |
| Same: `valheim_delight:jerky_recipe` | Raw-meat-tag item + onion + honey bottle -> 3 jerky |
| Arbitrary Delight `arbitrarydelight:cutting/pepperonis` | FD minced beef + knife -> 2 pepperoni |
| Baldej Delights `baldejdelights:crafting/egg_barbecue` | Stick + 2 eggs -> egg barbecue |
Raw-meat and raw-fish tags admit multiple installed ingredients; these rows
represent each recipe with all its tag alternatives, not only beef or cod.
The four bacon recipes are especially plausible wrong-ingredient errors.
Pizzas bypass baking. Cured meat and raw-fish wraps may be intentional.
## Packaged examples and cases not established as usable
- `cutt_promix:ex`, in legacy `data/cutt_promix/recipes/ex.json`:
cabbage + knife -> 2 raw gold, plus 2 wheat seeds at 50%. It uses the old
plural directory, an unresolved knife tag and an obsolete result encoding.
No evidence established this as an active 1.21.1 recipe.
- YAFDA contributes optional raw empowered-meat/venison slices to the cooked-meat
tag. This could affect `farmersdelight:barbecue_stick` and
`vintagedelight:meat_pizza`, but availability of those optional meat items was
not established; relevant base mods are absent.
- `farmers_spell:cutting/mithril_scrap`: mithril cheese -> 4 mithril scraps.
Its source recipe already spends 4 scraps + foodgeist cheese, so this refunds
a paid material rather than generating mithril.
- Golden apple cutting refunds its normal eight gold ingots; golden carrot
cutting refunds its normal eight nuggets. These are not free-gold cycles.
- No definite zero-input recipe was found. Empty crafting declarations examined
were explicitly disabled or produced air. No cheap diamond/netherite/emerald
self-amplification or over-refunding diamond/netherite armor dismantling was
established by the checks.
+69
View File
@@ -0,0 +1,69 @@
# wowmine respawn and Overworld access
The server-only `wowmine-world-policy` mod is built from source by Nix and
installed by the Minecraft service's `preStart`. Clients need no additional
mod. It targets Minecraft 1.21.1 and NeoForge 21.1.250.
Valid beds keep their normal respawn behavior. Missing or destroyed beds
fall back to Azeroth at `3742.5 89 8891.5`, matching the existing first-join
spawn. Login records and player dimension transfers targeting the Overworld
also resolve to this Azeroth spawn. Nether portals returning from the Nether
resolve their destination in Azeroth, preserving portal coordinate scaling.
Other dimension destinations remain unchanged.
The Overworld stays registered because Minecraft requires it internally.
This policy prevents normal player entry; it does not delete world files or
unregister the engine dimension.
## Why the race could disappear after a destroyed bed
Production tests on November 22, 2026 confirmed that valid-bed deaths kept
Tiny's scale at 0.5. Destroying the bed caused vanilla fallback to the
Overworld and scale 1.0, despite the saved Tiny selection remaining intact.
Reconnecting restored the abilities.
The Overworld's shared spawn, at `3742 89 8891`, is above ocean water.
An isolated reproduction with the same 227 mod JARs traced the failure:
1. `PlayerList.respawn` constructs the replacement `ServerPlayer`.
2. Its constructor searches for a collision-free spawn over water.
3. NeoOrigins' fluid-collision hook queries `ActiveOriginService` before the
old player's origin attachment has been copied.
4. The resulting empty cache has data version 0. The copied, serialized
attachment also has version 0, so the cache remains valid even though the
origin selection changed from empty to populated.
5. The respawn grant sees no powers. Later cache rebuilding does not grant
the missing permanent attribute modifiers; login does.
The world policy selects Azeroth in `PlayerRespawnPositionEvent`, before
Minecraft constructs the replacement player. This avoids the ocean spawn
initialization path. It does not reset races or repeatedly rewrite player
attributes.
## Verification
Use a disposable matching server and real client, never production test
deaths or player-data edits. The regression fixture needs water beneath the
Overworld spawn; an ordinary flat-world spawn does not expose the cache bug.
Load the selected race from a saved player record rather than selecting it
again before each death.
Checks exercised during development:
- A real bed click saves the Azeroth point; death returns beside that bed.
- Death in the Nether with the bed chunk unloaded still returns to the bed.
- A destroyed bed without the policy reproduces Overworld fallback, an
unchanged Tiny selection, an empty power cache, and scale 1.0.
- Missing-bed fallback with the policy selects the Azeroth spawn.
- With the ocean fixture unchanged, two consecutive missing-bed deaths with
the policy retain Tiny's scale 0.5 and resolved powers. Disconnecting and
rejoining preserves the race, class, background, and Azeroth location.
- A saved Overworld login and an explicit Overworld teleport resolve to
Azeroth.
- A real Nether return portal resolves in Azeroth.
- Outland and End entry remain available; a real End exit portal and its
credits return to the selected Azeroth bed.
The production artifact is compiled against the pinned NeoForge server SDK.
Its class files were compared with the runtime-tested prototype. NixOS
activation must use the existing Minecraft maintenance/backup lock.
+65
View File
@@ -0,0 +1,65 @@
# wowmine sleep
The server installs Sleep Time Skip 1.1.0 for NeoForge 1.21.1 from a pinned
CurseForge artifact. Clients need no additional mod.
`wowmine-rules` sets `playersSleepingPercentage` to 100, so all players
counted by Minecraft's sleep rules must sleep. The normal bed and
monster-proximity checks remain.
Azeroth uses Minecraft's shared world clock through `DerivedLevelData`.
That wrapper reads the clock but ignores `setDayTime`, so ordinary sleep
could wake players without advancing the night. The server's world-policy
mod forwards Azeroth's time writes to the shared clock. Respawn and dimension
access behavior remain unchanged.
Sleep Time Skip measures the time change before players wake and queues
catch-up work in the dimension where they slept. Its defaults cover animal
aging, breeding cooldowns, chicken eggs, random block ticks, and selected
machines: furnaces, blast furnaces, smokers, brewing stands, campfires, and
hoppers. Furnaces use their actual tickers, inputs, and fuel.
Only active chunks receive catch-up. The declarative configuration explicitly
allows stationary Create millstones, saws, mechanical presses, depots, mixers,
basins, creative motors and basic shafts/cogwheels. This covers processing
through depots and unheated basin mixing, not universal Create simulation.
Moving contraptions, trains, loose-item physics, belt/funnel networks and
crushing wheels are outside this selected set. Existing machine speed, power,
recipe filters and inventory limits still apply; bulk cutting and pressing
remain disabled.
Simulation is budgeted across server ticks, so some results can appear
shortly after waking. The default cap is 24,000 simulated ticks per skip.
Runtime settings come from the NixOS-managed
`wowmine-server-config/sleeptimeskip-common.toml` and are installed at
`config/sleeptimeskip-common.toml`.
The default 10 ms budget per server tick and two-chunk immediate radius are
retained; the server does not globally accelerate entity AI or player combat.
Verification used a real client sleeping in Azeroth with the matching mod
set. Dawn advanced from 13,000 to 24,003 while only 107 ordinary server ticks
passed. A calf's age advanced by 11,003 ticks. A furnace smelted 55 iron
ingots from 64 ore, consuming seven coal; both dimensions reported identical
shared clocks. No production player was used as a test fixture.
Create integration uses real blocks, physical creative-motor power, the
installed recipe manager and actual inventories on a disposable matching
server. It invokes the public `SleepHook.markSkip(level, 11000)` entry used by
the wake hook and lets the normal simulation job run; it does not call machine
tickers or recipe application itself. The real-client bed/clock test above
covers that unchanged entry path. Vanilla-only and Create-enabled runs use
clean worlds and a 30-ordinary-tick observation window, with recipe choices
made explicit where addons offer multiple outputs.
With Create types enabled, all four fixtures completed after two ordinary
ticks: 64 cobblestone became 64 gravel, one andesite alloy became six shafts
on a depot, one iron ingot became one sheet on a depot, and a basin's andesite
plus iron nugget became one alloy. The vanilla furnace simultaneously produced
55 ingots using seven coal, and the calf aged by 11,002 ticks. With the same
inputs, speeds and filters but the vanilla-only list, 30 ordinary ticks
produced one gravel and no Create saw/press/mixer output.
The test copy once failed before world startup with a Pufferfish's Skills
`RewardRegistry.register` / `HashMap.compute` concurrent-modification error.
Its loader was serialized for QA (`fml.toml maxThreads=1`); that test-only
change is not part of the production configuration.
+96
View File
@@ -0,0 +1,96 @@
# wowmine v16 survival revision
Deployed on neuro on November 22, 2026 after approval to remove Afterlife's
Delight and restart Minecraft.
Subsequent overhead-name and coordinate-display rules are documented in
[minecraft-player-visibility.md](minecraft-player-visibility.md).
## Release
- Version: `v16-survival-r1`.
- Source: `minecraft/pack/wowmine-v16-survival-r1.mrpack`.
- Source SHA-256: `a74f1b121d888247ce0fb8951d21a8c389eecd138f7b1e078430f27c6034261b`.
- NixOS system: `/nix/store/l0x0bys8y8w6y88x3b9c8mh244h48b3k-nixos-system-neuro-26.05.20261006.b253099`.
- Public packwiz release: `037c3b3cefef2bdb57bc8c3bd73fe1ae71b63a024d175b262860a9cba30818a7`.
- Prism ZIP SHA-256: `cb7ff5ca7ffac63f54af36cfd448e2c7a790c959d413d0b0e775c344bef2358f`.
- Minecraft 1.21.1 and NeoForge 21.1.250 remain unchanged.
The source removes exactly `mods/afterlifes_delight-1.1.2.jar` from
`v16-delight-rules-r2`. Every other downloaded-file entry and override payload
remains identical, except client version metadata. There are 227 server JARs
and 237 client JARs. Other installed mod metadata declares no dependency on
Afterlife's Delight. Existing source archives and updater releases remain
available.
## Cause and player state
Installed Afterlife's Delight 1.1.2 bytecode confirms that
`GhostEvents.onConfirmedLivingDeath` records ordinary player deaths when
HardcoreLite is absent. Vanilla `hardcore=false` does not disable this
handler. Its configuration provides no global switch.
The mod persists `ghost_data` and `ghost_visual_state` under
`neoforge:attachments`, using the `afterlifes_delight` namespace. The optional
`ghost` field defaults to false. Its creative-flight attribute modifier is
transient. Resurrection through the mod's food calls `GhostManager`,
clearing ghost state and restoring flight and collision behavior.
After the approved cold stop, all five saved players already had no active
ghost state, pending resurrection food, gravity override or ghost-flight
modifier. Four players were in survival; the existing creative player kept
creative mode. No player NBT edits, inventory resets, teleports or game-mode
changes were needed. All 20 original player, statistics and advancement
records retained their exact SHA-256 values after activation.
Afterlife owns no corpse entity or corpse inventory. Its Sable and Gravestone
hooks restrict interaction; they do not own ordinary equipment. Corpses,
graves, other mod attachments and `.sable` data were not deleted.
Removing the mod also removes its 22 item IDs: pestles, ingredients, stews,
pie slices and pies, plus four placed pie block IDs. These removed items can
be discarded when inventories or containers load. The full original world
was backed up before activation.
## Backup and verification
Cold backup:
`/srv/minecraft/backups/wowMineMap-before-v16-survival-r1-20261122`.
Its private `sha256.json` covers 9331 files, each checked against the stopped
source. World, player data, mods, configuration, access records and importer
cache are included. The generated credential-bearing `server.properties`
was excluded; NixOS retains its declaration. Scheduled backups resumed after
server readiness and integrity checks.
Verified:
- Native NixOS build and closure transfer succeeded.
- Importer completed successfully; all 227 live JAR hashes match the pinned
archive. Only the Afterlife JAR was removed from the previous inventory.
- Minecraft reached `Done` and loaded 18443 recipes, 26 fewer than before.
- All 7235 original region files remain. World name, seed, spawn and
`hardcore=false` match the cold backup.
- All 13 `wowmine-rules` files match the backup, preserving recipe fixes and
Boss map restrictions. RCON reports `mobGriefing=true`.
- Distant Horizons identities remain `wos` and `wos-w1`.
- A disposable server without the mod booted and stopped successfully.
- Actual Java packwiz fresh and v16 upgrade runs installed 237 client JARs,
removed Afterlife and preserved personal options, DH and minimap settings.
- A separate v16 instance upgraded through the published HTTPS endpoint:
237 JARs, Afterlife removed and all three personal settings files preserved.
- RCON's selector for connected players with `ghost:1b` found no matches.
Evidence: neuro `/var/tmp/wowmine-survival/live-integrity.json`,
`cold-state.json`, `players-before.json` and `backup-complete.json`;
workstation `/tmp/wowmine-survival/`.
No graphical client session or in-game death/respawn trial was performed
for this revision. Removal of the owning JAR removes its death handlers;
saved player checks cover all five existing players.
NixOS activation returned status 4 because the pre-existing
`ollama-model-loader.service` could not complete TLS connections to its
registry. Its failures predate this activation. The Minecraft importer and
Minecraft service both report success. Existing upstream optional
recipe/loot warnings and the Mango's Compat `/reload` defect remain outside
this change; this deployment used a restart.
+36
View File
@@ -0,0 +1,36 @@
# Void portals
The rules datapack registers `wowmine:void`: an empty flat generator with no
layers, lakes, features or structures and the vanilla Overworld dimension type.
It has ordinary daylight, water and working beds. Its shared sleep clock is
forwarded to the same clock used by Azeroth.
World Policy1.0.2 routes Nether portals to this dimension and returns from it
to `crafting_azeroth:azeroth`. All three vanilla Nether-key reads inside
`NetherPortalBlock.getPortalDestination` are redirected: source detection,
destination selection and portal search mode. The existing Overworld-key
redirect to Azeroth remains.
`PortalIgnitionMixin` also permits the vanilla fire/portal checks in Azeroth
and the void. Without this, vanilla only ignites frames in Overworld/Nether;
testing a directly created portal would miss this boundary.
Coordinates use scale1:1. Vanilla portal search and construction remain in
charge, including their small obsidian support in an otherwise empty world.
Existing portals in Azeroth may be used. The old Nether remains registered
and its files are retained; End and Outland are not replaced.
This change requires a server restart for dimension registration and a server
policy update. No client mod update is required.
Isolated matching-server QA passed real portal-triggered cow travel from Azeroth
to the void and back, and both ServerPlayer destination APIs. The generated
portal had solid obsidian support and clear exits; its24non-air blocks did not
grow on reuse. A distant chunk was entirely air, used the void biome and had
no structures. The original Nether type remained registered. Actual client
crossing was not run.
The final run also ignited ordinary frames by vanilla fire placement in both
Azeroth and the void. This check failed on the artifact without the ignition
mixin, then passed with it; both real entity crossings and player destination
APIs still passed.
View File
View File
@@ -41,6 +41,16 @@ let
trap '${restore name server}' EXIT trap '${restore name server}' EXIT
unit=${lib.escapeShellArg server.service} unit=${lib.escapeShellArg server.service}
if ${pkgs.systemd}/bin/systemctl is-active --quiet "$unit"; then if ${pkgs.systemd}/bin/systemctl is-active --quiet "$unit"; then
${lib.optionalString (server.announcementCommand != null) ''
${lib.escapeShellArg (toString server.announcementCommand)} \
"[Backup] Server will stop for backup in 5 minutes."
${pkgs.coreutils}/bin/sleep 240
${lib.escapeShellArg (toString server.announcementCommand)} \
"[Backup] Server will stop for backup in 1 minute."
${pkgs.coreutils}/bin/sleep 60
${lib.escapeShellArg (toString server.announcementCommand)} \
"[Backup] Server is stopping now to save a backup."
''}
${pkgs.coreutils}/bin/touch "$state_dir/restart-needed" ${pkgs.coreutils}/bin/touch "$state_dir/restart-needed"
${pkgs.systemd}/bin/systemctl stop "$unit" ${pkgs.systemd}/bin/systemctl stop "$unit"
if [ "$(${pkgs.systemd}/bin/systemctl show "$unit" -p Result --value)" != success ]; then if [ "$(${pkgs.systemd}/bin/systemctl show "$unit" -p Result --value)" != success ]; then
@@ -108,6 +118,11 @@ in {
enable = lib.mkOption { type = lib.types.bool; default = true; }; enable = lib.mkOption { type = lib.types.bool; default = true; };
service = lib.mkOption { type = lib.types.str; }; service = lib.mkOption { type = lib.types.str; };
directory = lib.mkOption { type = lib.types.str; }; directory = lib.mkOption { type = lib.types.str; };
announcementCommand = lib.mkOption {
type = lib.types.nullOr lib.types.path;
default = null;
description = "Executable receiving one chat message argument. Enables warnings five minutes, one minute and immediately before stopping an active server.";
};
exclude = lib.mkOption { exclude = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
default = [ default = [
@@ -0,0 +1,11 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:armor_stand" }
],
"result": [
{ "item": { "count": 6, "id": "minecraft:stick" } },
{ "item": { "count": 1, "id": "minecraft:smooth_stone_slab" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "axe_dig" }
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{ "item": "minecraft:bowl" },
{ "item": "minecraft:bowl" },
{ "item": "minecraft:bowl" },
{ "item": "minecraft:bowl" }
],
"result": { "count": 3, "id": "minecraft:oak_planks" }
}
@@ -0,0 +1,10 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:copper_grate" }
],
"result": [
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
}
@@ -0,0 +1,10 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:exposed_copper_grate" }
],
"result": [
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
}
@@ -0,0 +1,10 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{ "item": "minecraft:firework_rocket" },
{ "item": "minecraft:firework_rocket" },
{ "item": "minecraft:firework_rocket" }
],
"result": { "count": 1, "id": "minecraft:gunpowder" }
}
@@ -0,0 +1,10 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:iron_bars" }
],
"result": [
{ "item": { "count": 3, "id": "minecraft:iron_nugget" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
}
@@ -0,0 +1,10 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:iron_door" }
],
"result": [
{ "item": { "count": 2, "id": "minecraft:iron_ingot" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
}
@@ -0,0 +1,10 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:oxidized_copper_grate" }
],
"result": [
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
}
@@ -0,0 +1,10 @@
{
"type": "farmersdelight:cutting",
"ingredients": [
{ "item": "minecraft:weathered_copper_grate" }
],
"result": [
{ "item": { "count": 2, "id": "minecraft:copper_ingot" } }
],
"tool": { "type": "farmersdelight:item_ability", "action": "pickaxe_dig" }
}
@@ -0,0 +1,13 @@
{
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:flat",
"settings": {
"biome": "minecraft:the_void",
"features": false,
"lakes": false,
"layers": [],
"structure_overrides": []
}
}
}
@@ -1,2 +1,9 @@
gamerule mobGriefing true gamerule mobGriefing true
gamerule reducedDebugInfo true
gamerule playersSleepingPercentage 100
team add wowmine_hidden
team modify wowmine_hidden nametagVisibility never
team modify wowmine_hidden friendlyFire true
team modify wowmine_hidden seeFriendlyInvisibles false
function wowmine_rules:player_visibility
function wowmine_rules:minimap_policy function wowmine_rules:minimap_policy
@@ -0,0 +1,3 @@
# Keep new players' overhead names hidden without moving existing team members.
team join wowmine_hidden @a[team=]
schedule function wowmine_rules:player_visibility 1t replace
@@ -1,6 +1,38 @@
{ {
"pack": { "pack": {
"pack_format": 48, "pack_format": 48,
"description": "wowmine: minimap access and mob griefing rules" "description": "wowmine: map access, mob griefing and recipe rules"
},
"filter": {
"block": [
{
"namespace": "cuttingdelight-dev",
"path": "recipe/cutting/duplicate1\\.json"
},
{
"namespace": "^farmerscuttingeverything$",
"path": "^recipe/cutting/honeycomb\\.json$"
},
{
"namespace": "^vintagedelight$",
"path": "^recipe/fermenting/leather_from_fermenting\\.json$"
},
{
"namespace": "^farmerscuttingeverything$",
"path": "^recipe/cutting/(packed_ice|blue_ice)\\.json$"
},
{
"namespace": "^extradelight$",
"path": "^recipe/cutting/(packed_ice|blue_ice)_axe\\.json$"
},
{
"namespace": "^rusticdelight$",
"path": "^recipe/wool\\.json$"
},
{
"namespace": "^craftable_loot_chests$",
"path": "^recipe/recipe_sealed_.*\\.json$"
}
]
} }
} }
@@ -0,0 +1,5 @@
{
"netherPortalMode": "normal",
"lightVanillaNetherPortalWhenCrouching": false,
"endPortalMode": "vanilla"
}
@@ -0,0 +1,40 @@
enabled = true
maxSimulatedTicks = 24000
notifyPlayers = true
[performance]
immediateChunkRadius = 2
budgetMsPerTick = 10
[blocks]
simulateRandomTicks = true
simulateFluidRandomTicks = false
simulateFreezing = true
[blockEntities]
simulateBlockEntities = true
tickAllBlockEntities = false
types = [
"minecraft:furnace",
"minecraft:blast_furnace",
"minecraft:smoker",
"minecraft:brewing_stand",
"minecraft:campfire",
"minecraft:hopper",
"create:millstone",
"create:motor",
"create:saw",
"create:mechanical_press",
"create:depot",
"create:mechanical_mixer",
"create:basin",
"create:simple_kinetic",
]
[minecarts]
simulateMinecarts = true
maxMinecarts = 32
[mobs]
simulateAging = true
simulateChickenEggs = true
@@ -0,0 +1,4 @@
profile_name = Default
ignore_enforcement_if_edit_permission = false
hide_waypoint_coordinates = true
info_display_config = This option's value is saved to sub-folder "info_display_config".
@@ -0,0 +1,4 @@
infoDisplayOrder:coords:overworld_coords:chunk_coords
infoDisplay:coords:false:-:-
infoDisplay:overworld_coords:false:-:-
infoDisplay:chunk_coords:false:-:-
@@ -0,0 +1,3 @@
profile_name = Default
ignore_enforcement_if_edit_permission = false
display_coordinates = false
@@ -0,0 +1,29 @@
{ pkgs, server, immersivePortals }:
pkgs.stdenvNoCC.mkDerivation {
pname = "wowmine-world-policy";
version = "1.1.0";
src = ./.;
nativeBuildInputs = [ pkgs.jdk21_headless pkgs.unzip ];
buildPhase = ''
runHook preBuild
mkdir -p classes sdk
neo="${server}/libraries/net/neoforged/neoforge/21.1.250"
unzip -q "$neo/neoforge-21.1.250-universal.jar" \
'META-INF/jarjar/mixinextras-neoforge-*.jar' -d sdk
classpath="$neo/neoforge-21.1.250-server.jar:${immersivePortals}"
for dependency in $(find sdk ${server}/libraries -name '*.jar' | sort); do
classpath="$classpath:$dependency"
done
javac -proc:none --release 21 -classpath "$classpath" \
-d classes $(find src -name '*.java' | sort)
jar --create --file wowmine-world-policy.jar \
--date=2026-11-22T00:00:00Z -C classes . -C resources .
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm444 wowmine-world-policy.jar "$out/share/java/wowmine-world-policy.jar"
runHook postInstall
'';
}
@@ -0,0 +1,33 @@
modLoader="javafml"
loaderVersion="[4,)"
license="All Rights Reserved"
[[mods]]
modId="wowmine_world_policy"
version="1.1.0"
displayName="wowmine World Policy"
displayTest="IGNORE_ALL_VERSION"
[[mixins]]
config="wowmine_world_policy.mixins.json"
[[dependencies.wowmine_world_policy]]
modId="neoforge"
type="required"
versionRange="[21.1.250]"
ordering="NONE"
side="SERVER"
[[dependencies.wowmine_world_policy]]
modId="imm_ptl"
type="required"
versionRange="[6.1.3.1]"
ordering="NONE"
side="SERVER"
[[dependencies.wowmine_world_policy]]
modId="minecraft"
type="required"
versionRange="[1.21.1]"
ordering="NONE"
side="SERVER"
@@ -0,0 +1,17 @@
{
"required": true,
"minVersion": "0.8",
"package": "wowmine.world.mixin",
"compatibilityLevel": "JAVA_21",
"mixins": [
"LoginMixin",
"TravelMixin",
"NetherPortalMixin",
"ImmersivePortalMixin",
"PortalIgnitionMixin",
"SleepClockMixin"
],
"injectors": {
"defaultRequire": 1
}
}
@@ -0,0 +1,56 @@
package wowmine.world;
import java.util.Objects;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.portal.DimensionTransition;
import net.minecraft.world.phys.Vec3;
import net.neoforged.bus.api.EventPriority;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.event.entity.player.PlayerRespawnPositionEvent;
/** Keep the engine Overworld registered while using Azeroth for player fallback. */
@Mod("wowmine_world_policy")
public final class WorldPolicy {
public static final ResourceKey<Level> AZEROTH = ResourceKey.create(
Registries.DIMENSION, ResourceLocation.parse("crafting_azeroth:azeroth")
);
public static final ResourceKey<Level> VOID = ResourceKey.create(
Registries.DIMENSION, ResourceLocation.parse("wowmine:void")
);
public static final Vec3 SPAWN = new Vec3(3742.5, 89, 8891.5);
public WorldPolicy() {
NeoForge.EVENT_BUS.register(this);
}
public static ServerLevel home(MinecraftServer server) {
return Objects.requireNonNull(server.getLevel(AZEROTH), "Azeroth dimension is required");
}
public static DimensionTransition destination(DimensionTransition original) {
if (!original.newLevel().dimension().equals(Level.OVERWORLD)) {
return original;
}
return new DimensionTransition(
home(original.newLevel().getServer()), SPAWN, Vec3.ZERO,
original.yRot(), original.xRot(), original.missingRespawnBlock(),
DimensionTransition.DO_NOTHING
);
}
@SubscribeEvent(priority = EventPriority.LOWEST)
public void respawn(PlayerRespawnPositionEvent event) {
var original = event.getDimensionTransition();
if (original.newLevel().dimension().equals(Level.OVERWORLD)) {
event.setDimensionTransition(destination(original));
event.setCopyOriginalSpawnPosition(false);
}
}
}
@@ -0,0 +1,38 @@
package wowmine.world.mixin;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
import qouteall.imm_ptl.peripheral.portal_generation.IntrinsicPortalGeneration;
import wowmine.world.WorldPolicy;
/** Keep Immersive Portals' normal/adaptive generators on the Azeroth/void pair. */
@Mixin(value = IntrinsicPortalGeneration.class, remap = false)
public abstract class ImmersivePortalMixin {
@ModifyExpressionValue(
method = {"<clinit>", "onFireLitOnObsidian"},
at = @At(value = "FIELD",
target = "Lnet/minecraft/world/level/Level;OVERWORLD:Lnet/minecraft/resources/ResourceKey;")
)
private static ResourceKey<Level> chooseHome(ResourceKey<Level> original) {
return WorldPolicy.AZEROTH;
}
@ModifyExpressionValue(
method = {"<clinit>", "onFireLitOnObsidian"},
at = @At(value = "FIELD",
target = "Lnet/minecraft/world/level/Level;NETHER:Lnet/minecraft/resources/ResourceKey;")
)
private static ResourceKey<Level> chooseVoid(ResourceKey<Level> original) {
return WorldPolicy.VOID;
}
@ModifyConstant(method = "<clinit>", constant = @Constant(intValue = 8))
private static int useUnitScale(int original) {
return 1;
}
}
@@ -0,0 +1,36 @@
package wowmine.world.mixin;
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
import com.llamalad7.mixinextras.sugar.Local;
import net.minecraft.resources.ResourceKey;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.server.players.PlayerList;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import wowmine.world.WorldPolicy;
@Mixin(value = PlayerList.class, remap = false)
public abstract class LoginMixin {
@WrapOperation(
method = "placeNewPlayer",
at = @At(value = "INVOKE",
target = "Lnet/minecraft/server/MinecraftServer;getLevel(Lnet/minecraft/resources/ResourceKey;)Lnet/minecraft/server/level/ServerLevel;")
)
private ServerLevel chooseLoginLevel(
MinecraftServer server, ResourceKey<Level> key, Operation<ServerLevel> original,
@Local(argsOnly = true) ServerPlayer player) {
var level = original.call(server, key);
if (level != null && !level.dimension().equals(Level.OVERWORLD)) {
return level;
}
player.moveTo(
WorldPolicy.SPAWN.x, WorldPolicy.SPAWN.y, WorldPolicy.SPAWN.z,
player.getYRot(), player.getXRot()
);
return WorldPolicy.home(server);
}
}
@@ -0,0 +1,30 @@
package wowmine.world.mixin;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.NetherPortalBlock;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import wowmine.world.WorldPolicy;
@Mixin(value = NetherPortalBlock.class, remap = false)
public abstract class NetherPortalMixin {
@ModifyExpressionValue(
method = "getPortalDestination",
at = @At(value = "FIELD",
target = "Lnet/minecraft/world/level/Level;NETHER:Lnet/minecraft/resources/ResourceKey;")
)
private ResourceKey<Level> chooseVoidWorld(ResourceKey<Level> original) {
return WorldPolicy.VOID;
}
@ModifyExpressionValue(
method = "getPortalDestination",
at = @At(value = "FIELD",
target = "Lnet/minecraft/world/level/Level;OVERWORLD:Lnet/minecraft/resources/ResourceKey;")
)
private ResourceKey<Level> chooseReturnWorld(ResourceKey<Level> original) {
return original.equals(Level.OVERWORLD) ? WorldPolicy.AZEROTH : original;
}
}
@@ -0,0 +1,17 @@
package wowmine.world.mixin;
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.BaseFireBlock;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import wowmine.world.WorldPolicy;
@Mixin(value = BaseFireBlock.class, remap = false)
public abstract class PortalIgnitionMixin {
@ModifyReturnValue(method = "inPortalDimension", at = @At("RETURN"))
private static boolean allowLinkedWorlds(boolean original, Level level) {
return original || level.dimension().equals(WorldPolicy.AZEROTH)
|| level.dimension().equals(WorldPolicy.VOID);
}
}
@@ -0,0 +1,22 @@
package wowmine.world.mixin;
import net.minecraft.server.level.ServerLevel;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import wowmine.world.WorldPolicy;
/** Azeroth reads the shared clock, so sleep must update that same clock. */
@Mixin(value = ServerLevel.class, remap = false)
public abstract class SleepClockMixin {
@Inject(method = "setDayTime", at = @At("HEAD"), cancellable = true)
private void updateSharedClock(long time, CallbackInfo callback) {
var level = (ServerLevel) (Object) this;
if (level.dimension().equals(WorldPolicy.AZEROTH)
|| level.dimension().equals(WorldPolicy.VOID)) {
level.getServer().overworld().setDayTime(time);
callback.cancel();
}
}
}
@@ -0,0 +1,16 @@
package wowmine.world.mixin;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.level.portal.DimensionTransition;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyVariable;
import wowmine.world.WorldPolicy;
@Mixin(value = ServerPlayer.class, remap = false)
public abstract class TravelMixin {
@ModifyVariable(method = "changeDimension", at = @At("HEAD"), argsOnly = true)
private DimensionTransition chooseDestination(DimensionTransition original) {
return WorldPolicy.destination(original);
}
}
+28 -2
View File
@@ -1,9 +1,21 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
packVersion = "v16-delight-rules-r2"; packVersion = "v17-immersive-portals";
serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap"; serverDir = "${config.services.minecraft-servers.dataDir}/wowMineMap";
serverMotd = "wowmine | Warcraft"; serverMotd = "wowmine | Warcraft";
immersivePortals = pkgs.fetchurl {
url = "https://github.com/UpperMoon0/ImmersivePortals/releases/download/v6.1.3.1/immersive_portals-6.1.3.1.jar";
hash = "sha256-2i+h2Q6uAx40aQpkyc117Tt01HMlgl+POMBBnhIgvKI=";
};
worldPolicy = import ./wowmine-world-policy {
inherit pkgs immersivePortals;
server = config.services.minecraft-servers.servers.wowMineMap.package;
};
sleepTimeSkip = pkgs.fetchurl {
url = "https://edge.forgecdn.net/files/9527/851/sleeptimeskip-neoforge-1.21.1-1.1.0.jar";
hash = "sha256-VXyBWvU+P95RMNRs2vTUFcqQPBeit2oJDTbSngwXAIM=";
};
in in
{ {
sops.secrets."minecraft/storage-box-pack-key" = { sops.secrets."minecraft/storage-box-pack-key" = {
@@ -21,7 +33,7 @@ in
remotePath = "minecraft/pack/wowmine-${packVersion}.mrpack"; remotePath = "minecraft/pack/wowmine-${packVersion}.mrpack";
archiveName = "wowmine.mrpack"; archiveName = "wowmine.mrpack";
cacheDir = "/var/lib/minecraft-modpacks/wowmine"; cacheDir = "/var/lib/minecraft-modpacks/wowmine";
archiveSha256 = "a7f474f1431719c6b11707fec05db8b571cb4d1b84d58c20962e771881b0109e"; archiveSha256 = "f958597c4bed2da74d3e4c1d52b2773e2292fb9c3d1a4f42ccda76b9c620a9de";
expectedDependencies = { expectedDependencies = {
minecraft = "1.21.1"; minecraft = "1.21.1";
neoforge = "21.1.250"; neoforge = "21.1.250";
@@ -33,11 +45,25 @@ in
services.minecraft-servers.servers.wowMineMap.serverProperties.motd = services.minecraft-servers.servers.wowMineMap.serverProperties.motd =
serverMotd; serverMotd;
services.minecraft-backups.servers.wowMineMap.announcementCommand =
pkgs.writeShellScript "wowmine-backup-announce" ''
set -eu
${pkgs.tmux}/bin/tmux -S /run/minecraft/wowMineMap.sock \
send-keys C-u "say $1" Enter
'';
systemd.services.minecraft-server-wowMineMap.preStart = systemd.services.minecraft-server-wowMineMap.preStart =
(import ./wowmine-settings.nix { (import ./wowmine-settings.nix {
inherit pkgs serverDir; inherit pkgs serverDir;
namesOnly = true; namesOnly = true;
}) + '' }) + ''
${pkgs.coreutils}/bin/install -Dm444 \
${worldPolicy}/share/java/wowmine-world-policy.jar \
"${serverDir}/mods/wowmine-world-policy.jar"
${pkgs.coreutils}/bin/install -Dm444 \
${sleepTimeSkip} "${serverDir}/mods/wowmine-sleep-time-skip.jar"
${pkgs.coreutils}/bin/cp -rT --no-preserve=mode \
${./wowmine-server-config} "${serverDir}/config"
${pkgs.coreutils}/bin/mkdir -p "${serverDir}/world/datapacks/wowmine-rules" ${pkgs.coreutils}/bin/mkdir -p "${serverDir}/world/datapacks/wowmine-rules"
${pkgs.coreutils}/bin/cp -rT --no-preserve=mode \ ${pkgs.coreutils}/bin/cp -rT --no-preserve=mode \
${./wowmine-rules} "${serverDir}/world/datapacks/wowmine-rules" ${./wowmine-rules} "${serverDir}/world/datapacks/wowmine-rules"
+50 -1
View File
@@ -8,12 +8,19 @@ let
*) exit 97 ;; *) exit 97 ;;
esac esac
''; '';
sleep = pkgs.writeShellScriptBin "sleep" ''
set -eu
now="$(cat /build/control/elapsed)"
echo "$((now + $1))" > /build/control/elapsed
'';
coreutils = pkgs.symlinkJoin { coreutils = pkgs.symlinkJoin {
name = "minecraft-backup-test-coreutils"; name = "minecraft-backup-test-coreutils";
paths = [ pkgs.coreutils ]; paths = [ pkgs.coreutils ];
postBuild = '' postBuild = ''
rm "$out/bin/date" rm "$out/bin/date"
ln -s ${clock}/bin/date "$out/bin/date" ln -s ${clock}/bin/date "$out/bin/date"
rm "$out/bin/sleep"
ln -s ${sleep}/bin/sleep "$out/bin/sleep"
''; '';
}; };
systemctl = pkgs.writeShellScriptBin "systemctl" '' systemctl = pkgs.writeShellScriptBin "systemctl" ''
@@ -21,6 +28,7 @@ let
case "$1" in case "$1" in
is-active) test "$(cat /build/control/state)" = active ;; is-active) test "$(cat /build/control/state)" = active ;;
stop) stop)
cat /build/control/elapsed > /build/control/stopped-at
echo inactive > /build/control/state echo inactive > /build/control/state
echo "''${STOP_RESULT:-success}" > /build/control/result echo "''${STOP_RESULT:-success}" > /build/control/result
;; ;;
@@ -29,6 +37,15 @@ let
*) exit 99 ;; *) exit 99 ;;
esac esac
''; '';
announce = pkgs.writeShellScript "minecraft-backup-test-announce" ''
set -eu
test "$(cat /build/control/state)" = active
number="$(($(wc -l < /build/control/messages) + 1))"
test "''${FAIL_ANNOUNCEMENT:-0}" != "$number" || exit 33
${pkgs.jq}/bin/jq -cn \
--arg message "$1" --argjson at "$(cat /build/control/elapsed)" \
'{at: $at, message: $message}' >> /build/control/messages
'';
rsync = pkgs.writeShellScriptBin "rsync" '' rsync = pkgs.writeShellScriptBin "rsync" ''
set -eu set -eu
test "$(cat /build/control/state)" = inactive test "$(cat /build/control/state)" = inactive
@@ -60,7 +77,7 @@ let
*) exit 98 ;; *) exit 98 ;;
esac esac
''; '';
cfg = (lib.nixosSystem { mkConfig = announcementCommand: (lib.nixosSystem {
inherit system; inherit system;
inherit pkgs; inherit pkgs;
modules = [ modules = [
@@ -90,12 +107,15 @@ let
servers.test = { servers.test = {
directory = "/build/source"; directory = "/build/source";
service = "minecraft-test.service"; service = "minecraft-test.service";
inherit announcementCommand;
}; };
}; };
} }
]; ];
}).config; }).config;
cfg = mkConfig null;
service = cfg.systemd.services.minecraft-backup-test; service = cfg.systemd.services.minecraft-backup-test;
announcedService = (mkConfig announce).systemd.services.minecraft-backup-test;
runCase = name: test: pkgs.runCommand "minecraft-backup-${name}" { runCase = name: test: pkgs.runCommand "minecraft-backup-${name}" {
nativeBuildInputs = [ pkgs.jq pkgs.gnutar pkgs.zstd ]; nativeBuildInputs = [ pkgs.jq pkgs.gnutar pkgs.zstd ];
} '' } ''
@@ -103,6 +123,8 @@ let
mkdir -p /build/source/world /build/control /build/bucket /build/backups/test mkdir -p /build/source/world /build/control /build/bucket /build/backups/test
echo active > /build/control/state echo active > /build/control/state
echo success > /build/control/result echo success > /build/control/result
echo 0 > /build/control/elapsed
: > /build/control/messages
echo world-data > /build/source/world/level.dat echo world-data > /build/source/world/level.dat
echo secret > /build/source/server.properties echo secret > /build/source/server.properties
touch /build/bucket/minecraft-test-20200101T000000Z.tar.zst /build/bucket/manual.tar.zst touch /build/bucket/minecraft-test-20200101T000000Z.tar.zst /build/bucket/manual.tar.zst
@@ -180,4 +202,31 @@ in {
test "$(cat /build/control/state)" = active test "$(cat /build/control/state)" = active
test -e /build/bucket/minecraft-test-20200101T000000Z.tar.zst test -e /build/bucket/minecraft-test-20200101T000000Z.tar.zst
''; '';
minecraft-backup-announces-before-stop = runCase "announces-before-stop" ''
${announcedService.serviceConfig.ExecStart}
jq -s -e 'map(.at) == [0, 240, 300]
and all(.[]; (.message | length) > 0)' /build/control/messages
test "$(cat /build/control/stopped-at)" = 300
test "$(cat /build/control/state)" = active
test -e /build/bucket/minecraft-test-20231114T221320Z.tar.zst
'';
minecraft-backup-inactive-skips-announcements = runCase "inactive-skips-announcements" ''
echo inactive > /build/control/state
${announcedService.serviceConfig.ExecStart}
test ! -s /build/control/messages
test "$(cat /build/control/elapsed)" = 0
test ! -e /build/control/stopped-at
test "$(cat /build/control/state)" = inactive
'';
minecraft-backup-announcement-failure-keeps-server = runCase "announcement-failure-keeps-server" ''
for stage in 1 2 3; do
: > /build/control/messages
echo 0 > /build/control/elapsed
if FAIL_ANNOUNCEMENT="$stage" ${announcedService.serviceConfig.ExecStart}; then exit 1; fi
test "$(cat /build/control/state)" = active
test ! -e /build/control/stopped-at
test ! -e /build/backups/test/restart-needed
test ! -e /build/backups/test/staging/world/level.dat
done
'';
} }