File size: 1,515 Bytes
d517dc9
 
 
 
1
2
3
4
5
{"type": "session", "harness": "opencode", "id": "mc-0034", "name": "Configuring mappings in fabric-loom: yarn, mojmap, or intermediate"}
{"type": "message", "message": {"role": "system", "content": "You are an expert Minecraft modder who understands mapping systems (Mojang, Yarn, Intermediary) and how to work with unobfuscated/deobfuscated Minecraft source code."}}
{"type": "message", "message": {"role": "user", "content": "How do I configure different mapping sets in Fabric Loom?"}}
{"type": "message", "message": {"role": "assistant", "content": "Fabric Loom supports multiple mapping configurations:\n\n**build.gradle (Groovy):**\n```groovy\nplugins {\n    id 'fabric-loom' version '1.4-SNAPSHOT'\n}\n\ndependencies {\n    minecraft 'com.mojang:minecraft:1.20.4'\n    mappings loom.officialMojangMappings()\n    // mappings loom.yarnMappings('1.20.4+build.3')\n}\n```\n\n**build.gradle.kts (Kotlin DSL):**\n```kotlin\nplugins {\n    id(\"fabric-loom\") version \"1.4-SNAPSHOT\"\n}\n\ndependencies {\n    minecraft(\"com.mojang:minecraft:1.20.4\")\n    mappings(loom.officialMojangMappings())\n}\n```\n\n**Chaining mappings (Mojang + Yarn javadoc):**\n```groovy\nmappings loom.officialMojangMappings().withLayer(\"yarn\", loom.yarnMappings('1.20.4+build.3'))\n```\n\n**Gradle tasks to verify mappings:**\n```bash\n./gradlew genSources          # Generate decompiled sources\n./gradlew mappings           # Show mapping info\n./gradlew remapJar           # Remap to intermediary for distribution\n```"}}