4

Java edition code source

minecraftstove 9/3/25 4:59 am
360
9/20/2025 4:40 am
i am looking inside of the minecraft code, i can find the block textures, recipes, loot tables by unpacking the version jar file but not things like villager trades, mob behavior, world rules, block spawn distributions etc
are they in the encrypted class files or are they in the launcher? they must be somewhere. i know "install mods" but the mods must work on something in the games source. where is the rest of the games code located and how do i read it?
i am looking at java versions before 1.19
Posted by
minecraftstove
Level 1 : New Miner
0

  Have something to say?

JoinSign in

7

GarnishHat
09/20/2025 4:40 am
Any/All • Level 38 : Artisan Engineer Modder
You'd likely want to look into modding, such as with Fabric (Kaupenjoe is a great tutor for that as well)
1
GarnishHat
09/20/2025 4:40 am
Any/All • Level 38 : Artisan Engineer Modder
he goes over everything in immense details for you, from start to finish and for numerous versions :D
1
minecraftstove
09/06/2025 7:32 am
Level 1 : New Miner
https://ibb.co/QjMZ6JTb

heres what i can see (image upload not working)
1
NenfDev
09/03/2025 9:14 am
Level 1 : New Server owner
history
All the non-data logic is in the game JARs (client.jar/server.jar) as obfuscated Java under net.minecraft not in the launcher. Decompile (Vineflower/CFR) and apply mappings MCP (1.8–1.12.2), Yarn (1.14+), Mojang (1.16+) then check GameRules, villager trade classes, spawner/biome code; older worldgen is code (WorldGenMinable), newer uses data/minecraft/worldgen JSON. Mods hook this via Forge/Fabric events/Mixins after remapping.
5
minecraftstove
09/06/2025 7:31 am
Level 1 : New Miner
decompileri cant see any of that
please explain it to me like i dont understand what i am doing
1
minecraftstove
09/04/2025 6:39 pm
Level 1 : New Miner
how do i use decompiler.jar and how do i recompile it so it works
1
NenfDev
09/09/2025 6:21 am
Level 1 : New Server owner
All the logic is in client.jar or server.jar under net.minecraft. To just read it, download CFR from https://www.benf.org/other/cfr/ and run: java -jar cfr.jar server.jar --outputdir out. The names will look like gibberish and you cannot recompile that. If you want readable names and something you can actually run, use a mod template. Fabric example mod: https://github.com/FabricMC/fabric-example-mod (clone, open in IntelliJ, run ./gradlew genSources then ./gradlew runClient). Forge MDK: https://files.minecraftforge.net/ (download MDK, unzip, import, run the Gradle tasks). Then search the mapped sources for GameRules, villager trades, spawns, and biome code, and make your changes as a mod instead of touching the game jar.
1

Welcome