mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-08 14:59:16 -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.
|
||||
|
||||
import io
|
||||
import sys
|
||||
import zipfile
|
||||
|
||||
import requests
|
||||
import sys
|
||||
import ujson
|
||||
import zipfile
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
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...")
|
||||
finalJson = {
|
||||
"mod": modName,
|
||||
"blockStates": blockStates,
|
||||
"blockModels": blockModels,
|
||||
modName: {
|
||||
"blockStates": blockStates,
|
||||
"blockModels": blockModels
|
||||
}
|
||||
}
|
||||
|
||||
print("Saving...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user