feat: allow overriding top and bottom model textures
- Used for Snowy Northland leaves (Eternal Starlight) and Frosted Leaves (Chipped)
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves"
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves",
|
||||
"top": "chipped:block/acacia_leaves/frosted_acacia_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves"
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves",
|
||||
"top": "chipped:block/acacia_leaves/frosted_acacia_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves"
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves",
|
||||
"top": "chipped:block/acacia_leaves/frosted_acacia_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves"
|
||||
"all": "chipped:block/acacia_leaves/frosted_acacia_leaves",
|
||||
"top": "chipped:block/acacia_leaves/frosted_acacia_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves"
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves",
|
||||
"top": "chipped:block/birch_leaves/frosted_birch_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves"
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves",
|
||||
"top": "chipped:block/birch_leaves/frosted_birch_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves"
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves",
|
||||
"top": "chipped:block/birch_leaves/frosted_birch_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves"
|
||||
"all": "chipped:block/birch_leaves/frosted_birch_leaves",
|
||||
"top": "chipped:block/birch_leaves/frosted_birch_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves"
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves",
|
||||
"top": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves"
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves",
|
||||
"top": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves"
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves",
|
||||
"top": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves"
|
||||
"all": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves",
|
||||
"top": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves"
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves",
|
||||
"top": "chipped:block/jungle_leaves/frosted_jungle_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves"
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves",
|
||||
"top": "chipped:block/jungle_leaves/frosted_jungle_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves"
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves",
|
||||
"top": "chipped:block/jungle_leaves/frosted_jungle_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves"
|
||||
"all": "chipped:block/jungle_leaves/frosted_jungle_leaves",
|
||||
"top": "chipped:block/jungle_leaves/frosted_jungle_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves"
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves",
|
||||
"top": "chipped:block/oak_leaves/frosted_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves"
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves",
|
||||
"top": "chipped:block/oak_leaves/frosted_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves"
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves",
|
||||
"top": "chipped:block/oak_leaves/frosted_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves"
|
||||
"all": "chipped:block/oak_leaves/frosted_oak_leaves",
|
||||
"top": "chipped:block/oak_leaves/frosted_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves"
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves",
|
||||
"top": "chipped:block/spruce_leaves/frosted_spruce_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves"
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves",
|
||||
"top": "chipped:block/spruce_leaves/frosted_spruce_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves"
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves",
|
||||
"top": "chipped:block/spruce_leaves/frosted_spruce_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves"
|
||||
"all": "chipped:block/spruce_leaves/frosted_spruce_leaves",
|
||||
"top": "chipped:block/spruce_leaves/frosted_spruce_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 821 B After Width: | Height: | Size: 945 B |
|
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 1011 B |
|
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 951 B |
|
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 899 B |
|
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 916 B |
|
Before Width: | Height: | Size: 774 B After Width: | Height: | Size: 891 B |
@@ -1,66 +0,0 @@
|
||||
{
|
||||
"variants": {
|
||||
"": [
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves1"
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves1",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves1",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves1",
|
||||
"y": 270
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves2"
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves2",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves2",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves2",
|
||||
"y": 270
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves3"
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves3",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves3",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves3",
|
||||
"y": 270
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves4"
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves4",
|
||||
"y": 90
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves4",
|
||||
"y": 180
|
||||
},
|
||||
{
|
||||
"model": "eternal_starlight:block/jinglestem_leaves4",
|
||||
"y": 270
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/jinglestem_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/jinglestem_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/jinglestem_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/jinglestem_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/jinglestem_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves1",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy"
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy",
|
||||
"top": "minecraft:block/snow",
|
||||
"bottom": "eternal_starlight:block/northland_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves2",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy"
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy",
|
||||
"top": "minecraft:block/snow",
|
||||
"bottom": "eternal_starlight:block/northland_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves3",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy"
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy",
|
||||
"top": "minecraft:block/snow",
|
||||
"bottom": "eternal_starlight:block/northland_leaves"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"parent": "betterleaves:block/leaves4",
|
||||
"textures": {
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy"
|
||||
"all": "eternal_starlight:block/northland_leaves_snowy",
|
||||
"top": "minecraft:block/snow",
|
||||
"bottom": "eternal_starlight:block/northland_leaves"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 979 B |
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
"parent": "block/block",
|
||||
"texture_size": [32, 32],
|
||||
"textures": {
|
||||
"top": "#all",
|
||||
"bottom": "#all",
|
||||
"particle": "#all"
|
||||
},
|
||||
"elements": [
|
||||
@@ -15,8 +17,8 @@
|
||||
"east": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "east", "tintindex": 0},
|
||||
"south": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "south", "tintindex": 0},
|
||||
"west": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "west", "tintindex": 0},
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#all", "cullface": "down", "tintindex": 0}
|
||||
"up": {"uv": [4, 4, 12, 12], "texture": "#top", "cullface": "up", "tintindex": 0},
|
||||
"down": {"uv": [4, 4, 12, 12], "texture": "#bottom", "cullface": "down", "tintindex": 0}
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -38,4 +40,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
13
gen_pack.py
@@ -49,6 +49,7 @@ class LeafBlock:
|
||||
texture_id_override = None
|
||||
dynamictrees_namespace = None
|
||||
blockstate_data = None
|
||||
sprite_overrides = None
|
||||
def getId(self):
|
||||
if (self.block_id_override != None): return self.block_id_override
|
||||
return self.namespace+":"+self.block_name
|
||||
@@ -160,8 +161,11 @@ def autoGen(jsonData, args):
|
||||
# Check for blockstate data
|
||||
if infile.replace(".png", ".betterleaves.json") in files:
|
||||
with open(os.path.join(root, infile.replace(".png", ".betterleaves.json")), "r") as f:
|
||||
if "blockStateData" in json.load(f):
|
||||
jsonFile = json.load(f)
|
||||
if "blockStateData" in jsonFile:
|
||||
leaf.blockstate_data = BlockStateData.fromFile(leaf, root, infile.replace(".png", ".betterleaves.json"))
|
||||
if "spriteOverrides" in jsonFile:
|
||||
leaf.sprite_overrides = jsonFile["spriteOverrides"]
|
||||
|
||||
# Generate blockstates & models
|
||||
generateBlockstate(leaf, block_state_copies)
|
||||
@@ -258,7 +262,7 @@ def generateTexture(root, infile, useProgrammerArt=False):
|
||||
textureFile = value.split(":")[1] + ".png"
|
||||
if "/" in textureFile:
|
||||
textureRoot += textureFile.rsplit("/")[0]
|
||||
textureFile = textureFile.rsplit("/")[1]
|
||||
textureFile = textureFile[len(textureFile.rsplit("/")[0])+1:] # The rest of the string, starting behind the first '/'
|
||||
textureRoot = scanPacksForTexture(textureRoot, textureFile)
|
||||
if useProgrammerArt: root = scanPacksForTexture(textureRoot, textureFile, "./input/programmer_art")
|
||||
textureMap[key] = os.path.join(textureRoot, textureFile)
|
||||
@@ -381,6 +385,11 @@ def generateBlockModels(leaf):
|
||||
if (leaf.overlay_texture_id != ""):
|
||||
block_model_data["textures"]["overlay"] = leaf.overlay_texture_id
|
||||
|
||||
# Add additional textures
|
||||
if (leaf.sprite_overrides):
|
||||
for key in leaf.sprite_overrides:
|
||||
block_model_data["textures"][key] = leaf.sprite_overrides[key];
|
||||
|
||||
# Write block model file
|
||||
with open(block_model_file, "w") as f:
|
||||
dumpJson(block_model_data, f)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"textureStitching": {
|
||||
"1-3": "chipped:block/acacia_leaves/frosted_acacia_leaves_top"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "chipped:block/acacia_leaves/frosted_acacia_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"textureStitching": {
|
||||
"1-3": "chipped:block/birch_leaves/frosted_birch_leaves_top"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "chipped:block/birch_leaves/frosted_birch_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"textureStitching": {
|
||||
"1-3": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves_top"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "chipped:block/dark_oak_leaves/frosted_dark_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"textureStitching": {
|
||||
"1-3": "chipped:block/jungle_leaves/frosted_jungle_leaves_top"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "chipped:block/jungle_leaves/frosted_jungle_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"textureStitching": {
|
||||
"1-3": "chipped:block/oak_leaves/frosted_oak_leaves_top"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "chipped:block/oak_leaves/frosted_oak_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"textureStitching": {
|
||||
"1-3": "chipped:block/spruce_leaves/frosted_spruce_leaves_top"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "chipped:block/spruce_leaves/frosted_spruce_leaves_top",
|
||||
"bottom": "#top"
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,9 @@
|
||||
"textureStitching": {
|
||||
"1-3": "minecraft:block/snow",
|
||||
"7-9": "eternal_starlight:block/northland_leaves"
|
||||
},
|
||||
"spriteOverrides": {
|
||||
"top": "minecraft:block/snow",
|
||||
"bottom": "eternal_starlight:block/northland_leaves"
|
||||
}
|
||||
}
|
||||
|
||||