2023-12-28 12:20:38 +01:00
|
|
|
Replaces mcstruct's inbuilt nbt library with ViaNBT.
|
|
|
|
|
|
|
|
## Setup
|
2024-12-10 10:06:17 +01:00
|
|
|
|
2023-12-28 12:20:38 +01:00
|
|
|
```bash
|
|
|
|
git submodule update --init
|
|
|
|
```
|
|
|
|
|
|
|
|
Then you can run the Python script to apply the automated updates.
|
2024-12-10 10:06:17 +01:00
|
|
|
|
2023-12-28 12:20:38 +01:00
|
|
|
```bash
|
|
|
|
py mcstructs.py
|
|
|
|
cd MCStructs
|
2024-08-13 09:54:05 +02:00
|
|
|
gradlew test -x checkstyleMain
|
2024-12-10 10:06:17 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Dependency
|
|
|
|
|
|
|
|
We wouldn't necessarily recommend depending on this given the hacky replacements
|
|
|
|
and specific needs, but this is published to our maven repository at: https://repo.viaversion.com
|
|
|
|
|
|
|
|
```kotlin
|
|
|
|
implementation("com.viaversion.mcstructs:text:5-<mcstructs version>")
|
|
|
|
```
|
|
|
|
|
|
|
|
The prefix is the current major version of ViaVersion, followed by the mcstructs version.
|