Prerequisites: Experience with ComputerCraft, Java and the Minecraft Forge Library
First, make sure you have a Github account and have installed git and/or a Github client. If you need help learning how to use git and Github, read these articles Then, navigate to the top right of the page, where you will find a button called 'Fork' Click it to fork the repo, then clone your fork to your computer by using this on the bottom right.
Note: When you see any gradlew
command, the input will have to change base on your OS.
Windows: Ignore this, you're good to just copy and paste commands!
Mac: Prefix each command with sh
, so gradlew clean
becomes sh gradlew clean
Linux/Other: Prefix each command with ./
, so gradlew clean
becomes ./gradlew clean
Now, just run these following commands (in order!) before doing anything to start developing
gradlew clean --refresh-dependencies
gradlew setupDecompWorkspace
- If you use Intellij:
gradlew idea
or if you use Eclipse:gradlew eclipse
Finally, add the follow VM option to your run configuration for Minecraft:
-Dfml.coreMods.load=com.austinv11.collectiveframework.minecraft.asm.CollectiveFrameworkEarlyTransformerPlugin,com.austinv11.peripheralsplusplus.asm.PeripheralsPlusPlusTransformerPlugin
You should know what to do
Simply run gradlew build
and navigate to the build/libs directory relative to the project directory
So, you followed everything and you believe that your contribution is good enough to be included? If so, make the Pull Request! Please refer to your preferred method of using git's documentation if you don't know how.
If you wish to have your pull request approved, you must follow my conventions.
Tabs, it must be tabs. No, I don't care why you think spaces are better.
Please use 1tbs with the exception that one line conditional statements do not need brackets. Yes, I know, your style is better, blah blah blah.
I use standard java naming conventions and try to follow Mojang's naming conventions for classes
Yes, I know, I am a horrible person for making Peripherals++ require a dependency. Get over it. Collective Framework (the dependency) is really cool and contains a lot of helpful things for both mod development and general Java development. Please have a look at it before you decide that you hate it. Plus, it has a maven repository (which is linked in Peripheral++'s build.gradle)! So you don't need to worry about dependency management when developing.
Contact me. Tweet me or message me on CurseForge or Reddit