Skip to content

Port to Minecraft 26.1.2 (Fabric-only)#65

Closed
grepsedawk wants to merge 1 commit into
Gjum:mainfrom
grepsedawk:26-1-2
Closed

Port to Minecraft 26.1.2 (Fabric-only)#65
grepsedawk wants to merge 1 commit into
Gjum:mainfrom
grepsedawk:26-1-2

Conversation

@grepsedawk

@grepsedawk grepsedawk commented Jun 28, 2026

Copy link
Copy Markdown

What

Ports SnitchMod to Minecraft 26.1.2 as a single Fabric mod.

Why Fabric-only

26.1 ships deobfuscated, so there are no mappings and no refmap; names are identical at compile time and run time. Native Fabric Loom handles this directly.

Architectury Loom has no native 26.1 support yet (architectury-loom#328). You can coax it into building 26.1 through the loom-no-remap variant plus manual shadowJar wiring and access-widener to access-transformer conversion, but that is a pile of hacks to carry. Most people run Fabric, so this drops the multi-loader setup and collapses common/fabric/forge/neoforge into one Fabric module. Much less to maintain.

If keeping Forge/NeoForge matters for this project, say so and I'll redo it multi-loader on the no-remap path instead.

Changes

  • Single Fabric module on native fabric-loom, no mappings block, no refmap
  • Drop the Architectury and Shadow plugins; bundle sqlite-jdbc with Loom's jar-in-jar instead of shading it
  • Java 25 and Gradle 9.5.1, both required by 26.1
  • API renames the port surfaces: KeyMappingHelper, LevelRenderEvents, ContainerInput, and ChatComponent.addClientSystemMessage
  • CI builds and uploads a single Fabric artifact on JDK 25

Rebased on latest main, so the recent text-rendering and auto-scroll fixes are in. Tested in-game by Estalia.

@MrJeremyFisher

Copy link
Copy Markdown
Contributor

Architectury loom can build 26.1 and up? Did you read the issue you mention?

Minecraft 26.1 ships deobfuscated, so there are no mappings and no
refmap; names are identical at compile time and run time. Native Fabric
Loom handles this directly.

Architectury Loom has no native 26.1 support yet (architectury-loom#328).
You can coax it into building 26.1 through the loom-no-remap variant plus
manual shadowJar wiring and access-widener to access-transformer
conversion, but that is a pile of hacks to carry. Most people run Fabric,
so this drops the multi-loader setup and collapses
common/fabric/forge/neoforge into one Fabric module. Much less to
maintain.

Drop the Architectury and Shadow plugins; bundle sqlite-jdbc with Loom's
jar-in-jar instead of shading it. Move to Java 25 and Gradle 9.5.1, both
required by 26.1. Fix the API renames the port surfaces: KeyMappingHelper,
LevelRenderEvents, ContainerInput, and ChatComponent.addClientSystemMessage.
@grepsedawk

grepsedawk commented Jun 29, 2026

Copy link
Copy Markdown
Author

Yes, but not natively and requiring hacks. This just drops support for loaders most people aren't using. Updated commit message to express that part.

Also happy to maintain a 26.1 fork in the meantime, or apply these hacks, if that would be preferable. Or, looks like #67 solves the build in an alternative way, too

@grepsedawk

Copy link
Copy Markdown
Author

Closing as dupe of #67

@grepsedawk grepsedawk closed this Jun 29, 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.

2 participants