0x000 Preface
The idea of making a plugin came to me recently, and I'm documenting it on CSDN. I will not be held responsible if you get Ban'd on the server using this plugin.
0x001 Java&Python Installation
For the installation of Java you should know, I will not say more, you can refer to thethis oneTutorial.Java must download JDK 8!!!! Otherwise you will get an error when compiling the project!
Python is also known to everyone, so you can refer to thethis oneTutorial.Python must download Python 2!!!! Python 3 won't work!!!!
0x002 MCP Download
Normal productionMy WorldModules should use Forge or Fabric, but what we are making is after all an external plugin, and Forge is not powerful enough. That's when you need to use MCP. You can think of MCP as My World that has been decompiled. In this way, we can modify the game source code as well as add new classes to realize the function of injection.
MCP official website:/
When you enter the official website you see this page**Select Download (1.8.8)!!!!! Otherwise the MC version is wrong! **Unzip the folder after the download is complete and put the folder on your desktop.
0x003 My World Jar File
First of all, you have to have a genuine My World account, the specific purchase tutorial on the B site. Then, open my world official launcher, select the Java version, select the upper right corner of the "configuration".Click on "New Configuration".Select the version as 1.8.8 and click New.Go back to the start game screen, select the version 1.8.8 you just created and click start game. Wait about 10 seconds after the game starts and close the game. Go back to the launcher, select Configuration, click the three dots to the right of the one you just created and click Edit.Next to Version, select the download server. Wait for the server's Jar file to finish downloading, then put this Jar file into the jars folder under your MCP folder, and you're done.
0x004 Configuring the MCP
expense or outlayWin+ROpen the Run window and typecmd
Open the command line. Use thecd
command to switch to your MCP folder. If your folder on the desktop is called mcp918, the command iscd Desktop/mcp918
. Then, runYou can decompile My World. Now, all of the My World source code is in the
src
folder.
0x005 Configuring IntelliJ
Open the MCP folder as a project with IntelliJ and use theCtrl+;Open the Project Configuration and select Libraries, the third Libraries from the top on the left (I'm in English). Then, place thejars/libraries
All the Jar files in all the folders under the library are added to the library. In addition to that, you need to add the entirelib
folders andjars/versions/1.8.8/1.8.
. Click Apply, and then tap OK. your current project configuration page should look almost like this:Now, your IntelliJ is configured!
- END -
If you run into any problems you can post them in the comments section and I'll respond as soon as I can!