An open source sensor peripheral for ComputerCraft
OpenCCSensors now uses the ForgeGradle build system. These instructions assume you've set up an OpenCCSensors directory and have downloaded the correct ForgeGradle package (recommended version for the current Minecraft version) and copied these directories and files into it:
eclipse/ (if you are using eclipse as your IDE) gradle/ src/ gradlew gradlew.bat
Run: git clone git://github.com/Cloudhunter/OpenCCSensors && cd OpenCCSensors
It should download the repository and cd into the repository.
Next, run the following command: gradlew setupDecompWorkspace
It should find the build.gradle and start downloading Forge and MCP, as well as decompiling Minecraft.
Next, if you are using eclipse, run: gradlew eclipse
Now you will need the various JAR files that OpenCCSensors depends on. These must be placed in libs/.
Mod Name File Name/Mod Version Ars Magica 2: 1.7.10_AM2-1.4.0.008.jar Applied Energistics 2: appliedenergistics2-rv1-stable-1.jar CoFH Core: CoFHCore-[1.7.10]3.0.2-262.jar ComputerCraft: ComputerCraft1.73.jar Forestry: forestry_1.7.10-188.8.131.52.jar IndustrialCraft 2: industrialcraft-2-2.2.718-experimental-api.jar Railcraft: Railcraft_1.7.10-184.108.40.206.jar Resonant Engine: resonant-engine-220.127.116.117-core.jar RotaryCraft: RotaryCraft 1.7.10 V6f.jar Thaumcraft: Thaumcraft-1.7.10-18.104.22.168.jar
Finally, run: gradlew build
It will start compiling the build and then after a few minutes there should be a file called 'OpenCCSensors-VERSION.jar' in build/libs. That is the compiled version of OpenCCSensors. After making changes in the source, building a new version only requires that you repeat the
gradlew build command.
OpenCCSensors is distrubuted under the terms of the MIT License, which can be found under the name LICENSE in your distribution.