Mappings Overview (5.0+)
What are obfuscated symbols and mappings?
- Minecraft’s code is obfuscated: class, method, and field names are replaced with gibberish (e.g.,
Minecraft.getInstance()
→fud.R()
). - NeoForge (1.20.2+) remaps these symbols to Official Mojang names, so no extra mapping is needed.
- Fabric uses intermediary mappings: consistent names (e.g.,
net.minecraft.class_310
) across versions, mapping from obfuscated names.
How Minescript 5.0 handles mappings
- In Pyjinn scripts, use official Mojang names.
- NeoForge works directly.
- Fabric requires mapping from official names → obfuscated → intermediary names.
- Minescript automatically handles this if mappings are installed.
Installing mappings
-
Run
\install_mappings
in Minescript 5.0b4+.- Downloads Official Mojang mappings for your Minecraft version.
- Downloads Fabric intermediary mappings (if using Fabric).
- Loads mappings into memory for fast runtime access.
-
NeoForge does not require mappings.
Download(Before 5.0b4)
- install_mappings.pyj (made by @maxuser)
- mappings_downloader.py (made by @RazrCraft)
Quick Setup
install_mappings.pyj
- Place
install_mappings.pyj
in the/minescript/
folder. - Run in Minecraft:
\install_mappings
mappings_downloader.py
- Place
mappings_downloader.py
in the/minescript/
folder. - Run in Minecraft:
\mappings_downloader
-> Detects your Minecraft version and downloads the mapping files. - Reload mappings:
\reload_mappings
-> Ready to use Java classes in Pyjinn scripts.
Troubleshooting
- If you see:
java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
- It means mappings are missing or not reloaded.
- Run
\mappings_downloader
and then\reload_mappings
again.
- Run