aboutsummaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..d7042f7
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,21 @@
+# Contributing
+We recommend the use of an IDE, specifically [Intellij Idea](https://www.jetbrains.com/idea/). This guide will be based on Intellij and might be slightlmy different for other Ides.
+### Prerequisites
+- A Java 17 or up JDK
+- A Java 8 JDK
+### Setting up IDE
+Your project JDK should be set to Java 8, to do this in Intellij go to `File > Project Structure` and set `SDK` to your Java 8 JDK.
+Your Gradle JDK should be set to Java 17 or up, to do this in Intellij go to `File > Settings > Build, Execution, Deployment > Build Tools > Gradle` and set `Gradle JVM` to a Java 17 JDK.
+Then you might have to reload your Gradle project, to do this click Gradle in the top right and then click the reload button.
+
+Now in the Gradle tab under the `loom` you should run the `setupGradle` task and then under the `ide` tab you should run the `genIntellijRuns` task.
+This will allow you to run Minecraft with your ide and use the debugger.
+To login in to your Minecraft account while in your development enviroment, we recommend the use of [DevAuth](https://github.com/DJtheRedstoner/DevAuth)
+
+# Pull Requests
+To add your code to OneConfig, please open a pull request.
+Guidelines for pull requests:
+- **Clear description**: Make sure you document **what** was changed and **why** the change was needed.
+- **One pull request per feature**: Please open an individual pull request for each new feature or for each bug fix, this makes it easier for us to keep track of everything.
+- **Update documentation**: Please update the documentation of features your pull request effects, and if you don't have access to this docmentation please state it in your pull request description.
+- **Backwards compatibility**: Please keep in mind that OneConfig **has** to be backwards compatible, if you change anything about the public API that can break mods that use OneConfig, your pull request will be instantly denied.