🛠️ 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
- Java Development Kit (JDK 25):
- Modern Minecraft 26.x compiles against Java 25.
- Configure
JAVA_HOMEor setorg.gradle.java.home=E:/JDK25ingradle.properties.
- Git & Workspace Clone:bash
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)
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
bash
# 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:
groovy
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.
