Skip to content

Add the screen puzzle frame: the shed's CRT cabinet as a second frame housing - #17

Merged
xxfast merged 4 commits into
masterfrom
feature/screen-puzzle-frame
Sep 27, 2026
Merged

xxfast merged 4 commits into
masterfrom
feature/screen-puzzle-frame

Conversation

@xxfast

@xxfast xxfast commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner
2026-09-27_11 56 20

A Screen Puzzle Frame: the iron frame in the opening shed's CRT cabinet. Same behaviour; only the housing, face and sound differ. Rule doc: rules/minecraft/05-1-screen-frame.md.

  • Housing: full-width slate cabinet, so a row shares one housing. Crafted from an iron frame + glass pane.
  • Face: black glass with the panel as a rounded tube in its backdrop colour, lattice at half brightness.
  • Picture: subtle scanlines and static (mod shader), and a curved tube (CPU; allocation-free, holds 60 fps). Under a shader pack only the curve shows.
  • Sound: the CRT panel cues that shipped unregistered.

Verified: ./gradlew build green; signed off on sight in game. Not yet checked: under a shader pack, unpowered, distance fade, Vulkan.

🤖 Generated with Claude Code

xxfast and others added 4 commits September 26, 2026 20:49
… housing

A Screen Puzzle Frame is the iron frame in the opening shed's slate cabinet
(rules/minecraft/05-1-screen-frame.md): a full-width box so a row shares one
cabinet with no join models, a black glass face, and the panel drawn as a
rounded tube in its backdrop colour, shaded darker at the rim, with the
lattice at half the tube's brightness. Crafted shapeless from an iron frame
and a glass pane.

Behaviour is untouched: the block subclasses IronPuzzleFrameBlock (now open),
so every `is IronPuzzleFrameBlock` in the network, stand, cable and solver
already covers it. The solver's hit test reads the frame's face scale from
the renderer instead of a hardcoded constant, since the screen's glass is
12 px against the iron frame's 13.6.

RenderContext gains a `shade` that primitives default to, which is how the
one lattice pass draws grey on an iron frame and tinted backdrop on a screen.

Rule doc written from two shed screenshots, proportions measured off the
frontal one. Also corrects 02-panel-dye's claim that backgrounds wear the
dye's block shade: the backdrop textures are hand-picked per dye.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The crt_panel_* files had shipped in assets/witness/sounds unregistered,
waiting on an acoustic-zone concept. A screen frame is a surface, not a zone:
it is what a CRT panel sounds like, and the solver already knows which block
the line is on. So the nine panel cues are grouped as PanelCues per surface,
WitnessSounds.panelCues(state) picks the CRT set on a ScreenPuzzleFrameBlock
and the base set otherwise, and every cue call in PuzzleSolverScreen goes
through it. The path-complete chirp stays a single base cue, as in the
original. defaultverb_ and glassverb_ stay unwired; they still need zones.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tatic

Scanlines and static are a mod shader (shaders/core/crt_screen) on vanilla's
world text pipeline rebuilt with the shader swapped; RenderType.create is
package-private, hence RenderTypeInvokerMixin. Bands and specks are anchored
to the world and fade out before they drop under a screen pixel.

The curve is on the CPU: a vertex shader cannot bend a one-quad lattice edge
without first cutting it, and 26.2 pipelines have no stage that adds vertices.
CurvedVertexConsumer cuts each quad into small cells and bends every corner
through Curve. It allocates nothing per vertex: the first version did and
cost a row of three screens 15 fps with 4 fps hitches.

Off shows the curve only; under a shader pack (Iris API, by reflection) the
picture is left off and the curve stays. /crt picture and /crt curve toggle
each half in development runs, for frame-rate comparison.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tried in game: forced on under BSL, every tube went to black glass and Iris
logged a missing program for witness:pipeline/crt_screen. Iris's only hook,
assignPipeline, would swap our shader for a pack program anyway, and would
tie the mod to Iris at compile time. Recorded as a known limitation, with
textures on the text layer as the one route that would survive a pack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xxfast
xxfast merged commit 1bba1d8 into master Sep 27, 2026
1 check passed
@xxfast
xxfast deleted the feature/screen-puzzle-frame branch September 27, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant