Porting to 26.2 26.2
Guidelines for porting to Minecraft 26.2, the latest version of Minecraft.
Minecraft is a game that's constantly evolving, with new versions changing the game in ways that affect modders. This article covers the general steps one might follow to update their mod to the newest stable version of Minecraft.
INFO
These docs discuss migrating from 26.1 to 26.2. If you're looking for another migration, switch to the target version by using the dropdown in the top-right corner.
Updating the Build Script
Start by updating your mod's gradle/wrapper/gradle-wrapper.properties, gradle.properties, and build.gradle to the latest versions. If you run into trouble, consider referencing the Fabric Example Mod.
- Update Gradle to the latest version by running the following command:
./gradlew wrapper --gradle-version latest - Bump Minecraft, Fabric Loader, Fabric Loom and Fabric API, either in
gradle.properties(recommended) or inbuild.gradle. Find the recommended versions of the Fabric components on the Fabric Develop site. - Refresh Gradle by using the refresh button in the top-right corner of IntelliJ IDEA. If this button is not visible, you can force caches to be cleared by running
./gradlew --refresh-dependencies.
Updating the Code
After the build script has been updated to 26.2, you can now go through your mod and update any code that has changed to make it compatible with the snapshot.
- Fabric for Minecraft 26.2 on the Fabric blog contains a high-level explanation of the changes made to Fabric API in 26.2.
- Minecraft: Java Edition 26.2 on the Minecraft blog is the official overview of the features introduced in 26.2.
- Java Edition 26.2 on the Minecraft Wiki is an unofficial summary of the contents of the update.
- NeoForge's Minecraft 26.1 -> 26.2 Mod Migration Primer covers migrating from 26.1 to 26.2, focusing only on vanilla code changes.


