This guide will walk you through the steps required to clone and build the CreatureChat™ Fabric Mod from our Git repository. NOTE: Please ensure you have Git installed on your computer before you begin. You will also need Java and an appropriate Gradle setup to build the mod.
- Git: If you don't have Git installed, download and install it from git-scm.com.
- Java JDK: Fabric requires Java Development Kit (JDK) to compile and run. Download and install it from AdoptOpenJDK or your preferred JDK provider. JDK version 8 or 11 is recommended.
- IDE: Any IDE that supports Java and Gradle, such as IntelliJ IDEA, Eclipse, or VS Code.
Open a terminal or command prompt and run the following command to clone the repository:
git clone https://github.com/CreatureChat/creature-chat.git
Navigate into the cloned directory:
cd creature-chat
Use the Gradle wrapper included in the repository to build the project. Run the following command in the terminal within the project directory:
./gradlew build
For Windows users, use:
gradlew.bat build
This command compiles the project and outputs the build artifacts, including the
mod .jar file, into the build/libs directory.
To test the mod, you can run it in a development environment provided by Fabric:
./gradlew runClient
For Windows users, use:
gradlew.bat runClient
This command launches a Minecraft client with the mod loaded, allowing you to test the mod's functionality directly.
When Fabric or Minecraft is updated, the build dependencies also need to be updated. Below are the general steps for this upgrade process.
- Visit https://fabricmc.net/develop for updated version #s
- Copy/paste the recommended versions into
gradle.properties - Optional: Update the Loom version in
build.gradle - Re-build:
./gradlew buildand watch for any errors - Re-run:
./gradlew runClient - Optional: Re-start IDE to clear cached gradle