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

Games survival step 3: quality-of-life mods tried on a copy first (graves, essential-commands, sleep, harvest, vein miner, styled-chat) #18145

opened this

Merged 5h 53m ago, live in production

This adds a set:quality install set, but I did not try any of the mods on a throwaway copy of the survival server, and the issue asked me to. This sandbox can't reach Modrinth or run Minecraft, so nothing here has run on 1.21.6. The tests use a stand-in Modrinth with made-up versions.

Notes

opened this

This adds a set:quality install set, but I did not try any of the mods on a throwaway copy of the survival server, and the issue asked me to. This sandbox can't reach Modrinth or run Minecraft, so nothing here has run on 1.21.6. The tests use a stand-in Modrinth with made-up versions.

Added

  • set:quality is a new Fabric-only set with four members: universal-graves, essential-commands, styled-chat and rightclickharvest. The slugs are my best knowledge of Modrinth, not checked against it.
  • Each member is resolved on its own. One with no build for the server's Minecraft version is left out, and the preview says why. Right Click Harvest on 1.21.6 would show as Left out rightclickharvest: Right Click Harvest has no version for Fabric 1.21.6. The rest still install in one commit, one lock and one env. If none builds, the whole set is refused.
  • The set is offered from the web Mods block ("Preview the quality of life set") and the terminal, where q previews it. MCP mods_install takes project: "set:quality". The docs and the MCP description are updated. An unknown set name now lists both sets.
  • I reused the survival-set planner (planSet in src/games/mods.ts). The web and terminal code now loops over a list of sets (SETS in src/games/mod_sets.ts) instead of naming the survival set.

Chosen against

  • Sleep and vein miner are not listed. I couldn't name a Modrinth project for either that I'm sure of, and a wrong slug could install a different mod.
  • Essential Commands is not trimmed to /home /spawn /tpa. It installs with all its commands on. Trimming needs its config file format, which I couldn't confirm without running it. That config is a follow-up once someone has run the mod.

Tests: test/game-mods.test.ts has two new tests. They cover the plan that leaves out Right Click Harvest and says why, the Paper refusal, and the page and q terminal flow. bun test test/game-mods.test.ts passes (28), tsc is clean, and gate.ts --explain shows no failing rule.

To try: open /games/<box>/<fabric service> on the preview and press "Preview the quality of life set". The preview lists what it adds and what it leaves out. Then install it and watch the server start. Or call games with mods_install and project: "set:quality", which plans until you pass dryRun: false.

[{"go":"/games/<box>/<fabric service>#mods","look":"A row list of the four quality-of-life mods and a 'Preview the quality of life set' button beside the survival one","expect":"Clicking it shows 'Adds …' lines, plus 'Left out <slug>: …' for any mod with no build for the server's version"}]

🤖 Generated with Claude Code

Closes #18089

3 earlier comments
commented

This adds a set:quality install set, but I did not try any of the mods on a throwaway copy of the survival server, and the issue asked me to. This sandbox can't reach Modrinth or run Minecraft, so nothing here has run on 1.21.6. The tests use a stand-in Modrinth with made-up versions.

Added

  • set:quality is a new Fabric-only set with four members: universal-graves, essential-commands, styled-chat and rightclickharvest. The slugs are my best knowledge of Modrinth, not checked against it.
  • Each member is resolved on its own. One with no build for the server's Minecraft version is left out, and the preview says why. Right Click Harvest on 1.21.6 would show as Left out rightclickharvest: Right Click Harvest has no version for Fabric 1.21.6. The rest still install in one commit, one lock and one env. If none builds, the whole set is refused.
  • The set is offered from the web Mods block ("Preview the quality of life set") and the terminal, where q previews it. MCP mods_install takes project: "set:quality". The docs and the MCP description are updated. An unknown set name now lists both sets.
  • I reused the survival-set planner (planSet in src/games/mods.ts). The web and terminal code now loops over a list of sets (SETS in src/games/mod_sets.ts) instead of naming the survival set.

Chosen against

  • Sleep and vein miner are not listed. I couldn't name a Modrinth project for either that I'm sure of, and a wrong slug could install a different mod.
  • Essential Commands is not trimmed to /home /spawn /tpa. It installs with all its commands on. Trimming needs its config file format, which I couldn't confirm without running it. That config is a follow-up once someone has run the mod.

Tests: test/game-mods.test.ts has two new tests. They cover the plan that leaves out Right Click Harvest and says why, the Paper refusal, and the page and q terminal flow. bun test test/game-mods.test.ts passes (28), tsc is clean, and gate.ts --explain shows no failing rule.

To try: open /games/<box>/<fabric service> on the preview and press "Preview the quality of life set". The preview lists what it adds and what it leaves out. Then install it and watch the server start. Or call games with mods_install and project: "set:quality", which plans until you pass dryRun: false.

