/ForgeTemplate

A template for 1.8.9 and 1.12.2 Forge Modding

Primary LanguageKotlinGNU General Public License v3.0GPL-3.0

Forge Template for 1.8.9

Build with Gradle using Arch Loom

  • Make sure Java 17 is installed on your computer
  1. Git clone the project: git clone https://github.com/Scherso/ForgeTemplate/
  2. Run:
  • Unix in Terminal:

    Note: If you plan to only build once add the —no-daemon flag to the build.

    cd ForgeTemplate ; chmod 755 ./gradlew && ./gradlew --refresh-dependencies build
  • Windows in Powershell:

    cd ForgeTemplate ; .\gradlew.bat --refresh-dependencies build 
  1. Check the directory ForgeTemplate/build/libs or Windows; ForgeTemplate\build\libs

IDE Setup

  1. Open the project from File > Open... Select ForgeTemplate from it’s given file location.
  2. Let the IDE collect dependencies and index the code. (this may take a couple seconds)
  3. Go to File > Project Structure... > SDKs and make sure an SDK for Java 17 is installed and selected, if not download it here

Build

Test if the environment is set up correctly setup by clicking the refresh button in IntelliJ’s Gradle tab, if it has indexed properly with no errors do the following:

  1. Go to ForgeTemplate > Tasks > loom > genSources in the Gradle tab and run genSources
  2. To build the mod as a jar run ForgeTemplate > Tasks > build > build. Gradle will create a new directory called build.
  3. Once this process is done, the .jar file will be located in build/libs You can see this in your file tree.