diff --git a/Better-Leaves-9.1.zip b/Better-Leaves-9.1.zip index fdad1f1..e9af37a 100644 Binary files a/Better-Leaves-9.1.zip and b/Better-Leaves-9.1.zip differ diff --git a/assets/environmental/blockstates/blue_wisteria_leaves.json b/assets/environmental/blockstates/blue_wisteria_leaves.json index 8f40e31..1b06c59 100644 --- a/assets/environmental/blockstates/blue_wisteria_leaves.json +++ b/assets/environmental/blockstates/blue_wisteria_leaves.json @@ -1,6 +1,6 @@ { "variants": { - "": [ + "half=bottom": [ { "model": "environmental:block/blue_wisteria_leaves1" }, @@ -61,6 +61,68 @@ "model": "environmental:block/blue_wisteria_leaves4", "y": 270 } + ], + "half=top": [ + { + "model": "environmental:block/blue_wisteria_leaves_top1" + }, + { + "model": "environmental:block/blue_wisteria_leaves_top1", + "y": 90 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top1", + "y": 180 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top1", + "y": 270 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top2" + }, + { + "model": "environmental:block/blue_wisteria_leaves_top2", + "y": 90 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top2", + "y": 180 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top2", + "y": 270 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top3" + }, + { + "model": "environmental:block/blue_wisteria_leaves_top3", + "y": 90 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top3", + "y": 180 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top3", + "y": 270 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top4" + }, + { + "model": "environmental:block/blue_wisteria_leaves_top4", + "y": 90 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top4", + "y": 180 + }, + { + "model": "environmental:block/blue_wisteria_leaves_top4", + "y": 270 + } ] } } \ No newline at end of file diff --git a/assets/environmental/blockstates/blue_wisteria_leaves_top.json b/assets/environmental/blockstates/blue_wisteria_leaves_top.json deleted file mode 100644 index be29a57..0000000 --- a/assets/environmental/blockstates/blue_wisteria_leaves_top.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "variants": { - "": [ - { - "model": "environmental:block/blue_wisteria_leaves_top1" - }, - { - "model": "environmental:block/blue_wisteria_leaves_top1", - "y": 90 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top1", - "y": 180 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top1", - "y": 270 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top2" - }, - { - "model": "environmental:block/blue_wisteria_leaves_top2", - "y": 90 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top2", - "y": 180 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top2", - "y": 270 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top3" - }, - { - "model": "environmental:block/blue_wisteria_leaves_top3", - "y": 90 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top3", - "y": 180 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top3", - "y": 270 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top4" - }, - { - "model": "environmental:block/blue_wisteria_leaves_top4", - "y": 90 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top4", - "y": 180 - }, - { - "model": "environmental:block/blue_wisteria_leaves_top4", - "y": 270 - } - ] - } -} \ No newline at end of file diff --git a/assets/environmental/blockstates/pink_wisteria_leaves.json b/assets/environmental/blockstates/pink_wisteria_leaves.json index c24c252..e36f926 100644 --- a/assets/environmental/blockstates/pink_wisteria_leaves.json +++ b/assets/environmental/blockstates/pink_wisteria_leaves.json @@ -1,6 +1,6 @@ { "variants": { - "": [ + "half=bottom": [ { "model": "environmental:block/pink_wisteria_leaves1" }, @@ -61,6 +61,68 @@ "model": "environmental:block/pink_wisteria_leaves4", "y": 270 } + ], + "half=top": [ + { + "model": "environmental:block/pink_wisteria_leaves_top1" + }, + { + "model": "environmental:block/pink_wisteria_leaves_top1", + "y": 90 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top1", + "y": 180 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top1", + "y": 270 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top2" + }, + { + "model": "environmental:block/pink_wisteria_leaves_top2", + "y": 90 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top2", + "y": 180 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top2", + "y": 270 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top3" + }, + { + "model": "environmental:block/pink_wisteria_leaves_top3", + "y": 90 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top3", + "y": 180 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top3", + "y": 270 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top4" + }, + { + "model": "environmental:block/pink_wisteria_leaves_top4", + "y": 90 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top4", + "y": 180 + }, + { + "model": "environmental:block/pink_wisteria_leaves_top4", + "y": 270 + } ] } } \ No newline at end of file diff --git a/assets/environmental/blockstates/pink_wisteria_leaves_top.json b/assets/environmental/blockstates/pink_wisteria_leaves_top.json deleted file mode 100644 index e00cbc2..0000000 --- a/assets/environmental/blockstates/pink_wisteria_leaves_top.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "variants": { - "": [ - { - "model": "environmental:block/pink_wisteria_leaves_top1" - }, - { - "model": "environmental:block/pink_wisteria_leaves_top1", - "y": 90 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top1", - "y": 180 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top1", - "y": 270 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top2" - }, - { - "model": "environmental:block/pink_wisteria_leaves_top2", - "y": 90 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top2", - "y": 180 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top2", - "y": 270 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top3" - }, - { - "model": "environmental:block/pink_wisteria_leaves_top3", - "y": 90 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top3", - "y": 180 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top3", - "y": 270 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top4" - }, - { - "model": "environmental:block/pink_wisteria_leaves_top4", - "y": 90 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top4", - "y": 180 - }, - { - "model": "environmental:block/pink_wisteria_leaves_top4", - "y": 270 - } - ] - } -} \ No newline at end of file diff --git a/assets/environmental/blockstates/purple_wisteria_leaves.json b/assets/environmental/blockstates/purple_wisteria_leaves.json index a0613e8..61001cd 100644 --- a/assets/environmental/blockstates/purple_wisteria_leaves.json +++ b/assets/environmental/blockstates/purple_wisteria_leaves.json @@ -1,6 +1,6 @@ { "variants": { - "": [ + "half=bottom": [ { "model": "environmental:block/purple_wisteria_leaves1" }, @@ -61,6 +61,68 @@ "model": "environmental:block/purple_wisteria_leaves4", "y": 270 } + ], + "half=top": [ + { + "model": "environmental:block/purple_wisteria_leaves_top1" + }, + { + "model": "environmental:block/purple_wisteria_leaves_top1", + "y": 90 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top1", + "y": 180 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top1", + "y": 270 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top2" + }, + { + "model": "environmental:block/purple_wisteria_leaves_top2", + "y": 90 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top2", + "y": 180 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top2", + "y": 270 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top3" + }, + { + "model": "environmental:block/purple_wisteria_leaves_top3", + "y": 90 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top3", + "y": 180 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top3", + "y": 270 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top4" + }, + { + "model": "environmental:block/purple_wisteria_leaves_top4", + "y": 90 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top4", + "y": 180 + }, + { + "model": "environmental:block/purple_wisteria_leaves_top4", + "y": 270 + } ] } } \ No newline at end of file diff --git a/assets/environmental/blockstates/purple_wisteria_leaves_top.json b/assets/environmental/blockstates/purple_wisteria_leaves_top.json deleted file mode 100644 index b8e61d9..0000000 --- a/assets/environmental/blockstates/purple_wisteria_leaves_top.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "variants": { - "": [ - { - "model": "environmental:block/purple_wisteria_leaves_top1" - }, - { - "model": "environmental:block/purple_wisteria_leaves_top1", - "y": 90 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top1", - "y": 180 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top1", - "y": 270 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top2" - }, - { - "model": "environmental:block/purple_wisteria_leaves_top2", - "y": 90 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top2", - "y": 180 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top2", - "y": 270 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top3" - }, - { - "model": "environmental:block/purple_wisteria_leaves_top3", - "y": 90 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top3", - "y": 180 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top3", - "y": 270 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top4" - }, - { - "model": "environmental:block/purple_wisteria_leaves_top4", - "y": 90 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top4", - "y": 180 - }, - { - "model": "environmental:block/purple_wisteria_leaves_top4", - "y": 270 - } - ] - } -} \ No newline at end of file diff --git a/assets/environmental/blockstates/white_wisteria_leaves.json b/assets/environmental/blockstates/white_wisteria_leaves.json index 188de4c..fdf3562 100644 --- a/assets/environmental/blockstates/white_wisteria_leaves.json +++ b/assets/environmental/blockstates/white_wisteria_leaves.json @@ -1,6 +1,6 @@ { "variants": { - "": [ + "half=bottom": [ { "model": "environmental:block/white_wisteria_leaves1" }, @@ -61,6 +61,68 @@ "model": "environmental:block/white_wisteria_leaves4", "y": 270 } + ], + "half=top": [ + { + "model": "environmental:block/white_wisteria_leaves_top1" + }, + { + "model": "environmental:block/white_wisteria_leaves_top1", + "y": 90 + }, + { + "model": "environmental:block/white_wisteria_leaves_top1", + "y": 180 + }, + { + "model": "environmental:block/white_wisteria_leaves_top1", + "y": 270 + }, + { + "model": "environmental:block/white_wisteria_leaves_top2" + }, + { + "model": "environmental:block/white_wisteria_leaves_top2", + "y": 90 + }, + { + "model": "environmental:block/white_wisteria_leaves_top2", + "y": 180 + }, + { + "model": "environmental:block/white_wisteria_leaves_top2", + "y": 270 + }, + { + "model": "environmental:block/white_wisteria_leaves_top3" + }, + { + "model": "environmental:block/white_wisteria_leaves_top3", + "y": 90 + }, + { + "model": "environmental:block/white_wisteria_leaves_top3", + "y": 180 + }, + { + "model": "environmental:block/white_wisteria_leaves_top3", + "y": 270 + }, + { + "model": "environmental:block/white_wisteria_leaves_top4" + }, + { + "model": "environmental:block/white_wisteria_leaves_top4", + "y": 90 + }, + { + "model": "environmental:block/white_wisteria_leaves_top4", + "y": 180 + }, + { + "model": "environmental:block/white_wisteria_leaves_top4", + "y": 270 + } ] } } \ No newline at end of file diff --git a/assets/environmental/blockstates/white_wisteria_leaves_top.json b/assets/environmental/blockstates/white_wisteria_leaves_top.json deleted file mode 100644 index f51ca0d..0000000 --- a/assets/environmental/blockstates/white_wisteria_leaves_top.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "variants": { - "": [ - { - "model": "environmental:block/white_wisteria_leaves_top1" - }, - { - "model": "environmental:block/white_wisteria_leaves_top1", - "y": 90 - }, - { - "model": "environmental:block/white_wisteria_leaves_top1", - "y": 180 - }, - { - "model": "environmental:block/white_wisteria_leaves_top1", - "y": 270 - }, - { - "model": "environmental:block/white_wisteria_leaves_top2" - }, - { - "model": "environmental:block/white_wisteria_leaves_top2", - "y": 90 - }, - { - "model": "environmental:block/white_wisteria_leaves_top2", - "y": 180 - }, - { - "model": "environmental:block/white_wisteria_leaves_top2", - "y": 270 - }, - { - "model": "environmental:block/white_wisteria_leaves_top3" - }, - { - "model": "environmental:block/white_wisteria_leaves_top3", - "y": 90 - }, - { - "model": "environmental:block/white_wisteria_leaves_top3", - "y": 180 - }, - { - "model": "environmental:block/white_wisteria_leaves_top3", - "y": 270 - }, - { - "model": "environmental:block/white_wisteria_leaves_top4" - }, - { - "model": "environmental:block/white_wisteria_leaves_top4", - "y": 90 - }, - { - "model": "environmental:block/white_wisteria_leaves_top4", - "y": 180 - }, - { - "model": "environmental:block/white_wisteria_leaves_top4", - "y": 270 - } - ] - } -} \ No newline at end of file diff --git a/assets/environmental/textures/block/TODO b/assets/environmental/textures/block/TODO deleted file mode 100644 index e69de29..0000000 diff --git a/assets/environmental/textures/block/blue_wisteria_leaves_top.png b/assets/environmental/textures/block/blue_wisteria_leaves_top.png index 097a525..66e7346 100644 Binary files a/assets/environmental/textures/block/blue_wisteria_leaves_top.png and b/assets/environmental/textures/block/blue_wisteria_leaves_top.png differ diff --git a/assets/environmental/textures/block/pink_wisteria_leaves_top.png b/assets/environmental/textures/block/pink_wisteria_leaves_top.png index b61cda4..556d73d 100644 Binary files a/assets/environmental/textures/block/pink_wisteria_leaves_top.png and b/assets/environmental/textures/block/pink_wisteria_leaves_top.png differ diff --git a/assets/environmental/textures/block/purple_wisteria_leaves_top.png b/assets/environmental/textures/block/purple_wisteria_leaves_top.png index 1425fea..a55c2f9 100644 Binary files a/assets/environmental/textures/block/purple_wisteria_leaves_top.png and b/assets/environmental/textures/block/purple_wisteria_leaves_top.png differ diff --git a/assets/environmental/textures/block/white_wisteria_leaves_top.png b/assets/environmental/textures/block/white_wisteria_leaves_top.png index 9d696f3..5f92b7b 100644 Binary files a/assets/environmental/textures/block/white_wisteria_leaves_top.png and b/assets/environmental/textures/block/white_wisteria_leaves_top.png differ diff --git a/base/assets/environmental/textures/block/TODO b/base/assets/environmental/textures/block/TODO deleted file mode 100644 index e69de29..0000000 diff --git a/base/assets/environmental/textures/block/blue_wisteria_leaves_top.png b/base/assets/environmental/textures/block/blue_wisteria_leaves_top.png deleted file mode 100644 index 097a525..0000000 Binary files a/base/assets/environmental/textures/block/blue_wisteria_leaves_top.png and /dev/null differ diff --git a/base/assets/environmental/textures/block/pink_wisteria_leaves_top.png b/base/assets/environmental/textures/block/pink_wisteria_leaves_top.png deleted file mode 100644 index b61cda4..0000000 Binary files a/base/assets/environmental/textures/block/pink_wisteria_leaves_top.png and /dev/null differ diff --git a/base/assets/environmental/textures/block/purple_wisteria_leaves_top.png b/base/assets/environmental/textures/block/purple_wisteria_leaves_top.png deleted file mode 100644 index 1425fea..0000000 Binary files a/base/assets/environmental/textures/block/purple_wisteria_leaves_top.png and /dev/null differ diff --git a/base/assets/environmental/textures/block/white_wisteria_leaves_top.png b/base/assets/environmental/textures/block/white_wisteria_leaves_top.png deleted file mode 100644 index 9d696f3..0000000 Binary files a/base/assets/environmental/textures/block/white_wisteria_leaves_top.png and /dev/null differ diff --git a/gen_pack.py b/gen_pack.py index 8ea443b..d1422c3 100644 --- a/gen_pack.py +++ b/gen_pack.py @@ -20,6 +20,17 @@ def printCyan(out): print("\033[96m{}\033[00m" .format(out)) def printOverride(out): print(" -> {}".format(out)) def dumpJson(data, f): json.dump(data, f, separators=(',', ':')) if minify else json.dump(data, f, indent=4) +class BlockStateData: + def __init__(self, namespace, block_name, state): + self.namespace = namespace + self.block_name = block_name + self.state = state + def fromFile(leaf, root, infile): + with open(os.path.join(root, infile), "r") as f: + printOverride("Loading blockstate data from: "+f.name) + return BlockStateData.fromJson(leaf, json.load(f).get("blockStateData")) + def fromJson(leaf, data): return BlockStateData(data["block"].split(":")[0], data["block"].split(":")[1], data["state"]) if "block" in data else BlockStateData(leaf.getId().split(":")[0], leaf.getId().split(":")[1], data["state"]) + class LeafBlock: def __init__(self, namespace, block_name, texture_name): self.namespace = namespace @@ -36,6 +47,7 @@ class LeafBlock: block_id_override = None texture_id_override = None dynamictrees_namespace = None + blockstate_data = None def getId(self): if (self.block_id_override != None): return self.block_id_override return self.namespace+":"+self.block_name @@ -138,6 +150,10 @@ def autoGen(jsonData, args): if leaf.getId() in generate_itemmodels_overrides: leaf.should_generate_item_model = True printOverride("Also generating item model") + + # Check for blockstate data + if infile.replace(".png", ".betterleaves.json") in files: + leaf.blockstate_data = BlockStateData.fromFile(leaf, root, infile.replace(".png", ".betterleaves.json")) # Generate blockstates & models generateBlockstate(leaf, block_state_copies) @@ -216,6 +232,29 @@ def generateTexture(root, infile, useProgrammerArt=False): outfolder = root.replace("assets", "").replace("input", "assets") os.makedirs(outfolder, exist_ok=True) + # Check for texture stitching data + textureMap = {} + if os.path.isfile(os.path.join(root, infile.replace(".png", ".betterleaves.json"))): + with open(os.path.join(root, infile.replace(".png", ".betterleaves.json")), "r") as f: + json_data = json.load(f) + if "textureStitching" in json_data: + printOverride("Using texture stitching data from: " + f.name) + # Create texture map from stitching data + for key, value in json_data["textureStitching"].items(): + if "-" in key: + for i in range(int(key.split("-")[0]), int(key.split("-")[1])+1): textureMap[str(i)] = value + else: textureMap[key] = value + # Turn texture map into absolute paths + for key, value in textureMap.items(): + textureRoot = f"./input/assets/{value.split(":")[0]}/textures/" + textureFile = value.split(":")[1] + ".png" + if "/" in textureFile: + textureRoot += textureFile.rsplit("/")[0] + textureFile = textureFile.rsplit("/")[1] + textureRoot = scanPacksForTexture(textureRoot, textureFile) + if useProgrammerArt: root = scanPacksForTexture(textureRoot, textureFile, "./input/programmer_art") + textureMap[key] = os.path.join(textureRoot, textureFile) + root = scanPacksForTexture(root, infile) if useProgrammerArt: root = scanPacksForTexture(root, infile, "./input/programmer_art") @@ -232,7 +271,11 @@ def generateTexture(root, infile, useProgrammerArt=False): # Now we paste the regular texture in a 3x3 grid, centered in the middle for x in range(-1, 2): for y in range(-1, 2): - out.paste(vanilla, (int(width / 2 + width * x), int(height / 2 + height * y))) + texture = vanilla + index = (x + 2) + (y + 1) * 3 # Turns coordinates into a number from 1 to 9 + if str(index) in textureMap: # Load texture from texture stitching map + texture = Image.open(textureMap[str(index)]) + out.paste(texture, (int(width / 2 + width * x), int(height / 2 + height * y))) # As the last step, we apply our custom mask to round the edges and smoothen things out mask = Image.open('input/mask.png').convert('L').resize(out.size, resample=Image.NEAREST) @@ -248,19 +291,33 @@ def generateBlockstate(leaf, block_state_copies): mod_namespace = leaf.getId().split(":")[0] block_name = leaf.getId().split(":")[1] + block_state_namespace = mod_namespace + block_state_name = block_name + + state = "" + if leaf.blockstate_data != None: # In case custom blockstate data is defined + block_state_namespace = leaf.blockstate_data.namespace + block_state_name = leaf.blockstate_data.block_name + state = leaf.blockstate_data.state + # Create structure for blockstate file - block_state_file = f"assets/{mod_namespace}/blockstates/{block_name}.json" + block_state_file = f"assets/{block_state_namespace}/blockstates/{block_state_name}.json" block_state_data = { "variants": { - "": [] + f"{state}": [] } } + if os.path.exists(block_state_file): # In case the blockstate file already exists, we want to add to it + with open(block_state_file, "r") as f: + block_state_data = json.load(f) + block_state_data["variants"][state] = [] + # Add four rotations for each of the four individual leaf models for i in range(1, 5): - block_state_data["variants"][""] += { "model": f"{mod_namespace}:block/{block_name}{i}" }, { "model": f"{mod_namespace}:block/{block_name}{i}", "y": 90 }, { "model": f"{mod_namespace}:block/{block_name}{i}", "y": 180 }, { "model": f"{mod_namespace}:block/{block_name}{i}", "y": 270 }, + block_state_data["variants"][state] += { "model": f"{mod_namespace}:block/{block_name}{i}" }, { "model": f"{mod_namespace}:block/{block_name}{i}", "y": 90 }, { "model": f"{mod_namespace}:block/{block_name}{i}", "y": 180 }, { "model": f"{mod_namespace}:block/{block_name}{i}", "y": 270 }, # Create blockstates folder if it doesn't exist already - os.makedirs("assets/{}/blockstates/".format(mod_namespace), exist_ok=True) + os.makedirs("assets/{}/blockstates/".format(block_state_namespace), exist_ok=True) # Write blockstate file with open(block_state_file, "w") as f: diff --git a/input/assets/environmental/textures/block/blue_wisteria_leaves.betterleaves.json b/input/assets/environmental/textures/block/blue_wisteria_leaves.betterleaves.json new file mode 100644 index 0000000..56b4983 --- /dev/null +++ b/input/assets/environmental/textures/block/blue_wisteria_leaves.betterleaves.json @@ -0,0 +1,5 @@ +{ + "blockStateData": { + "state": "half=bottom" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/blue_wisteria_leaves_top.betterleaves.json b/input/assets/environmental/textures/block/blue_wisteria_leaves_top.betterleaves.json new file mode 100644 index 0000000..9babe38 --- /dev/null +++ b/input/assets/environmental/textures/block/blue_wisteria_leaves_top.betterleaves.json @@ -0,0 +1,10 @@ +{ + "blockStateData": { + "block": "environmental:blue_wisteria_leaves", + "state": "half=top" + }, + "textureStitching": { + "1-3": "environmental:block/wisteria_leaves", + "7-9": "environmental:block/blue_wisteria_leaves" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/pink_wisteria_leaves.betterleaves.json b/input/assets/environmental/textures/block/pink_wisteria_leaves.betterleaves.json new file mode 100644 index 0000000..56b4983 --- /dev/null +++ b/input/assets/environmental/textures/block/pink_wisteria_leaves.betterleaves.json @@ -0,0 +1,5 @@ +{ + "blockStateData": { + "state": "half=bottom" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/pink_wisteria_leaves_top.betterleaves.json b/input/assets/environmental/textures/block/pink_wisteria_leaves_top.betterleaves.json new file mode 100644 index 0000000..850e353 --- /dev/null +++ b/input/assets/environmental/textures/block/pink_wisteria_leaves_top.betterleaves.json @@ -0,0 +1,10 @@ +{ + "blockStateData": { + "block": "environmental:pink_wisteria_leaves", + "state": "half=top" + }, + "textureStitching": { + "1-3": "environmental:block/wisteria_leaves", + "7-9": "environmental:block/pink_wisteria_leaves" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/purple_wisteria_leaves.betterleaves.json b/input/assets/environmental/textures/block/purple_wisteria_leaves.betterleaves.json new file mode 100644 index 0000000..56b4983 --- /dev/null +++ b/input/assets/environmental/textures/block/purple_wisteria_leaves.betterleaves.json @@ -0,0 +1,5 @@ +{ + "blockStateData": { + "state": "half=bottom" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/purple_wisteria_leaves_top.betterleaves.json b/input/assets/environmental/textures/block/purple_wisteria_leaves_top.betterleaves.json new file mode 100644 index 0000000..0477bac --- /dev/null +++ b/input/assets/environmental/textures/block/purple_wisteria_leaves_top.betterleaves.json @@ -0,0 +1,10 @@ +{ + "blockStateData": { + "block": "environmental:purple_wisteria_leaves", + "state": "half=top" + }, + "textureStitching": { + "1-3": "environmental:block/wisteria_leaves", + "7-9": "environmental:block/purple_wisteria_leaves" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/white_wisteria_leaves.betterleaves.json b/input/assets/environmental/textures/block/white_wisteria_leaves.betterleaves.json new file mode 100644 index 0000000..56b4983 --- /dev/null +++ b/input/assets/environmental/textures/block/white_wisteria_leaves.betterleaves.json @@ -0,0 +1,5 @@ +{ + "blockStateData": { + "state": "half=bottom" + } +} \ No newline at end of file diff --git a/input/assets/environmental/textures/block/white_wisteria_leaves_top.betterleaves.json b/input/assets/environmental/textures/block/white_wisteria_leaves_top.betterleaves.json new file mode 100644 index 0000000..ba9c2c9 --- /dev/null +++ b/input/assets/environmental/textures/block/white_wisteria_leaves_top.betterleaves.json @@ -0,0 +1,10 @@ +{ + "blockStateData": { + "block": "environmental:white_wisteria_leaves", + "state": "half=top" + }, + "textureStitching": { + "1-3": "environmental:block/wisteria_leaves", + "7-9": "environmental:block/white_wisteria_leaves" + } +} \ No newline at end of file