Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Fabric Kotlin Extensions Wiki › Guides › Remap and Manage Obfuscated Code in Your Mod

Remap and Manage Obfuscated Code in Your Mod

Using Tiny Remapper for Code Mapping

Tiny Remapper is included to help you work with obfuscated Minecraft code and remap it to human-readable names. This is essential for mod development since Minecraft's code is obfuscated by default.

1. Prepare your mapping files (typically in Tiny or Intermediary format)

2. Use Tiny Remapper to apply these mappings to your mod's JAR or source code

3. Verify that all references are correctly remapped

Mapping IO for File Management

Mapping IO handles reading and writing mapping files in various formats. This allows you to:

  • Convert between different mapping formats
  • Merge multiple mapping files together
  • Update mappings when Minecraft versions change

These tools work together in your build pipeline to ensure your mod code stays synchronized with Minecraft's obfuscation state. Most mod developers use this during the compilation step to automatically remap dependencies and generated code.