Improve build guide

This commit is contained in:
Minecon724 2025-01-20 12:12:12 +01:00
parent f43b17078e
commit 2890f00acd
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 17 additions and 10 deletions

View file

@ -14,7 +14,7 @@ Stuff no<sub><sup>t many</sup></sub> other plugins do.
Dependencies: Dependencies:
- **1.21.1 and newer** - **1.21.1 and newer**
- [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) - [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/)
- To use modules marked <sup><sub>N</sub></sup>, you must use a JAR made precisely for your server version. - To use modules marked <sup><sub>N</sub></sup>, you must use a JAR [made for the exact server version.](/Minecon724/tweaks724/src/branch/master/docs/BUILDING.md)
# Features # Features

View file

@ -1,10 +1,17 @@
1. Download BuildTools, move it into an empty directory and open terminal First, download NMS. There are two ways:
2. Download Minecraft sources:
```
java -jar BuildTools.jar --rev 1.21.4 --remapped
```
3. Clone this repository: - Use `tools/download_nms.sh`
- Download BuildTools, move it into an empty directory and run:
```
java -jar BuildTools.jar --rev 1.21.4 --remapped
```
You must run this for every version you want to build for.
Then build the plugin:
1. Clone this repository:
``` ```
git clone https://git.m724.eu/Minecon724/tweaks724 git clone https://git.m724.eu/Minecon724/tweaks724
cd tweaks724 cd tweaks724
@ -13,13 +20,13 @@
``` ```
git checkout tags/tweaks-0.1.12 git checkout tags/tweaks-0.1.12
``` ```
4. To compile for native version: 2. For the "native" version:
``` ```
./mvnw package ./mvnw package
``` ```
To compile for another version: For another compatible version:
``` ```
./mvnw package -Dproject.craftbukkit.version=v1_21_R3 -Dproject.minecraft.version=1.21.4 ./mvnw package -Dproject.craftbukkit.version=v1_21_R3 -Dproject.minecraft.version=1.21.4
``` ```
5. Look for `tweaks-0.1.12+1.21.4.jar` in `target/` Look for `tweaks-0.1.12+1.21.4.jar` in `target/`