This commit is contained in:
TJ committed 2026-11-22 20:14:28 +01:00
commit 428877fbf6
1072 files changed
+160209

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
<p align="center">
<img src="https://img.shields.io/badge/Version-R4.2.0-27272a?style=for-the-badge&labelColor=09090b" alt="Version R4.2.0" />
<img src="https://img.shields.io/badge/Java-17%20%7C%2021%20%7C%2025-3f3f46?style=for-the-badge&logo=openjdk&logoColor=ffffff&labelColor=09090b" alt="Java 17 | 21 | 25" />
<img src="https://img.shields.io/badge/Gradle-9.9.1-52525b?style=for-the-badge&logo=gradle&logoColor=ffffff&labelColor=09090b" alt="Gradle 9.9.1" />
<img src="https://img.shields.io/badge/Paper-1.19.4%20--%2026.3-71717a?style=for-the-badge&labelColor=09090b" alt="Paper 1.19.4 - 26.3" />
</p>
## 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:
```bash
./gradlew clean build
```
Windows:
```powershell
$env:JAVA_HOME = "C:\Program Files\Java\jdk-21"
.\gradlew.bat clean build
```
Generated in `build/libs/`:
- `ModelEngine-R4.2.0.jar`
### Running
1. Copy `build/libs/ModelEngine-R4.2.0.jar` into your server's `plugins/` folder.
2. Start a Paper or Folia server running 1.19.4 – 26.3.
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_R3` adapters are reobfuscated to Spigot names at build time. The newer adapters ship Mojang-mapped.
- **IDE sources:** `paperweight.experimental.genSources=false` in `gradle.properties` turns 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.jar` holds 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.