Repository navigation
Add the screen puzzle frame: the shed's CRT cabinet as a second frame housing - #17
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Verified:
./gradlew buildgreen; signed off on sight in game. Not yet checked: under a shader pack, unpowered, distance fade, Vulkan.🤖 Generated with Claude Code