428877fbf69d95f7c018a8e1ad92b31b4923273d
How to build
Prerequisites
- Java Development Kit: JDK 21 or newer to run Gradle (paperweight 2.x needs at least Java 21).
- Toolchains: Gradle downloads JDK 17, 21 and 25 for the modules automatically through the foojay resolver if you don't have them.
- Network access: the first build downloads and sets up a Paper dev bundle for each of the 15 supported Minecraft versions. Expect about 15 minutes and a few GB in
~/.gradle.
Building ModelEngine
Run from this folder.
macOS / Linux:
./gradlew clean build
Windows:
$env:JAVA_HOME = "C:\Program Files\Java\jdk-21"
.\gradlew.bat clean build
Generated in build/libs/:
ModelEngine-R4.2.0.jar
Running
- Copy
build/libs/ModelEngine-R4.2.0.jarinto your server'splugins/folder. - Start a Paper or Folia server running 1.19.4 – 26.3.
- Optional integrations: MythicMobs, Citizens, LibsDisguises, ViaVersion.
Project layout
| Module | Java | Purpose |
|---|---|---|
api |
17 | Public API |
core |
17 | Plugin core, commands, generator, resources |
core21 |
21 | MythicMobs integration, 1.20.5+ adapter loader |
core25 |
25 | 26.x adapter loader |
nms/v1_19_R3 – nms/v1_20_R3 |
17 | Adapters for 1.19.4 – 1.20.4 (ship Spigot-mapped) |
nms/v1_20_R4 – nms/v1_21_R7 |
21 | Adapters for 1.20.6 – 1.21.11 |
nms/v26_1 – nms/v26_3 |
25 | Adapters for 26.1 – 26.3 |
Notes
- Spigot-mapped adapters: Paper ran Spigot-mapped before 1.20.5, so the
v1_19_R3–v1_20_R3adapters are reobfuscated to Spigot names at build time. The newer adapters ship Mojang-mapped. - IDE sources:
paperweight.experimental.genSources=falseingradle.propertiesturns off patched Minecraft sources for IDE browsing. The 1.19.4 – 1.20.2 dev bundles fail to generate them under paperweight 2.x, and compiling doesn't need them. - Bundled libraries:
libs/mineskin-java-client-3.2.1-SNAPSHOT.jarholds the MineSkin client, since that snapshot isn't published anywhere. jsoup 1.17.2 comes from Maven Central. Both are bundled into the plugin jar without relocation.
Languages
Java
99%
GLSL
1%