Building mypos from source gives you full control over the compiled artifact and lets you verify exactly what code goes into the jar you install on your server. The build system is standard Fabric Loom, so if you have built other Fabric mods before the process will be familiar.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/allen-wang-2001/mypos/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- JDK 25 or later — the project sets both
sourceCompatibilityandtargetCompatibilityto Java 25. Older JDKs will fail at compile time. - Git — to clone the repository.
gradlew / gradlew.bat), which downloads the correct Gradle version automatically.
Build steps
Build with the Gradle wrapper
>=0.19.2, Fabric API 0.149.0+26.1.2) from the Fabric and Mojang Maven repositories. No manual dependency management is needed.Locate the output jar
After a successful build, the compiled mod jar is placed in:The primary jar is named following the pattern
mypos-<version>.jar. The version comes from mod_version in gradle.properties (currently 0.1.0), so the output will be mypos-0.1.0.jar. A -sources.jar is also generated alongside it because the build script calls withSourcesJar().Generating Minecraft sources for IDE use
If you want to browse or navigate decompiled Minecraft source code from within your IDE, run:genSources does not affect the compiled output. It only enriches your local development environment and does not need to be re-run unless you change minecraft_version in gradle.properties.