diff --git a/Better-Leaves-Lite-1.0.zip b/Better-Leaves-Lite-1.0.zip index 5bf0b5f..8d12af9 100644 Binary files a/Better-Leaves-Lite-1.0.zip and b/Better-Leaves-Lite-1.0.zip differ diff --git a/assets/betterleaves/models/block/leaves_legacy1.json b/assets/betterleaves/models/block/leaves_legacy1.json new file mode 100644 index 0000000..f5cf0cf --- /dev/null +++ b/assets/betterleaves/models/block/leaves_legacy1.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [2.4, -6, 5.2], + "to": [20.4, -3, 5.21], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [2, 3, -2]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [2.4, 20, 5.2], + "to": [20.4, 23, 5.21], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [2, 25, -2]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [22.4, -1, 9.3], + "to": [25.4, 18, 9.31], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [12, 7, 2]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "east"}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0, "cullface": "east"} + } + }, + { + "from": [-2.6, -1, 0.5], + "to": [0.4, 18, 0.51], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [-9, 7, -7]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0, "cullface": "west"}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0, "cullface": "west"} + } + }, + { + "from": [7, 4, 7.99], + "to": [23, 20, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [7, -3, 7.99], + "to": [23, 4, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, -3, 7.99], + "to": [7, 4, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, 4, 7.99], + "to": [7, 20, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5, -7, 16.6], + "to": [14, -4, 16.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-5, 4, 8]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.6, 21, 17], + "to": [13.4, 23, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 9, 7]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [16, -2, 17], + "to": [20, 19, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5.85, -2, 16.25], + "to": [-2.85, 19, 16.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-2, 4, 14]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, 5, 17], + "to": [16, 21, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, -4, 17], + "to": [16, 5, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, -5, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, -4, 25], + "to": [3.325, 5, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, -5, 15]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, 5, 25], + "to": [3.325, 21, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, 4, 15]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/assets/betterleaves/models/block/leaves_legacy2.json b/assets/betterleaves/models/block/leaves_legacy2.json new file mode 100644 index 0000000..4253aaf --- /dev/null +++ b/assets/betterleaves/models/block/leaves_legacy2.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [6.4, -6, 4.2], + "to": [24.4, -3, 4.21], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 3, 0]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [6.4, 20, 4.4], + "to": [24.4, 23, 4.41], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 25, 0]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [26.4, -1, 12.7], + "to": [29.4, 18, 12.71], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [16, 7, 4]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0.3, -1, -3.8], + "to": [3.3, 18, -3.79], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [-4, 7, -5]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, 4, 9.99], + "to": [27, 20, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 2]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, -3, 9.99], + "to": [27, 4, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, -3, 9.99], + "to": [11, 4, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, 4, 9.99], + "to": [11, 20, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 2]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5, -7, 16.6], + "to": [14, -4, 16.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-5, 4, 8]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.6, 21, 17], + "to": [13.4, 23, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 9, 7]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [16, -2, 17], + "to": [20, 19, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5.85, -2, 16.25], + "to": [-2.85, 19, 16.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-2, 4, 14]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, 5, 17], + "to": [16, 21, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, -4, 17], + "to": [16, 5, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, -5, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, -4, 25], + "to": [3.325, 5, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, -5, 15]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, 5, 25], + "to": [3.325, 21, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, 4, 15]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/assets/betterleaves/models/block/leaves_legacy3.json b/assets/betterleaves/models/block/leaves_legacy3.json new file mode 100644 index 0000000..ec16bad --- /dev/null +++ b/assets/betterleaves/models/block/leaves_legacy3.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [6.4, -6, 2.2], + "to": [24.4, -3, 2.21], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 3, -2]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [6.4, 20, 2.4], + "to": [24.4, 23, 2.41], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 25, -2]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [26.4, -1, 10.7], + "to": [29.4, 18, 10.71], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [16, 7, 2]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0.3, -1, -5.8], + "to": [3.3, 18, -5.79], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [-4, 7, -7]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, 4, 7.99], + "to": [27, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, -3, 7.99], + "to": [27, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, -3, 7.99], + "to": [11, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, 4, 7.99], + "to": [11, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 0]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-6, -7, 16.6], + "to": [13, -4, 16.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 8]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-6.6, 21, 17], + "to": [12.4, 23, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, 9, 7]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [15, -2, 17], + "to": [19, 19, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-6.85, -2, 16.25], + "to": [-3.85, 19, 16.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-3, 4, 14]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-1, 5, 17], + "to": [15, 21, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-1, -4, 17], + "to": [15, 5, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, -5, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-6.675, -4, 25], + "to": [2.325, 5, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-15, -5, 15]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-6.675, 5, 25], + "to": [2.325, 21, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-15, 4, 15]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/assets/betterleaves/models/block/leaves_legacy4.json b/assets/betterleaves/models/block/leaves_legacy4.json new file mode 100644 index 0000000..275698d --- /dev/null +++ b/assets/betterleaves/models/block/leaves_legacy4.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [2.4, -6, 2.2], + "to": [20.4, -3, 2.21], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [2, 3, -2]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [2.4, 20, 2.4], + "to": [20.4, 23, 2.41], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [2, 25, -2]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [22.4, -1, 10.7], + "to": [25.4, 18, 10.71], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [12, 7, 2]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "south"}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0, "cullface": "south"} + } + }, + { + "from": [-3.7, -1, -5.8], + "to": [-0.7, 18, -5.79], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [-8, 7, -7]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [7, 4, 7.99], + "to": [23, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [7, -3, 7.99], + "to": [23, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, -3, 7.99], + "to": [7, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, 4, 7.99], + "to": [7, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-3, -7, 19.6], + "to": [16, -4, 19.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-3, 4, 11]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-3.6, 21, 20], + "to": [15.4, 23, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, 9, 10]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [18, -2, 20], + "to": [22, 19, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, 4, 10]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-3.85, -2, 19.25], + "to": [-0.85, 19, 19.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [0, 4, 17]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [2, 5, 20], + "to": [18, 21, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, 4, 10]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [2, -4, 20], + "to": [18, 5, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, -5, 10]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-3.675, -4, 28], + "to": [5.325, 5, 28.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-12, -5, 18]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-3.675, 5, 28], + "to": [5.325, 21, 28.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-12, 4, 18]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/assets/biomeswevegone/blockstates/blooming_witch_hazel_leaves.json b/assets/biomeswevegone/blockstates/blooming_witch_hazel_leaves.json new file mode 100644 index 0000000..73c4e4c --- /dev/null +++ b/assets/biomeswevegone/blockstates/blooming_witch_hazel_leaves.json @@ -0,0 +1,66 @@ +{ + "variants": { + "": [ + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves1" + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves1", + "y": 90 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves1", + "y": 180 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves1", + "y": 270 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves2" + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves2", + "y": 90 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves2", + "y": 180 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves2", + "y": 270 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves3" + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves3", + "y": 90 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves3", + "y": 180 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves3", + "y": 270 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves4" + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves4", + "y": 90 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves4", + "y": 180 + }, + { + "model": "biomeswevegone:block/blooming_witch_hazel_leaves4", + "y": 270 + } + ] + } +} \ No newline at end of file diff --git a/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves1.json b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves1.json new file mode 100644 index 0000000..b0ba5ab --- /dev/null +++ b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves1.json @@ -0,0 +1,6 @@ +{ + "parent": "betterleaves:block/leaves_legacy1", + "textures": { + "all": "biomeswevegone:block/blooming_witch_hazel_leaves" + } +} \ No newline at end of file diff --git a/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves2.json b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves2.json new file mode 100644 index 0000000..c05d90e --- /dev/null +++ b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves2.json @@ -0,0 +1,6 @@ +{ + "parent": "betterleaves:block/leaves_legacy2", + "textures": { + "all": "biomeswevegone:block/blooming_witch_hazel_leaves" + } +} \ No newline at end of file diff --git a/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves3.json b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves3.json new file mode 100644 index 0000000..52fe938 --- /dev/null +++ b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves3.json @@ -0,0 +1,6 @@ +{ + "parent": "betterleaves:block/leaves_legacy3", + "textures": { + "all": "biomeswevegone:block/blooming_witch_hazel_leaves" + } +} \ No newline at end of file diff --git a/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves4.json b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves4.json new file mode 100644 index 0000000..d457b56 --- /dev/null +++ b/assets/biomeswevegone/models/block/blooming_witch_hazel_leaves4.json @@ -0,0 +1,6 @@ +{ + "parent": "betterleaves:block/leaves_legacy4", + "textures": { + "all": "biomeswevegone:block/blooming_witch_hazel_leaves" + } +} \ No newline at end of file diff --git a/assets/biomeswevegone/models/item/blooming_witch_hazel_leaves.json b/assets/biomeswevegone/models/item/blooming_witch_hazel_leaves.json new file mode 100644 index 0000000..efc573f --- /dev/null +++ b/assets/biomeswevegone/models/item/blooming_witch_hazel_leaves.json @@ -0,0 +1,3 @@ +{ + "parent": "biomeswevegone:block/blooming_witch_hazel_leaves1" +} \ No newline at end of file diff --git a/base/assets/betterleaves/models/block/leaves_legacy1.json b/base/assets/betterleaves/models/block/leaves_legacy1.json new file mode 100644 index 0000000..f5cf0cf --- /dev/null +++ b/base/assets/betterleaves/models/block/leaves_legacy1.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [2.4, -6, 5.2], + "to": [20.4, -3, 5.21], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [2, 3, -2]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [2.4, 20, 5.2], + "to": [20.4, 23, 5.21], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [2, 25, -2]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [22.4, -1, 9.3], + "to": [25.4, 18, 9.31], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [12, 7, 2]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "east"}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0, "cullface": "east"} + } + }, + { + "from": [-2.6, -1, 0.5], + "to": [0.4, 18, 0.51], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [-9, 7, -7]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0, "cullface": "west"}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0, "cullface": "west"} + } + }, + { + "from": [7, 4, 7.99], + "to": [23, 20, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [7, -3, 7.99], + "to": [23, 4, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, -3, 7.99], + "to": [7, 4, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, 4, 7.99], + "to": [7, 20, 8], + "shade": false, + "rotation": {"angle": -22.5, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5, -7, 16.6], + "to": [14, -4, 16.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-5, 4, 8]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.6, 21, 17], + "to": [13.4, 23, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 9, 7]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [16, -2, 17], + "to": [20, 19, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5.85, -2, 16.25], + "to": [-2.85, 19, 16.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-2, 4, 14]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, 5, 17], + "to": [16, 21, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, -4, 17], + "to": [16, 5, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, -5, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, -4, 25], + "to": [3.325, 5, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, -5, 15]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, 5, 25], + "to": [3.325, 21, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, 4, 15]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/base/assets/betterleaves/models/block/leaves_legacy2.json b/base/assets/betterleaves/models/block/leaves_legacy2.json new file mode 100644 index 0000000..4253aaf --- /dev/null +++ b/base/assets/betterleaves/models/block/leaves_legacy2.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [6.4, -6, 4.2], + "to": [24.4, -3, 4.21], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 3, 0]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [6.4, 20, 4.4], + "to": [24.4, 23, 4.41], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 25, 0]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [26.4, -1, 12.7], + "to": [29.4, 18, 12.71], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [16, 7, 4]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0.3, -1, -3.8], + "to": [3.3, 18, -3.79], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [-4, 7, -5]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, 4, 9.99], + "to": [27, 20, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 2]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, -3, 9.99], + "to": [27, 4, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, -3, 9.99], + "to": [11, 4, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, 4, 9.99], + "to": [11, 20, 10], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 2]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5, -7, 16.6], + "to": [14, -4, 16.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-5, 4, 8]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.6, 21, 17], + "to": [13.4, 23, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 9, 7]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [16, -2, 17], + "to": [20, 19, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-5.85, -2, 16.25], + "to": [-2.85, 19, 16.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-2, 4, 14]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, 5, 17], + "to": [16, 21, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0, -4, 17], + "to": [16, 5, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, -5, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, -4, 25], + "to": [3.325, 5, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, -5, 15]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-5.675, 5, 25], + "to": [3.325, 21, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-14, 4, 15]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/base/assets/betterleaves/models/block/leaves_legacy3.json b/base/assets/betterleaves/models/block/leaves_legacy3.json new file mode 100644 index 0000000..ec16bad --- /dev/null +++ b/base/assets/betterleaves/models/block/leaves_legacy3.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [6.4, -6, 2.2], + "to": [24.4, -3, 2.21], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 3, -2]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [6.4, 20, 2.4], + "to": [24.4, 23, 2.41], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [6, 25, -2]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [26.4, -1, 10.7], + "to": [29.4, 18, 10.71], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [16, 7, 2]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [0.3, -1, -5.8], + "to": [3.3, 18, -5.79], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [-4, 7, -7]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, 4, 7.99], + "to": [27, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [11, -3, 7.99], + "to": [27, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, -3, 7.99], + "to": [11, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [3, 4, 7.99], + "to": [11, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [13, 7, 0]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-6, -7, 16.6], + "to": [13, -4, 16.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-6, 4, 8]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-6.6, 21, 17], + "to": [12.4, 23, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, 9, 7]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [15, -2, 17], + "to": [19, 19, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-6.85, -2, 16.25], + "to": [-3.85, 19, 16.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-3, 4, 14]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-1, 5, 17], + "to": [15, 21, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, 4, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-1, -4, 17], + "to": [15, 5, 17.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-7, -5, 7]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-6.675, -4, 25], + "to": [2.325, 5, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-15, -5, 15]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-6.675, 5, 25], + "to": [2.325, 21, 25.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-15, 4, 15]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/base/assets/betterleaves/models/block/leaves_legacy4.json b/base/assets/betterleaves/models/block/leaves_legacy4.json new file mode 100644 index 0000000..275698d --- /dev/null +++ b/base/assets/betterleaves/models/block/leaves_legacy4.json @@ -0,0 +1,196 @@ +{ + "credit": "made by Motschen", + "parent": "block/block", + "textures": { + "0": "block/oak_leaves", + "particle": "#0" + }, + "elements": [ + { + "name": "normal_block", + "from": [0, 0, 0], + "to": [16, 16, 16], + "shade": false, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "north", "tintindex": 0}, + "east": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "east", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "south", "tintindex": 0}, + "west": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "west", "tintindex": 0}, + "up": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "up", "tintindex": 0}, + "down": {"uv": [0, 0, 16, 16], "texture": "#0", "cullface": "down", "tintindex": 0} + } + }, + { + "from": [2.4, -6, 2.2], + "to": [20.4, -3, 2.21], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [2, 3, -2]}, + "faces": { + "north": {"uv": [0, 8, 16, 11], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 1, 16, 4], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [2.4, 20, 2.4], + "to": [20.4, 23, 2.41], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [2, 25, -2]}, + "faces": { + "north": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 3.05, 16, 5.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [22.4, -1, 10.7], + "to": [25.4, 18, 10.71], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [12, 7, 2]}, + "faces": { + "north": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "south"}, + "south": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0, "cullface": "south"} + } + }, + { + "from": [-3.7, -1, -5.8], + "to": [-0.7, 18, -5.79], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [-8, 7, -7]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 3, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [7, 4, 7.99], + "to": [23, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [7, -3, 7.99], + "to": [23, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, -3, 7.99], + "to": [7, 4, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 8, 7], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-1, 4, 7.99], + "to": [7, 20, 8], + "shade": false, + "rotation": {"angle": -45, "axis": "y", "origin": [9, 7, 0]}, + "faces": { + "north": {"uv": [0.05, 0, 7.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 8, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-3, -7, 19.6], + "to": [16, -4, 19.61], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-3, 4, 11]}, + "faces": { + "north": {"uv": [0, 12, 16, 15], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 7, 16, 10], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-3.6, 21, 20], + "to": [15.4, 23, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, 9, 10]}, + "faces": { + "north": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"}, + "south": {"uv": [0, 14.05, 16, 15.95], "texture": "#0", "tintindex": 0, "cullface": "up"} + } + }, + { + "from": [18, -2, 20], + "to": [22, 19, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, 4, 10]}, + "faces": { + "north": {"uv": [0, 0, 4, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [9.05, 0, 12.95, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [-3.85, -2, 19.25], + "to": [-0.85, 19, 19.26], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [0, 4, 17]}, + "faces": { + "north": {"uv": [0.05, 0, 2.95, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [13, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [2, 5, 20], + "to": [18, 21, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, 4, 10]}, + "faces": { + "north": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [0, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + }, + { + "from": [2, -4, 20], + "to": [18, 5, 20.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-4, -5, 10]}, + "faces": { + "north": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [0, 0, 16, 9], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-3.675, -4, 28], + "to": [5.325, 5, 28.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-12, -5, 18]}, + "faces": { + "north": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"}, + "south": {"uv": [7, 7, 16, 16], "texture": "#0", "tintindex": 0, "cullface": "down"} + } + }, + { + "from": [-3.675, 5, 28], + "to": [5.325, 21, 28.01], + "shade": false, + "rotation": {"angle": 45, "axis": "y", "origin": [-12, 4, 18]}, + "faces": { + "north": {"uv": [0, 0, 10, 16], "texture": "#0", "tintindex": 0}, + "south": {"uv": [7, 0, 16, 16], "texture": "#0", "tintindex": 0} + } + } + ], + "groups": [0, + { + "name": "bushy_leaves", + "origin": [8, 8, 8], + "children": [1, 2, 3, 4, 5, 6, 7, 8] + }, + { + "name": "bushy_leaves2", + "origin": [8, 8, 8], + "children": [9, 10, 11, 12, 13, 14, 15, 16] + } + ] +} diff --git a/gen-pack.py b/gen_pack.py similarity index 89% rename from gen-pack.py rename to gen_pack.py index 6284af3..7e59586 100644 --- a/gen-pack.py +++ b/gen_pack.py @@ -30,6 +30,8 @@ def autoGen(jsonData): copy_tree("./base/assets/", "./assets/") filecount = 0 unpackTexturepacks() + unpackMods() + scanModsForTextures() for root, dirs, files in os.walk("./input/assets"): for infile in files: @@ -56,8 +58,11 @@ def autoGen(jsonData): printOverride("Skipping overlay texture") continue + texture = Image.open(os.path.join(root, infile)) + is_animated = texture.size[0] != texture.size[1] + # Generate texture - generateTexture(root, infile) + if not is_animated: generateTexture(root, infile) # Set block id and apply overrides block_id = namespace+":"+block_name @@ -75,7 +80,10 @@ def autoGen(jsonData): base_model = "leaves" # Check if the block appears in the notint overrides hasNoTint = block_id in notint_overrides - if hasNoTint: + if is_animated: + base_model = "leaves_legacy" + printOverride("Animated – using legacy model") + elif hasNoTint: base_model = "leaves_notint" printOverride("No tint") @@ -107,8 +115,35 @@ def autoGen(jsonData): # End of autoGen print() cleanupTexturepacks() + cleanupMods() printCyan("Processed {} leaf blocks".format(filecount)) +def unpackMods(): + for root, dirs, files in os.walk("./input/mods"): + for infile in files: + if infile.endswith(".jar"): + print("Unpacking mod: "+infile) + zf = zipfile.ZipFile(os.path.join(root, infile), 'r') + zf.extractall(os.path.join(root, infile.replace(".jar", "_temp"))) + zf.close() + +def cleanupMods(): + if (os.path.exists("./input/mods")): shutil.rmtree("./input/mods") + os.makedirs("./input/mods") + +def scanModsForTextures(): + for root, dirs, files in os.walk("./input/mods"): + for infile in files: + if len(root.split("assets")) > 1: + assetpath = root.split("assets")[1][1:] + modid = assetpath.split("textures")[0].replace("/", "") + if "textures/block" in root and infile.endswith(".png") and "leaves" in infile: + print(f"Found texture {assetpath+"/"+infile} in mod {modid}") + inputfolder = os.path.join("./input/assets/", assetpath) + os.makedirs(inputfolder, exist_ok=True) + shutil.copyfile(os.path.join(root, infile), os.path.join(inputfolder, infile)) + + def unpackTexturepacks(): for root, dirs, files in os.walk("./input/texturepacks"): for infile in files: diff --git a/input/assets/biomeswevegone/textures/block/blooming_witch_hazel_leaves.png b/input/assets/biomeswevegone/textures/block/blooming_witch_hazel_leaves.png new file mode 100644 index 0000000..01ab165 Binary files /dev/null and b/input/assets/biomeswevegone/textures/block/blooming_witch_hazel_leaves.png differ