mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-11 00:23:42 -04:00
fix blockModelGenerator.py
This commit is contained in:
parent
d712336137
commit
f966deb637
@ -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...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user