minecraft-jar-extractor
v1.1.0
Published
Extract structured data from the minecraft jar
Downloads
152
Readme
minecraft-jar-extractor
Extract structured data from the minecraft jar
image name extractor
Just run node image_names.js <version1,version2,...> <output_dir> <temporary_dir>
and get a directory containing the name->texture mapping and the textures.
Result of that currently online at minecraft-assets
lang extractor
Just run node lang.js <version1,version2,...> <output_dir> <temporary_dir>
and get a directory containing en_us.lang and en_us.json
protocol extractor
How to use it:
node downloadDecompile.js 1.8.8 /tmp/the_outputnode protocol_extractor.js /tmp/the_output/decompiled- get a protocol.json describing the classname<->id relation and some fields information
block loot table extractor
Only works in 1.14+ as the loot table files did not exist before this.
Make sure to first extract the data folder from Minecraft jar if not done already using:
node extract_datafolder.js <version1,version2,...> <output_dir> <temporary_dir>
Next you can extract the actual loot table data to Minecraft-Data using:
node extract_lootTables.js <version1,version2,...> <extractedDataFolder> <mcDataFolder>
add defaultState to a blocks.json
node patch_states.js <version> blocks.json
add more accuracte drops to a blocks.json
node extract_datafolder.js <version> out tempnode extract_block_lootTables.js <directory with blocks.json and items.json> out/<version>/
History
1.1.0
- Update CI to Node 24 (#65) (thanks @rom1504)
- Fix publish workflow for trusted publishing (#64) (thanks @rom1504)
- Switch to trusted publishing via OIDC (#63) (thanks @rom1504)
- Handle new model structure in 1.21.4 (#61) (thanks @SuperGamerTron)
- node 22 (#60) (thanks @rom1504)
- Add command gh workflow allowing to use release command in comments (#59) (thanks @rom1504)
- Update to node 18.0.0 (#58) (thanks @rom1504)
- Bump mkdirp from 0.5.6 to 2.1.3 (#55) (thanks @dependabot[bot])
- Bump fs-extra from 10.1.0 to 11.1.0 (#52) (thanks @dependabot[bot])
- Bump standard from 16.0.4 to 17.0.0 (#50) (thanks @dependabot[bot])
1.0.0
- Everything
0.0.0
- imported from minecraft-data + description added
