Skip to content

26.2 Developer Setup and Building

Rifa edited this page Aug 22, 2026 · 1 revision

πŸ› οΈ Developer Setup & Loom Building (MC 26.2)

πŸ“Œ Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.

Toolchain Infobox Technical Parameters
Subproject Directory Magnet v26.2/magnet/
Java JDK Target Java 25 (release = 25)
Gradle Loom Plugin net.fabricmc.fabric-loom version 1.15.5
Minecraft Version 26.2
Fabric Loader Version 0.19.1
Fabric API Version 0.150.1+26.2
DasikLibrary Version 1.8.23
YACL Version 3.9.5+26.2-fabric

πŸ’» Prerequisites & Environment Setup

  1. Java Development Kit (JDK 25):
    • Modern Minecraft 26.x compiles against Java 25.
    • Configure JAVA_HOME or set org.gradle.java.home=E:/JDK25 in gradle.properties.
  2. Git & Workspace Clone:
    git clone https://github.com/Rifaditya/Instant-Gratification-Magnet-Let-me-get-that-.git
    cd "Instant-Gratification-Magnet-Let-me-get-that-/Magnet v26.2/magnet"

βš™οΈ Properties Configuration (gradle.properties)

org.gradle.parallel=false
org.gradle.java.home=E:/JDK25

# Mod Properties
mod_name=Magnet, Let me get that!
mod_version=1.3.9+26.2
maven_group=net.instantgratification
archives_base_name=Magnet-Let-me-get-that

# Dependencies
minecraft_version=26.2
parchment_minecraft_version=26.2
parchment_version=2026.01.22

# Fabric
fabric_version=0.150.1+26.2
fabric_loader_version=0.19.1

# Loom
fabric.loom.suppressJavaCompatibilityChecks=true
loom.suppressJavaCompatibilityChecks=true

dasik_library_version=1.8.23

πŸ”¨ Gradle Build Commands

# Clean previous build cache
./gradlew clean

# Run unit tests
./gradlew test

# Compile production JAR and trigger auto-archiving
./gradlew build --no-daemon

πŸ“¦ Automated Release Archiving & Modrinth Sync

The MC 26.2 build.gradle script features a registered archiveReleaseJar lifecycle task:

tasks.register('archiveReleaseJar') {
    dependsOn 'build'
    doLast {
        def archiveDir = file("${project.rootDir}/../../Archive Jar of all versions/MC 26.2")
        archiveDir.mkdirs()
        def jarFile = tasks.named('jar', Jar).get().archiveFile.get().asFile
        if (jarFile.exists()) {
            copy {
                from jarFile
                into archiveDir
            }
            println "[AUTO-ARCHIVE] Successfully copied ${jarFile.name} to central Archive directory: ${archiveDir.absolutePath}"
        }
    }
}

tasks.named('build') {
    finalizedBy 'archiveReleaseJar'
}

Upon successful compilation, the built JAR (Magnet-Let-me-get-that-1.3.9+26.2.jar) is automatically mirrored to Archive Jar of all versions/MC 26.2/ and deployed to active local Modrinth launcher test directories.


πŸ”— Related Wiki Documentation

Clone this wiki locally