feat: add support for remaining BetterEnd leaves

This commit is contained in:
Martin Prokoph
2025-07-26 21:06:39 +02:00
parent 773112caad
commit cd95bddd6b
70 changed files with 795 additions and 1 deletions

View File

@@ -64,6 +64,6 @@ def generateItemModel(leaf):
# Create models folder if it doesn't exist already
os.makedirs("assets/{}/models/item/".format(mod_namespace), exist_ok=True)
item_model_file = f"assets/{mod_namespace}/models/item/{block_name}.json"
item_model_file = f"assets/{mod_namespace}/models/item/{block_name}.json" if (leaf.blockstate_data == None) else f"assets/{leaf.blockstate_data.namespace}/models/item/{leaf.blockstate_data.block_name}.json"
with open(item_model_file, "w") as f:
dumpJson(item_model_data, f)