Repository navigation
Conversation
Worive
marked this pull request as draft
November 20, 2026 20:59
Append the optional high bytes after the legacy fields to preserve older decoders and avoid Forge's signed-short NBT length limit.
Rewriting a compound can omit high metadata or change the ID encoding. Clear the previous optional arrays before writing.
Keep the microblock render-bounds update while a schematic tile is detached. Other multipart implementations may need an attached world.
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.
Summary
Schematica currently mishandles a number of GTNH blocks: block IDs above 4095 get truncated when saving/loading, and several mods' blocks print wrong, preview wrong, or are miscounted in the materials list. One concrete example: e.g. "a schematic containing X loads as Y, and the printer places Z instead".
This PR fixes those for the mods below.
What changed
Schematic format.
.schematicand.schemplusnow keep block IDs up to 65,535 and 16-bit metadata (EndlessIDs). Old schematics still load in the matching format mode. Older Schematica versions can truncate extended metadata. PackedAddBlocksreaders can represent block IDs up to 4095. Use this version for a faithful round trip of files with extended data.Per-mod support (printing, preview, material list, rotate/mirror where relevant):
Printer behavior (affects all blocks, not just modded). Retry timers advance at zero placement delay; held item and sneak state are synced for client interactions; blocks can be placed without a neighbor when "adjacent only" is off; facing-only damage is ignored when matching materials.
Build. GTNH Gradle toolchain updated (Java 25 build daemon); optional mod
detection is cached.
Checklist