Minecraft source code?

Ba
- in Plugins
7

I want to fix some bugs in Minecraft, like animals falling through the blocks or skeletons spawning when I try to go to bed, etc…

I tried to decompile the Jar online but everything is full of errors in Eclipse. Allegedly missing casts and try / catch etc. The variables and class names are all just something like ("a", "ba", "xi", "kj" etc.)

Sometimes also "if" and "do" which means that Eclipse no longer understands them as names?

So how am I supposed to know what is doing which? There are no comments either.

Legible names are only available in some packages.

Also, I don't understand how I turn it back into a Runnable Jar. It spams everything with errors and wants a "launch configuration"

In addition, the Minecraft launcher tries to download again as soon as I pushed the Jar into the Minecraft folder, as if it knew that it was not the same Jar without starting it 🤔

How can I program the game now?

ps. I Can't install any plugins because this is not a Bukkit.

Gu

The code has probably been made more cryptic so that nobody can analyze or steal this code…

For decompiling I would also recommend the jd-gui

https://java-decompiler.github.io/

they usually decompile better

Hope this helps you.

Ba

The code has probably been made more cryptic so that nobody can analyze or steal this code…

can I encrypt it? So make the names reasonable so that it is more understandable?

I can read zero, but Optifine does it somehow or do they get the source code from Mojang?

I'll test the decompiler, thank you.

Gu

Most of the names are variables, classes or functions, all of which have simply been replaced in the code, this is done quite often, the optifine developers have probably replaced all the variables and all functions… So in any case, you can take it all apart again, which is very time-consuming: / Unfortunately, it won't be that easy

Ba

Well, if I don't get through the code, the unnamed one will be difficult…

Ba

What exactly is a "launch configuration"?

Gu

Run configuration

Ba

And what do I have to do now to make it work? I don't understand anything about Runnable Jar: [

and what is a manifest / meta-inf .dsa .sf, there's Sha1 and the class everywhere?