Public: anyone can read this; the crew can change it.

Games survival step 3b: a sleep (night-skip) mod in the quality set #18172

opened this

Merged 5h 9m ago, live in production

set:quality now includes a sleep (night-skip) mod: Sleep Warp, pinned by slug sleep-warp. I chose it from memory and have not confirmed that slug exists on Modrinth. This sandbox can't reach Modrinth, so I couldn't look it up or get its project id.

Notes

opened this

set:quality now includes a sleep (night-skip) mod: Sleep Warp, pinned by slug sleep-warp. I chose it from memory and have not confirmed that slug exists on Modrinth. This sandbox can't reach Modrinth, so I couldn't look it up or get its project id.

Please check the slug against Modrinth before merging; if it's wrong, change the one string in src/games/mod_sets.ts. The set is optional per member, so a wrong slug or a Minecraft version with no build for it is left out with the reason. The rest of the set still installs.

  • Code: src/games/mod_sets.ts adds sleep-warp to the slugs and a "Sleep Warp:" line to why. The terminal and the page show the set from that one list, so they pick it up with no other change.
  • Text: the MCP mods_install description and docs/features/game-mods.md name the new member.
  • Tests: test/game-mods.test.ts has a fixture for the mod and a test that the set holds it, stays optional, and has one why line per member. test/game-mods.test.ts passes (34 tests). I did not run the other suites. I also ran bun x tsc --noEmit and saw no errors, and I ran gate.ts --fix and committed its rewrap.
  • Not done: the fixture has no Sleep Warp version, so no test installs it. I added no function, so there was nothing to reuse.

To try it, call mods_install with project: "set:quality" on a Fabric game box. The plan should list Sleep Warp, or "Left out sleep-warp: …" with the reason.

Closes #18151

commented

set:quality now includes a sleep (night-skip) mod: Sleep Warp, pinned by slug sleep-warp. I chose it from memory and have not confirmed that slug exists on Modrinth. This sandbox can't reach Modrinth, so I couldn't look it up or get its project id.

Please check the slug against Modrinth before merging; if it's wrong, change the one string in src/games/mod_sets.ts. The set is optional per member, so a wrong slug or a Minecraft version with no build for it is left out with the reason. The rest of the set still installs.

  • Code: src/games/mod_sets.ts adds sleep-warp to the slugs and a "Sleep Warp:" line to why. The terminal and the page show the set from that one list, so they pick it up with no other change.
  • Text: the MCP mods_install description and docs/features/game-mods.md name the new member.
  • Tests: test/game-mods.test.ts has a fixture for the mod and a test that the set holds it, stays optional, and has one why line per member. test/game-mods.test.ts passes (34 tests). I did not run the other suites. I also ran bun x tsc --noEmit and saw no errors, and I ran gate.ts --fix and committed its rewrap.
  • Not done: the fixture has no Sleep Warp version, so no test installs it. I added no function, so there was nothing to reuse.

To try it, call mods_install with project: "set:quality" on a Fabric game box. The plan should list Sleep Warp, or "Left out sleep-warp: …" with the reason.

commented

I could not confirm the sleep-warp slug. It is still a guess, so please check it before this lands. Modrinth is blocked in my sandbox (api.modrinth.com was denied). I have no project id to give you and left the slug as it was.

  • Slug, finding 1: I did not swap in another guess, because a second unverified slug fails just as quietly. Someone with Modrinth access should open modrinth.com/mod/sleep-warp and check it is a Fabric night-skip mod that builds for the Minecraft versions the forge targets. If the slug is wrong, change that one string in src/games/mod_sets.ts and the same name in the why line, the about sentence, the docs and the MCP doc string.
  • Tests, finding 2:
    • The test fixture now has a Sleep Warp build for 1.21.4. One test checks that the plan locks sleep-warp and lists "Adds Sleep Warp 1.2.0".
    • A second test targets 1.21.8, where only Right Click Harvest has a build. It checks that the plan says "Left out sleep-warp: …" while rightclickharvest still installs.
    • These tests use a fixture slug, so they pass whatever the real slug is. They show the plan behaves correctly, not that the slug is right.
  • Docs, finding 3: I removed "Sleep Warp likewise" from docs/features/game-mods.md. The 1.21.6 claim was unchecked.

test/game-mods.test.ts passes (35 tests), tsc is clean, and bun scripts/gate.ts --fix ran. I did not run the web, terminal or docs checks again, and I made no web, action or API route changes.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs