- Yarn is community-named, open-source mapping for Fabric with full method parameters.
- Mojmap is Mojang's official naming, published with every release since 1.14.4.
- Both sit on top of stable layers, so readable names can change without breaking mods.
- Many Fabric projects now build on a Mojmap base and apply Yarn remappings on top.
Yarn is community-named, open-source mapping for Fabric that ships descriptive names and full method parameters. Mojmap is Mojang's own official naming, published with every release since 1.14.4. Pick Yarn if you want a free, well-documented naming scheme; pick Mojmap if you want names that match Mojang's own and never drift.
What each one is
Yarn is a mapping set maintained by FabricMC. Volunteers assign readable names to the obfuscated classes, fields, and methods in Minecraft, and those names sit on top of the stable Intermediary layer so they can be renamed without breaking compiled mods.
Mojmap is the official mapping table Mojang publishes alongside every release from 1.14.4 onward. The names come straight from Mojang's own source, so they match what the developers call things internally. It replaced MCP and Searge as the default for any new project.
How they differ
The split comes down to who picks the names and how the license treats them. Yarn names are chosen by the community and are free to use and share. Mojmap names are Mojang's, and the license has historically been generous about compile-time use but more careful about redistribution. Modern loaders handle that for you.
| Yarn | Mojmap | |
|---|---|---|
| Who names things | FabricMC community | Mojang (official) |
| First available | Fabric era | 1.14.4 onward |
| Method parameters | Named and documented | Often missing |
| Licensing | Open, free to share | Permissive at compile time |
| Stable layer underneath | Intermediary | Obfuscation map per release |
| Best fit | Fabric mods wanting docs | Projects matching Mojang source |
Which to choose
- Choose Yarn if you build on Fabric and want descriptive names, named method parameters, and inline documentation. It is the long-standing default for the Fabric ecosystem.
- Choose Mojmap if you want names that match Mojang's own source, plan to share code with people on other loaders, or are targeting 1.21 or later where official mappings are the common baseline.
- Many Fabric projects now build against a Mojmap base and apply Yarn remappings on top, so you do not always have to pick just one.
How they connect to other mappings
Both sit in a longer history. Before Mojang published mappings, the modding scene used MCP and Searge to reverse the obfuscated names. From 1.14.4, Mojmap made official naming available, and Yarn grew as the open Fabric alternative layered over Intermediary. The Intermediary layer is what keeps mods compatible across mapping renames.
FAQ
Both work on Fabric. Yarn has been the ecosystem default and ships named parameters plus documentation, while Mojmap matches Mojang's own names. Choose by which naming and tooling your team prefers.
No. The obfuscated names look like a.a.a. Mojmap maps those to the readable names Mojang uses internally, published per release.
Yes, in a sense. Some Fabric setups build on a Mojmap base and apply Yarn remappings, so the two coexist in one toolchain rather than competing directly.
Both made MCP and Searge obsolete for new work from 1.14.4 onward. Older 1.7 to 1.12 projects still rely on MCP naming.