66 lines
3.7 KiB
Markdown
66 lines
3.7 KiB
Markdown
# 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.
|