fix blockModelGenerator.py

This commit is contained in:
Bixilon 2020-11-21 13:20:41 +01:00
parent d712336137
commit f966deb637
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -10,11 +10,10 @@
# This software is not affiliated with Mojang AB, the original developer of Minecraft. # This software is not affiliated with Mojang AB, the original developer of Minecraft.
import io import io
import sys
import zipfile
import requests import requests
import sys
import ujson import ujson
import zipfile
if len(sys.argv) != 3: if len(sys.argv) != 3:
print("Usage: %s <destination path> <jar url>".format( print("Usage: %s <destination path> <jar url>".format(
@ -145,9 +144,10 @@ for blockModelFile in [f for f in files if f.startswith('assets/minecraft/models
print("Combining files...") print("Combining files...")
finalJson = { finalJson = {
"mod": modName, modName: {
"blockStates": blockStates, "blockStates": blockStates,
"blockModels": blockModels, "blockModels": blockModels
}
} }
print("Saving...") print("Saving...")