question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TODO] Migrate to the official Mojang mappings

See original GitHub issue

Assuming upstream does it too, it will massively help with compatibility, easier updating, and generally similarity to the Forge Create. There is no reason not to do it for the Forge version, it’s even the default in newer Forge MDKs.
You won’t be able to contribute to Yarn if you saw Mojmap, and you’ll need convert names to Yarn when asking for help in Fabricord, but those are the only reasons to not use Mojmap.

When the time comes, how will we do it?

  • gradle migrateMappings --mappings="net.minecraft:mappings:<version>" will hopefully work, otherwise manual remapping or manual Mercury usage
  • Apply the following patch to build.gradle:
--- build.gradle	2021-03-20 17:13:38.802497404 +0200
+++ build.gradle	2021-03-20 17:15:14.299166464 +0200
@@ -43,12 +43,7 @@
 
 dependencies {
 	minecraft("com.mojang:minecraft:${project.minecraft_version}")
-
-	/*
-	 *  TODO Mojmap
-	 *  mappings(minecraft.officialMojangMappings())
-	 */
-	mappings("net.fabricmc:yarn:${project.yarn_mappings}:v2")
+	mappings(minecraft.officialMojangMappings())
 	modImplementation("net.fabricmc:fabric-loader:${project.loader_version}")
 
 	// Fabric API. This is technically optional, but you probably want it anyway.

  • And the following patch to gradle.properties:
--- gradle.properties	2021-03-16 20:50:35.858660233 +0200
+++ gradle.properties	2021-03-20 17:16:29.489168349 +0200
@@ -4,7 +4,6 @@
 # Fabric Properties
 # check these on https://fabricmc.net/use
 minecraft_version = 1.16.5
-yarn_mappings = 1.16.5+build.5
 loader_version = 0.11.3
 
 # Mod Properties

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hYdoscommented, Jun 9, 2021

You won’t be able to contribute to Yarn if you saw Mojmap

You are making false statements of fact. i have contributed to yarn and have seen both Mojmap and Mcp.

0reactions
TropheusJcommented, Aug 13, 2021

oh yeah this happened

Read more comments on GitHub >

github_iconTop Results From Across the Web

tutorial:migratemappings [Fabric Wiki]
Go here, select the version to migrate to, and copy the Gradle command ... If you want to go from Mojang's official mappings,...
Read more >
How to Migrate Your Mojang Account to a Microsoft Account
Login to minecraft.net with your Mojang account and find the prompt IT'S YOUR TURN TO MOVE! on your profile page and click MOVE...
Read more >
Switch from Yarn to Mojang mappings #4 - GitHub
Since then, Mojang have released their own (official) mappings, and these have seen ever increasing adoption in the modding community.
Read more >
Tutorials/Map downloads - Minecraft Wiki - Fandom
Importing into Minecraft · Open the saves ‌ or minecraftWorlds ‌ folder. You will notice all your worlds are here. · Paste that...
Read more >
Solved - Migrate to Mojang Mappings Error - SpigotMC
Hello All, I am attempting to migrate to Mojang Mappings for some of my previous plugins that contained obfuscated NMS code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found