These instructions assume you have cloned the repo, git clone git@github.com:MightyPirates/OpenComputers.git
and are working from the master-MC1.7.10 branch, currently the default branch.
./gradlew setupDecompWorkspace
./gradlew build
./gradlew idea
./gradlew idea
OpenComputers_api
, OpenComputers_main
, and OpenComputers_test
. Right click on the others and choose to delete them.OpenComputers_api
and OpenComputers_main
. In the middle pane select OpenComputers_api
, in the right pane select “Paths” and change the “Output path:” from ending in /main to end in /apiOpenComputers_api
as well as OpenComputers_main
. Select “Dependencies” in the right pane. A large list of dependencies are listed. All, by default due to importing the gradle properties, will default to “Compile”. Set all of the following to “Provided”OpenComputers_api
as well as OpenComputers_main
.Use classpath of module
(left Alt+O) to OpenComputers.main
for both Minecraft Client
and Minecraft Server
. This fixes the error Error: Could not find or load main class GradleStart
if you forgot to do this step.assets
to build\resources\main\assets
in folders build\classes\java\main
and build\classes\scala\main
. Otherwise textures and other assets won't work.
Keep in mind that if you want to build a .jar that can be used outside of the development environment, you need to run ./gradlew clean
and then ./gradlew assemble
to produce .jar with obfuscated names so that it works with normal minecraft.
Tutorials | Mod Specific | Basic Computer - Writing Code - Hard Drives - Autorun and Startup scripts | |
---|---|---|---|
Modding | Custom Architectures - IMC Messages - API changes in OC 1.3 - API changes in OC 1.4 - Build and Run master-MC1.7.10 from source | ||
Programs | OPPM - install | ||
Others | Custom Operating Systems |