e2fcf7b384
## Description Just removed useless imports in `extractor`. |
||
---|---|---|
.. | ||
gradle/wrapper | ||
src/main | ||
build.gradle | ||
copy_extractor_output.sh | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle |
Valence Extractor
This is a Fabric mod for Minecraft that extracts data about different things in Minecraft, like blocks, packets, etc. All the extracted data is stored in the sibling extracted
folder.
How to use
Here's how to regenerate the contents of extracted
.
From this directory, run the following
./gradlew runServer
This will run the extractor and immediately exit, outputting the files that are listed in the logs.
Next, run copy_extractor_output.sh
. This copies the files to extracted
so that they can be comitted.
./copy_extractor_output.sh
How to update valence to a new version of Minecraft
The general process should go something like this:
- Update
gradle.properties
to the new version of Minecraft using https://fabricmc.net/develop - Update
src/main/resources/fabric.mod.json
to reference new version of Minecraft - Update
PROTOCOL_VERSION
andMINECRAFT_VERSION
constants invalence_core/src/lib.rs
- Attempt to run
./gradlew runServer
and fix any errors that come up - Run
./copy_extractor_output.sh
- In
*.toml
s, replace all strings of the old mc version with the new mc version - Try all the examples. If they work, you're probably done.
If you need to update gradle, running this will automatically update the wrapper to the specified version, and update gradle/gradle-wrapper.properties
.
./gradlew wrapper --gradle-version VERSION
You may also need to update the fabric mappings in the mod.
./gradlew migrateMappings --mappings "VERSION"
Contributing
Run ./gradlew genSources
to generate Minecraft Java source files for your IDE.