Skip to main content

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.

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.

Prerequisites

  • JDK 25 or later — the project sets both sourceCompatibility and targetCompatibility to Java 25. Older JDKs will fail at compile time.
  • Git — to clone the repository.
No separate Gradle installation is required. The repository includes the Gradle wrapper (gradlew / gradlew.bat), which downloads the correct Gradle version automatically.

Build steps

1

Clone the repository

git clone https://github.com/allen-wang-2001/mypos.git
2

Navigate into the project directory

cd mypos
3

Build with the Gradle wrapper

./gradlew build
Fabric Loom will automatically download Minecraft 26.1.2 and all declared dependencies (Fabric Loader >=0.19.2, Fabric API 0.149.0+26.1.2) from the Fabric and Mojang Maven repositories. No manual dependency management is needed.
4

Locate the output jar

After a successful build, the compiled mod jar is placed in:
build/libs/
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:
./gradlew genSources
This uses Fabric Loom to decompile and attach Minecraft sources to the dependency, which IntelliJ IDEA and other IDEs can then index for code navigation and documentation on hover.
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.

Build docs developers (and LLMs) love