Files
Minecraft1.12SRC/README.md
2020-07-20 00:21:55 +08:00

89 lines
3.2 KiB
Markdown

# mcp940
Source code of minecraft 1.12
## How to run
**Note: Please prepare proxy tools such as SSR because of large project file size.**
Clone this project from github to your workspace:
```shell script
git clone https://github.com/WangTingZheng/mcp940
cd mcp940
```
Open IDEA, open another project and select:
```
File-> New-> Project from Existing Sources...
```
![open](./image/open.png)
Open /eclipse, chose `Import project from external model` and select Eclipse
![eclipse](./image/import-eclipse.png)
And click `next`, do not change anything
![path](./image/import-path.png)
Deselect `Server` and next:
![client](./image/import-client.png)
And next, next until IDEA open this project, select jdk1.8 and dismiss the error about `Imported project refers to unknown jdks JavaSE-1.6` .
![idea](./image/project.png)
Open Modules facets and add `vecmath-1.5.2.jar` in `/lib` jars to modules Client:
![jar](./image/mod.png)
Run main method in `/minecraft/Start.java`, you will get a exception:
```java
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:87)
at org.lwjgl.Sys.<clinit>(Sys.java:117)
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:3282)
at net.minecraft.client.main.Main.main(Main.java:39)
at Start.main(Start.java:11)
```
Open `Edit Configurations` :
![conf](./image/conf.png)
Fill `Fill in this input box` in `VM options` input box and change `your project folder\ecilpse` to `your project folder\jars` and click ok.
![start](./image/start.png)
Rerun main method in Start .java
![mc](./image/minecraft.png)
## How to develop
- fork this project to your account
- do [How to run](https://github.com/WangTingZheng/mcp940/#How-to-run) to setup project
- to new a branch and add feature or fix a bug in this new branch
- commit you code and merge new branch to master when feature done or bug fixed
- to my [project](https://github.com/WangTingZheng/mcp940) to new a [pull request](https://github.com/WangTingZheng/mcp940/pulls), I will check your commit and merge into my project
- more detail about how to develop a project in Github please view this [video](https://www.bilibili.com/video/BV1Ff4y1R7cN?p=2)
## Waiting for fixing
- Only support English, No Chinese.
- No any music and sound effects.
## Ref
- [[教程]全民写端-MCP918配置&Optifine装载&EventAPI](https://www.bilibili.com/video/BV1W741127EZ): builds mcp918 bases on minecraft 1.8
- [mcp940.zip](http://www.modcoderpack.com/): The origin source code of Minecraft client 1.12 & server 1.12
- [Optifine SRC Version [1.12 HD U A4]](https://optifinesource.co.uk/downloads/1-12.html): Optifine package
- [DarkMagician6-eventapi.zip](https://bitbucket.org/DarkMagician6/eventapi/downloads/): A event api to listen event in minecraft
- [vecmath-1.5.2.jar](https://mvnrepository.com/artifact/javax.vecmath/vecmath/1.5.2): 3D Vector Math Package