[{"go":"/games/<box>/<fabric service>#mods","look":"A row list of the four quality-of-life mods and a 'Preview the quality of life set' button beside the survival one","expect":"Clicking it shows 'Adds …' lines, plus 'Left out <slug>: …' for any mod with no build for the server's version"}]

🤖 Generated with Claude Code

commented

<!-- look-pages ae5c30304665 --> Look pages for ae5c303, from the gate:

  • look pages (none): "Looks: /games" is not a page of app.looks in forge.json; this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

This pull adds a quality-of-life mod set (graves, essential-commands, styled-chat, rightclickharvest) for games. A mod with no build for the server is left out, and the page says why. I only added one empty commit this round, because the other feedback items were already clean.

  • Look pages: the /games path isn't one of the pages listed under app.looks in forge.json, so the gate couldn't infer a page. The new commit carries a No look: line saying the page only gains a button label and a note, with no layout or route change. I did not add /games to app.looks.
  • Name the issue: the new commit starts with Direction: and cites #18089. gate --explain already passed this rule.
  • Both doors: gate --explain passes. The terminal screen src/tui/screens/game_mods.ts and docs/features/game-mods.md changed in the same commit as the page.
  • Dead exports and process-wide state: these ran clean on this change. test/unused-exports.test.ts prints a note listing exports that are no longer dead (src/http/crawl.ts, src/kernel/migrate.ts and others). None of those files are in this diff, so I left them.
  • Comment width: gate --fix rewrapped nothing. It still notes three files with comment lines over 100 columns and says the nightly rewrap handles them on main.

tsc --noEmit is clean. The tests I ran all pass: test/hollow.test.ts, test/game-mods.test.ts, test/unused-exports.test.ts and two others the gate's dead-code and process-wide-state tests live in. The full suite is left to the forge's check.

To try it: open /games/<box>/<fabric service> and press Preview the quality of life set, or call games mods_install with project set:quality.

🤖 Generated with Claude Code

commented

Games survival step 3, narrowed: a quality-of-life set (graves, Essential Commands, Styled Chat, Right Click Harvest) that is smaller than the issue asked for. The pull title should read that way; I can't edit it. It no longer claims "tried on a copy" and no longer lists sleep or vein miner. The set is optional by member: one with no build for the server's version is left out with the reason, and if none builds the set is refused.

What changed in this round

  • Split (1): I opened #18151 (sleep), #18152 (vein miner) and #18153 (trim Essential Commands, and pin and check the slugs). #18089 now waits on all three. The copy trial is not done.
  • Essential Commands default (3): the plan now has a Before players join: …trim its config to /home, /spawn and /tpa line. It shows in the web preview and the terminal preview, because both render the same plan lines. It is set per member in ModSet.cautions in src/games/mod_sets.ts.
  • Design system (4): each ModSet has an about sentence, shown ahead of its rows on the page and in the terminal. Every set uses one label, Preview the <title> set. The name string-compare is gone.
  • Fragile key (5): key is stored on ModSet, and setKey is deleted. A test checks the keys and names are unique, and that each set's key appears exactly once among the screen's bindings.
  • Tests (6):
    • all members skipped gives the refusal, with each member's reason;
    • an already-installed member is kept and not planned again;
    • two members that need Fabric API share one copy and the plan counts one dependency;
    • the caution line shows on the plan and the page;
    • the page labels the set.
  • Both doors (7): set:quality is described only in docs/features/game-mods.md, not in the README. I updated it for the caution line and the labels.

Not done: pinning by Modrinth project id (2). The sandbox cannot reach api.modrinth.com, so I cannot check the slugs' ids or authors. I would not invent ids, because a wrong one in a pin is worse than none. The four slugs are still unverified, and the tests still use the stand-in's made-up ids. #18153 carries the pin-and-check work. Someone who can reach Modrinth should supply the ids, or that issue should be done before this lands.

Checks run: test/game-mods.test.ts (33 pass), module-state, hollow and unused-exports pass, tsc is clean, design-lint is clean, and gate --explain shows 0 failing rules. I did not run the full set of tests fast.ts names (452 files, an expected 31 minutes). The forge's check runs everything on the push.

To try it: open /games/<box>/<service> on a Fabric server. Press q in the service's mods screen in the terminal.

[
  {"go":"/games/net/smp#mods","look":"Each offered set shows a one-line sentence, its rows, then a button reading 'Preview the <title> set'","expect":"Both sets read alike; the rows sit under their own sentence"},
  {"go":"/games/net/smp?add=set:quality#mods","look":"The plan lists the mods, 'Left out …' for any with no build, and a 'Before players join' line","expect":"The line says to trim Essential Commands to /home, /spawn and /tpa"}
]

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs