feat: allow overriding top and bottom model textures

- Used for Snowy Northland leaves (Eternal Starlight) and Frosted Leaves (Chipped)
This commit is contained in:
Martin Prokoph
2025-07-17 16:07:31 +02:00
parent 833e703f50
commit 819e402eac
58 changed files with 193 additions and 150 deletions

View File

@@ -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 @@
}
}
]
}
}

View File

@@ -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 @@
}
}
]
}
}

View File

@@ -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 @@
}
}
]
}
}

View File

@@ -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 @@
}
}
]
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 B

After

Width:  |  Height:  |  Size: 945 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 888 B

After

Width:  |  Height:  |  Size: 1011 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 841 B

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 842 B

After

Width:  |  Height:  |  Size: 899 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 B

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 774 B

After

Width:  |  Height:  |  Size: 891 B

View File

@@ -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
}
]
}
}

View File

@@ -1,6 +0,0 @@
{
"parent": "betterleaves:block/leaves",
"textures": {
"all": "eternal_starlight:block/jinglestem_leaves"
}
}

View File

@@ -1,6 +0,0 @@
{
"parent": "betterleaves:block/leaves1",
"textures": {
"all": "eternal_starlight:block/jinglestem_leaves"
}
}

View File

@@ -1,6 +0,0 @@
{
"parent": "betterleaves:block/leaves2",
"textures": {
"all": "eternal_starlight:block/jinglestem_leaves"
}
}

View File

@@ -1,6 +0,0 @@
{
"parent": "betterleaves:block/leaves3",
"textures": {
"all": "eternal_starlight:block/jinglestem_leaves"
}
}

View File

@@ -1,6 +0,0 @@
{
"parent": "betterleaves:block/leaves4",
"textures": {
"all": "eternal_starlight:block/jinglestem_leaves"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

View File

@@ -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"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 979 B