You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
I might be wrong, but are the intent to generate block enum or similar? or is this a reference to issue?
Parsing the blocks.json file and generating code at build time via build.rs would be rather easy.
Download minecraft_server.jar.
Run the generator to create blocks.json.
Parse blocks.json at build time via build.rs if the file has changed.
The block report only exists for 1.13 and up, but my desire is to support versions prior to 1.13 as well. I just left this here in case it might be of some use at some point.
Ahh, that makes sense. Currently, the generation of code is done on byte encoded versions of the JSON file (version.dat)? I would love to make it so that the build.rs downloads the server jar for a given version and generates the block, items, achievements and etc; and then include them in a lib via the include macro. This might be preferred since Mojang have the all do not distribute.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://bugs.mojang.com/secure/attachment/151784/the_flattening.txt
Should be able to parse this and generate mappings.
The text was updated successfully, but these errors were encountered: