compat: Improve Forbidden&Arcanus Nuggety Aurum Leaves

This commit is contained in:
Martin Prokoph
2025-03-24 23:23:14 +01:00
parent 86d0b55eee
commit 79f934ae1b
4 changed files with 9 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 853 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -153,7 +153,9 @@ def autoGen(jsonData, args):
# Check for blockstate data
if infile.replace(".png", ".betterleaves.json") in files:
leaf.blockstate_data = BlockStateData.fromFile(leaf, root, infile.replace(".png", ".betterleaves.json"))
with open(os.path.join(root, infile.replace(".png", ".betterleaves.json")), "r") as f:
if "blockStateData" in json.load(f):
leaf.blockstate_data = BlockStateData.fromFile(leaf, root, infile.replace(".png", ".betterleaves.json"))
# Generate blockstates & models
generateBlockstate(leaf, block_state_copies)

View File

@@ -0,0 +1,6 @@
{
"textureStitching": {
"1-4": "forbidden_arcanus:block/aurum_leaves",
"6-9": "forbidden_arcanus:block/aurum_leaves"
}
}