MCP-Reborn icon indicating copy to clipboard operation
MCP-Reborn copied to clipboard

How do I use MCP to decompile/edit the server?

Open PolymorphicAgent opened this issue 3 years ago • 3 comments

I have been able to successfully mod the client with MCP-reborn, but noticed that there were some other folders in the directory: src/test/java. Upon researching this, I learned that this was for modding server software. How would I do this? (I don't see a runserver or a build server gradle task)

PolymorphicAgent avatar Jan 20 '22 20:01 PolymorphicAgent

"src/test" has nothing to do with server side code.

If you want to run the server, you can use my fork, which merges jacobo's changes and updates to 1.18:

https://github.com/TheKodeToad/MCP-Reborn

TheKodeToad avatar Jan 27 '22 10:01 TheKodeToad

ok, I will try that. What is src/test for anyways?

PolymorphicAgent avatar Jan 28 '22 12:01 PolymorphicAgent

By the way, I haven't tested it.

"src/test" is for testing your code. It is used by many projects to test whether the code is reliable.

For example, you may have a function that concatenates strings. If you were trying to do things properly, you'd create a test that checks if the results of that function were correct. Of course, that would be over-engineering, but that's just an example.

TheKodeToad avatar Jan 29 '22 09:01 TheKodeToad

I've just spent about 5 hours trying to see how to deobfuscate, edit, reobfuscate and test SERVER code like I used to with MCP back in the ~v1.6.4 days. Am I beating my head on a rock? I want to mod the SERVER, not a client.

Can anyone tell me if MCP-Reborn will even do this? If not, what will? FYI, I'm used to Eclipse but I really don't care what IDE I need to use.

michaelklann avatar Sep 22 '22 01:09 michaelklann

@michaelklann

  1. This is not MCP Support.
  2. Download the minecraft server jar (I won't explain how).
  3. Run decompile once. You should se a message about that the server was not found. Place the server jar where it says and run decompile again.
  4. Open Eclipse. There is a project called Server.

@pete-the-dev Paste this task in your build.gradle and reload. The you have a runserver tasks. Alternatively you can download the newest MCP-Reborn for 1.19.2.

vinc3nz avatar Sep 22 '22 04:09 vinc3nz

Close this please.

vinc3nz avatar Sep 22 '22 04:09 vinc3nz

sorry i forgot about this

PolymorphicAgent avatar Sep 27 '22 12:09 PolymorphicAgent