Skip to content

Build for Minecraft 26.1.x and 26.3 - #32

Merged
WilyFoxM merged 4 commits into
mainfrom
feat/mc-26.3
Nov 16, 2026
Merged

WilyFoxM merged 4 commits into
mainfrom
feat/mc-26.3

Conversation

@WilyFoxM

@WilyFoxM WilyFoxM commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Problem and resulting behavior

The mod was built for 26.2 only. It now has a jar for each 26.x family: +26.1.x (26.1, 26.1.1 and 26.1.2, built against 26.1.2), +26.2 and +26.3.

  • Input reads the same in all versions: InputConstants keys and mouse buttons and Minecraft.hasShiftDown. 26.3 numbers mouse buttons differently (left 1, right 3), so raw numbers would have broken clicks in the settings.
  • Version seams live in compat packages: the screen (on Minecraft in 26.1), the draw after the level, the pipelines' vertex format, the level render call and the crosshair mixin target (Gui in 26.1, Hud since 26.2).
  • 26.3 moved the GPU API into com.mojang.renderpearl.api. The sources keep the 26.2 names, and Stonecutter swaps them, mixin descriptors included.
  • 26.3 compiles shaders to SPIR-V. The build rewrites ours for it, with #include and explicit layout(location).
  • Physics that changed in 26.3 follows that version: the fishing hook's gravity is 0.03F, and an arrow's hit within the entity margin stays where the path enters the inflated box instead of being projected onto it.
  • On 26.1 the depth buffer is forward (26.2 reversed it): the test for the path behind terrain and the zone's slope bias follow the version.
  • README lists the files per version and what was checked with Sodium and Iris on each.

Version 1.1.0-dev.1.

Validation performed

  • GitHub checks (build, unit-tests, spotless): passed on the merge of main (Build with Stonecutter, one node per Minecraft version #31, Find entity hits of non-arrow projectiles the way vanilla does #33).
  • Local checks actually run:
    • formatCheck build across all three nodes. Unit tests: 111 per node, including the parity tests against each version's vanilla classes.
    • Full local client run on 26.1.2, 26.2 and 26.3: passed on all three, screenshots reviewed (line, zone, markers, crosshair turn, settings).
    • 26.3 with Sodium 0.9.2: the bow, crossbow, throw, trident and rod parts passed.
    • 26.1.2 with Iris 1.11.4 and Complementary r5.8.1: the line over the pack is drawn. After shaders are switched off, the local run crashes inside Sodium on a frame rendered for a screenshot. It crashes the same way with this mod's drawing switched off.
    • The +26.1.x jar from a real mods folder: passed on 26.1 (Fabric API 0.145.1) and 26.1.1 (0.145.4), and on 26.1.2 without other mods.
  • I played on 26.1 and 26.3 with the built jars.
  • Prediction accuracy evidence: none new. The measurements were made on 26.2.

Limits and compatibility

  • 26.1.x and 26.3 have not been measured in game.
  • Iris 1.11.7 for 26.3 does not start on 26.3 even without this mod, so shaders on 26.3 are untested.
  • Sodium on 26.1.2 is checked only up to the prediction: a frame rendered outside the normal frame loop crashes inside Sodium 0.9.2 for 26.1.2.

Prepares builds for several Minecraft versions from the same sources. For now the only node is 26.2; the jar's version names the Minecraft release it is for. Unit tests run in every node, so the parity tests check against that version's vanilla. Formatting moves to google-java-format, since Spotless can't run on a Stonecutter root.
Two new nodes beside 26.2: 26.1.2, whose jar is labelled 26.1.x and
declares 26.1 to 26.1.2, and 26.3.

- Input uses InputConstants keys and mouse buttons and
  Minecraft.hasShiftDown, which mean the same in every version; 26.3
  numbers mouse buttons differently.
- Version seams live in compat packages, which the formatter skips:
  screens (Minecraft in 26.1, Gui in 26.2), the after-level draw, the
  pipeline vertex format, the level render call and the crosshair mixin
  target (Gui in 26.1, Hud since 26.2).
- 26.3 moved the GPU API into com.mojang.renderpearl.api; sources keep
  the 26.2 names and Stonecutter swaps them, mixin descriptors included.
- 26.3 compiles shaders to SPIR-V: the build rewrites ours for it, with
  #include and explicit locations.
- Physics that changed in 26.3 follows that version: the fishing hook
  falls by 0.03F, and an arrow's hit within the entity margin stays where
  the path enters the inflated box.
- Crossbow ammo is read through ItemStackTemplate, the same in all three.

Version 1.1.0-dev.1.
Base automatically changed from build/stonecutter to main November 16, 2026 18:03
26.2 reversed the depth buffer: it is cleared to 0 and nearer is
greater. 26.1 keeps it forward, so the test for the path behind terrain
passed in open air and failed behind blocks, and the zone's slope bias
pushed it away from the camera. The comparison and the bias sign now
come from the Gpu seam.
@WilyFoxM
WilyFoxM marked this pull request as ready for review November 16, 2026 18:36
@WilyFoxM
WilyFoxM merged commit 156317a into main Nov 16, 2026
6 checks passed
@WilyFoxM
WilyFoxM deleted the feat/mc-26.3 branch November 16, 2026 18:37
@WilyFoxM WilyFoxM mentioned this pull request Nov 16, 2026
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