OpenComputers: Rebooted for Minecraft 1.21.1 uses Java 21, NeoForge, Gradle, Java, and Scala.
You do not need to install Gradle separately. The repository includes the Gradle wrapper.
Install a Java 21 JDK.
Good options include:
- Eclipse Temurin 21
- Microsoft OpenJDK 21
- Oracle JDK 21
Make sure you're installing a JDK, not just a JRE.
You can check it from a command prompt:
java -version
You should see Java 21 somewhere in the output.
The easiest IDE for working on OpenComputers: Rebooted is IntelliJ IDEA.
The free Community Edition is fine.
Once installed, also install the Scala plugin:
- Open IntelliJ.
- Go to Settings → Plugins.
- Search for
Scala. - Install the official JetBrains Scala plugin.
- Restart IntelliJ if prompted.
OpenComputers: Rebooted contains both Java and Scala code, so this plugin is important.
Either clone the repository with Git:
git clone https://github.com/CaitlynMainer/OpenComputers.gitOr download the repository as a ZIP from GitHub and extract it somewhere.
If you plan to make changes or submit pull requests, cloning with Git is strongly recommended.
In IntelliJ:
- Choose Open.
- Select the OpenComputers: Rebooted repository folder.
- Open the folder itself, not an individual file.
- IntelliJ should detect
build.gradleand import the project as a Gradle project.
Gradle will then download Minecraft, NeoForge, mappings, Scala, and the other development dependencies.
If IntelliJ asks which JDK Gradle should use, select Java 21.
You can verify this under:
Settings
→ Build, Execution, Deployment
→ Build Tools
→ Gradle
→ Gradle JVM
Set it to a Java 21 JDK.
On Windows, open a terminal in the repository and run:
.\gradlew.bat buildOn Linux/macOS:
./gradlew buildIf everything is set up correctly, the build should eventually finish with:
BUILD SUCCESSFUL
Built OpenComputers: Rebooted JARs will appear under:
build/libs/
You can launch the development client through IntelliJ using the generated Minecraft client run configuration.
You can also launch it directly through Gradle.
.\gradlew.bat runClient./gradlew runClientDo not manually launch NeoForge's internal dev launcher class. Let Gradle prepare and start the development environment.
If IntelliJ complains about a missing file such as:
build/moddev/clientRunVmArgs.txt
run:
.\gradlew.bat prepareClientRunThen try launching the client again.
Normally runClient handles this automatically.
The project is fairly large, but these are the main directories you'll probably care about.
src/main/java/
src/main/scala/
Much of the original OpenComputers implementation is written in Scala.
src/main/resources/
This contains things such as:
- Models
- Textures
- Recipes
- Tags
- Language files
- Loot tables
- OpenOS files
- In-game documentation
src/main/java/li/cil/oc/api/
This contains much of the public API used by addons and integrations.
For simple changes:
- Change something in IntelliJ.
- Launch the Minecraft development client.
- Test the change in-game.
- Stop Minecraft.
- Make another change.
- Repeat.
Before committing a substantial change, run:
.\gradlew.bat buildThis catches many Java, Scala, resource, and packaging problems.
OpenComputers is an old and fairly large codebase that mixes Java and Scala.
You do not need to understand the whole project before contributing.
Find the part you want to change, look at nearby code for examples, make a small change, build it, and test it in the development client.