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 [2021/12/28 19:40] – [Loom 0.2.6 and above] changed redirecting link to target bananatutorial:migratemappings [2022/10/25 19:02] – [Loom 0.2.6 and above] mineblock11
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/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.   
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 === 
   * Specify from where to take your Java files with ''%%--%%input path/to/source''. Default: ''src/main/java''.   * Specify from where to take your Java files with ''%%--%%input path/to/source''. Default: ''src/main/java''.
   * Specify where to output the remapped source with ''%%--%%output path/to/output''. Default: 'remappedSrc'. You can use ''src/main/java'' here to avoid having to copy the remapped classes, but make sure you have a backup.   * Specify where to output the remapped source with ''%%--%%output path/to/output''. Default: 'remappedSrc'. You can use ''src/main/java'' here to avoid having to copy the remapped classes, but make sure you have a backup.
-  * Specify a custom place to retrieve the mappings from with ''%%--%%mappings some_group:some_artifact:some_version:some_qualifier''. Default: ''net.fabricmc:yarn:<version-you-inputted>:v2''. Use ''net.mojang.minecraft:mappings:<minecraft-version>'' to migrate to official Mojang mappings.+  * Specify a custom place to retrieve the mappings from with ''%%--%%mappings some_group:some_artifact:some_version:some_qualifier''. Default: ''net.fabricmc:yarn:<version-you-inputted>:v2''. Use ''net.minecraft:mappings:<minecraft-version>'' to migrate to official Mojang mappings.
  
 === Reporting issues === === Reporting issues ===
tutorial/migratemappings.txt · Last modified: 2022/12/22 16:23 by basil4088