Jump to content

Recommended Posts

Posted

How would I decompile and deobfucate Minecraft so that I can view the source code and make changes to it? I'm fairly sure MCP does it but as far as I am aware it has been discontinued. Thanks!

Posted
15 minutes ago, s1320dazkj02 said:

How would I decompile and deobfucate Minecraft so that I can view the source code and make changes to it? I'm fairly sure MCP does it but as far as I am aware it has been discontinued. Thanks!

Discontinued... MCP isn't discontinued.. it's still used to develop forge and mods. And besides, why do you want to change the source code? Most of the time a forge mod should be sufficient...

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Posted

Here's mcForge forum. You may well not ask about MCP or code patching here.

About forge, take a look at forgegradle - there's a great tutorial of Getting Started.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted (edited)

You will have the readonly access to the source code. There are various registries and events to change vanilla behavior and introduce your features.

 

And imo for now the document page is nearly complete. You should find the way yourself if you want to do something beyond.

EDIT: also in this forum we will help you if you have difficulties somewhere. If you know basics java.

Edited by Abastro

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Follow this to set up a forge project.

 

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted (edited)
1 hour ago, diesieben07 said:

Sorry, but this is probably way outdated. The documentation has a Getting Started guide.

Oops. Didn't take a look on it. Sorry.

Edited by Abastro

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • 2 weeks later...
Posted

I used the guide to setup the gradle workspace (and I can successfully run a custom mod from Eclipse), but where do I actually find the mentioned decompiled source code of the game? I can only find my own src files... :/

Posted (edited)
1 hour ago, Alekseyev said:

I used the guide to setup the gradle workspace (and I can successfully run a custom mod from Eclipse), but where do I actually find the mentioned decompiled source code of the game? I can only find my own src files... :/

 

Your IDE project will have forgeSrc-<forge_version>.jar as a referenced library, this contains the Minecraft and Forge classes.

 

It should also have the source JAR (forgeSrc-<forge_version>-sources.jar)  attached. If it hasn't and your IDE asks you to attach sources, the source JAR will be in the same directory as the regular JAR.

Edited by Choonster
  • Like 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
34 minutes ago, Choonster said:

 

Your IDE project will have forgeSrc-<forge_version>.jar, this contains the Minecraft and Forge classes.

 

It should also have the source JAR (forgeSrc-<forge_version>-sources.jar)  attached. If it hasn't and your IDE asks you to attach sources, the source JAR will be in the same directory as the regular JAR.

Thanks! For some reason, I must have completely missed the net folder... and used MCP due to that. Now after having asked, I find it... classic.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.