User Tools

Site Tools


tutorial:migratemappings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:migratemappings [2022/07/08 19:20] – external edit 127.0.0.1tutorial:migratemappings [2022/10/26 14:52] nexus-dino
Line 7: Line 7:
 ===== Loom 0.2.6 and above ===== ===== Loom 0.2.6 and above =====
  
-Say you want to migrate from 1.16.5 to 1.17.1.   +Say you want to migrate from 1.16.5 yarn to 1.17.1 yarn.
  
-  - Go [[https://fabricmc.net/versions.html|here]], select the version to migrate to, and copy the Gradle command under "Mappings Migration", for example ''gradlew migrateMappings %%--%%mappings %%"%%1.17.1+build.40%%"%%'' DO NOT modify your gradle.properties or build.gradle yet.   +  - Go [[https://fabricmc.net/develop|here]], select the version to migrate to, and copy the Gradle command under "Mappings Migration", for example ''gradlew migrateMappings %%--%%mappings %%"%%1.17.1+build.40%%"%%'' DO NOT modify your gradle.properties or build.gradle yet.   
   - Run the command in the root of your Gradle project.   - Run the command in the root of your Gradle project.
   - Your migrated sources will appear in ''remappedSrc''. Verify that the migration produced valid migrated code.   - Your migrated sources will appear in ''remappedSrc''. Verify that the migration produced valid migrated code.
Line 16: Line 16:
   - Refresh the Gradle project in your IDE.   - Refresh the Gradle project in your IDE.
   - Check and update any Mixin targets that may be outdated.   - Check and update any Mixin targets that may be outdated.
 +
 +If you want to go from Mojang's official mappings, AKA mojmap, to yarn, make sure your mappings in ''build.gradle'' is set to ''loom.officialMojangMappings()'' before running ''migrateMappings''
  
 === Additional customization ===  === Additional customization === 
tutorial/migratemappings.txt · Last modified: 2022/12/22 16:23 by basil4088