Skip to content

Environment Setup

minhnh303 edited this page Jun 7, 2026 · 1 revision

Environment Setup

If you are a developer looking to compile Yet-Another-Thirst or integrate it into your own modding environment, here is how you can get started.

Project Structure

Yet-Another-Thirst is a multi-loader project targeting Forge and NeoForge on Minecraft 1.20.1 using Java 17.

  • /common/: Platform-neutral mod logic, events, mixins, registries, and item definitions.
  • /forge/: Forge-specific mod entry points and event setups.
  • /neoforge/: NeoForge-specific mod entry points and event setups.

Compiling Yet-Another-Thirst

1. Requirements

  • Java Development Kit (JDK) 17
  • Internet connection (to fetch Gradle dependencies and Minecraft assets)

2. Basic Build Commands

Open a terminal in the root project folder:

# Build the entire project and output jars for all loaders
./gradlew build

# Build only the Forge loader jar
./gradlew :forge:build

# Build only the NeoForge loader jar
./gradlew :neoforge:build

# Clean build cache
./gradlew clean

3. Running/Testing Locally

To start a local Minecraft client with Yet-Another-Thirst loaded:

# Run Forge client
./gradlew :forge:runClient

# Run NeoForge client
./gradlew :neoforge:runClient

To start a dedicated server:

# Run Forge server
./gradlew :forge:runServer

# Run NeoForge server
./gradlew :neoforge:runServer

Developer Integration (CurseMaven)

To add Yet-Another-Thirst as a dependency in your own project, configure CurseMaven:

1. Declare the Repository

In your project's build.gradle repositories block:

repositories {
    maven {
        url "https://cursemaven.com"
        content {
            includeGroup "curse.maven"
        }
    }
}

2. Declare the Dependency

In your dependencies block:

dependencies {
    // Replace FILE_ID with the desired Yet-Another-Thirst CurseForge build file ID
    implementation fg.deobf("curse.maven:yet-another-thirst-987654:FILE_ID")
}

3. Generate Runs

After adding the dependency, update your workspace runs. For example:

  • IntelliJ IDEA: ./gradlew genIntellijRuns
  • Eclipse: ./gradlew eclipse
  • VS Code / Generic: ./gradlew compileJava

Clone this wiki locally