A Minecraft mod aiming to bring real world electrical systems into the Minecraft world
Presented by the Chinese Institution of Scientific Minecraft Mod (CISM)
Currently Supported Version: Minecraft Forge 1.11.2
- BuildCraft Extension: Install BuildCraft facades to SimElectricity cable. This Mod must be installed with BuildCraft and SimElectricity Essential at the sametime, otherwise BuildCraft API will not work.
- ThermalExpension Extension: Install ThermalDynamics facades to SimElectricity cable, already included in the SimElectricity Essential Mod.
- Ensure
Java
(found here) andGit
(found here) are properly installed on your system. - Create a base directory for the repo (anywhere you like)
- On Windows, open either 'CMD' or Windows PowerShell, on Linux and MacOS, launch a terminal, then navigate to the directory just created, and type the following commands:
git clone https://github.com/RoyalAliceAcademyOfSciences/SimElectricity
git submodule init
andgit submodule update
to get LibRikkagradlew setupDecompWorkspace
to setup a complete development environment.
- On Windows: use
gradlew.bat
instead ofgradlew
- If you don't need the source code of Minecraft and Minecraft Forge, or just want to build the code, use
gradlew setupDeVWorkspace
instead.
- On Windows, open either 'CMD' or Windows PowerShell, on Linux and MacOS, launch a terminal, then navigate to the SimElectricity directory (the one contains README.MD and Jenkinsfile)
- Execute
gradlew build
to generate SimElectricity jars - Switch to the librikka directory under the SimElectricity directory
- Execute
gradlew build
again to build LibRikka jars - Jars files are in
SimElectricity/build/libs
andSimElectricity\librikka\build\libs
- Copy
SimElectricity-xx.xx.xx.jar
andLibRikka-1.0.0.jar
to themods
folder under your.minecraft
directory - Launch your Minecraft and enjoy
- Both Obfuscated and deobfuscated jars needs corresponding version of LibRikka to work properly
SimElectricity-full.jar
includes LibRikka
For API Usage, Please refer to the SimElectricity Github Wiki Pages
and comments in the API source code (package simelectricity.api
).
- Setup the environment first (See section "Setup Environment")
- In the SimElectricity directory execute
gradlew eclipse
to generate the workspace and launch configuration - Launch Eclipse and set your workspace to
.eclipse
folder under the SimElectricity directory - Open any source file and hit the debug button to test if it works
- Launch IDEA and clone the SimElectricity git repository to your local disk
- IDEA should prompt you for importing Gradle project, choose YES
- After IDEA finishes setting up Gradle, open Gradle panel
- Double click
setupDecompWorkspace
underTasks->forgegradle
- After finish this, double click
genIntellijRuns
- You are ready to go
- You MUST set the compatibility level of Java compiler to 1.8. By default,
Minecraft Forge(1.11.2 - 13.20.1.2386) sets the compatibility level to 1.6.
To do this, change
sourceCompatibility = targetCompatibility = "1.6"
inbuild.gradle
tosourceCompatibility = targetCompatibility = "1.8"
. - Advanced users only: There are two hidden gradlew tasks:
energyNetDevJar
andenergyNetJar
, which can generate Jars without the essential mod.
- LibRikka - A code pack designed to simplify Minecraft Modding
- CSPARSEJ - CSparseJ is a Java port of CSparse, a Concise Sparse matrix package.
- Minecraft Forge - A Minecraft mod container and loader
- LambdaLib - A modding library that aims at making modding fluent and enjoyable.
- Also, inspired by BuildCraft and Immersive Engineering !