Skip to content

feat: port to Minecraft 26.1.2#3

Merged
Natxo09 merged 2 commits into
mainfrom
26.1
Jun 12, 2026
Merged

feat: port to Minecraft 26.1.2#3
Natxo09 merged 2 commits into
mainfrom
26.1

Conversation

@Natxo09

@Natxo09 Natxo09 commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Ports the mod to Minecraft 26.1.2 (the first deobfuscated Minecraft release). main moves to the 26.1 line; the existing 1.21.11 line is preserved on the new 1.21.11 branch for back-support.

Build / toolchain

  • Loom plugin → net.fabricmc.fabric-loom (non-remap — 26.1 ships deobfuscated); dropped the mappings line; implementation/jar instead of modImplementation/remapJar.
  • Gradle 9.3.0 → 9.5.1, Java 21 → 25.
  • MC 26.1.2, Fabric Loader 0.19.3, Loom 1.17.11, Fabric API 0.151.0+26.1.2.

Code changes (26.1 API)

  • Difficulty.getKey()getSerializedName()
  • weather/day-time moved off LevelDataLevel.isRaining()/isThundering(), Level.getOverworldClockTime() (new WorldClock); getDayCount() removed → derived as clockTime / 24000

Versioning

  • Releases the 26.1 line as 2.0.0. Modrinth versionNumber now embeds the MC version (2.0.0+26.1.2) so the 1.21.11 and 26.1 lines never collide.
  • MODRINTH_README.md made version-agnostic (it is the single shared Modrinth project body).

Testing

  • ./gradlew build green on JDK 25.
  • runServer on 26.1.2: boots clean; /api/serverversion: 26.1.2, difficulty: easy; /api/world → time/weather/difficulty all correct.

Natxo09 added 2 commits June 12, 2026 12:08
Minecraft 26.1 ships deobfuscated, so the build no longer remaps:

- Switch the Loom plugin to net.fabricmc.fabric-loom (non-remap), drop the
  mappings line, and use implementation/jar instead of modImplementation/remapJar.
- Bump Gradle to 9.5.1 and target Java 25 (required by 26.1).
- Update deps: MC 26.1.2, Loader 0.19.3, Loom 1.17.11, Fabric API 0.151.0+26.1.2.

Fix API calls changed in 26.1:
- Difficulty.getKey() -> getSerializedName()
- weather/day-time moved off LevelData to Level (isRaining/isThundering,
  getOverworldClockTime; getDayCount removed -> clockTime / 24000)

Release the 26.1 line as 2.0.0; Modrinth versionNumber now includes the MC
version (2.0.0+26.1.2) so the 1.21.11 and 26.1 lines stay unique.
- README/CLAUDE: Minecraft 26.1.2, Java 25, deobfuscated API inspection notes.
- MODRINTH_README is the single shared Modrinth body, so keep it version-agnostic
  (covers both the 1.21.11 and 26.1 lines).
- Document the one-branch-per-MC-version strategy and the ${mod_version}+${mc}
  Modrinth versioning scheme.
@Natxo09 Natxo09 merged commit d8eef97 into main Jun 12, 2026
2 checks passed
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