1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
azalea/codegen
2023-03-14 16:29:01 -05:00
..
lib merge 2023-03-14 16:29:01 -05:00
.gitignore Pathfinder (#25) 2022-11-12 23:54:05 -06:00
genblocks.py merge main 2023-02-10 19:50:11 +00:00
genentities.py fix not compiling 2023-02-10 20:46:07 +00:00
genregistries.py Pathfinder (#25) 2022-11-12 23:54:05 -06:00
migrate.py revert 1.19.3 2023-01-03 22:09:23 -06:00
newpacket.py revert 1.19.3 2023-01-03 22:09:23 -06:00
README.md revert 1.19.3 2023-01-03 22:09:23 -06:00

Tools for automatically generating code to help with updating Minecraft versions.

The directory name doesn't start with azalea- because it's not a Rust crate.

Requirements

  • Python 3.8+
  • Java 17+
  • Gradle

Usage

Generate packet:
python newpacket.py [packet id] [clientbound or serverbound] \[game/handshake/login/status\]
This will create a new file in the azalea-protocol/src/packets/\[state\] directory. You will probably have to manually fix up the auto generated code.

Migrate to a new Minecraft version:
python migrate.py [new version]
This updates all the packet ids in azalea-protocol/src/packets/mod.rs and creates all the new packets.