Skip to content

Commit 9ab1f66

Browse files
committed
fix: bed uv mapping
1 parent 5316440 commit 9ab1f66

File tree

3 files changed

+82
-8
lines changed

3 files changed

+82
-8
lines changed
1.95 KB
Loading
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"format_version": "1.21.6",
3+
"credit": "Made with Blockbench",
4+
"textures": {
5+
"0": "entity/bed/black"
6+
},
7+
"elements": [
8+
{
9+
"from": [0, 0, 13],
10+
"to": [3, 3, 16],
11+
"faces": {
12+
"north": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#0"},
13+
"east": {"uv": [14, 5.25, 14.75, 6], "texture": "#0"},
14+
"south": {"uv": [13.25, 5.25, 14, 6], "texture": "#0"},
15+
"west": {"uv": [12.5, 5.25, 13.25, 6], "texture": "#0"},
16+
"up": {"uv": [13.25, 4.5, 14, 5.25], "rotation": 180, "texture": "#0"},
17+
"down": {"uv": [14.75, 4.5, 14, 5.25], "rotation": 180, "texture": "#0"}
18+
}
19+
},
20+
{
21+
"from": [0, 3, -16],
22+
"to": [16, 9, 0],
23+
"faces": {
24+
"north": {"uv": [5.5, 5.5, 9.5, 7], "rotation": 180, "texture": "#0"},
25+
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#0"},
26+
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#0"},
27+
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#0"},
28+
"down": {"uv": [11, 11, 7, 7], "rotation": 180, "texture": "#0"}
29+
}
30+
},
31+
{
32+
"from": [0, 0, -16],
33+
"to": [3, 3, -13],
34+
"faces": {
35+
"north": {"uv": [12.5, 3.75, 13.25, 4.5], "texture": "#0"},
36+
"east": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#0"},
37+
"south": {"uv": [14, 3.75, 14.75, 4.5], "texture": "#0"},
38+
"west": {"uv": [13.25, 3.75, 14, 4.5], "texture": "#0"},
39+
"up": {"uv": [13.25, 3, 14, 3.75], "rotation": 90, "texture": "#0"},
40+
"down": {"uv": [14.75, 3, 14, 3.75], "rotation": 90, "texture": "#0"}
41+
}
42+
},
43+
{
44+
"from": [13, 0, -16],
45+
"to": [16, 3, -13],
46+
"faces": {
47+
"north": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#0"},
48+
"east": {"uv": [12.5, 0.75, 13.25, 1.5], "texture": "#0"},
49+
"south": {"uv": [14.75, 0.75, 15.5, 1.5], "texture": "#0"},
50+
"west": {"uv": [14, 0.75, 14.75, 1.5], "texture": "#0"},
51+
"up": {"uv": [13.25, 0, 14, 0.75], "texture": "#0"},
52+
"down": {"uv": [14.75, 0, 14, 0.75], "texture": "#0"}
53+
}
54+
},
55+
{
56+
"from": [0, 3, 0],
57+
"to": [16, 9, 16],
58+
"faces": {
59+
"east": {"uv": [0, 1.5, 1.5, 5.5], "rotation": 270, "texture": "#0"},
60+
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#0"},
61+
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#0"},
62+
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#0"},
63+
"down": {"uv": [11, 5.5, 7, 1.5], "rotation": 180, "texture": "#0"}
64+
}
65+
},
66+
{
67+
"from": [13, 0, 13],
68+
"to": [16, 3, 16],
69+
"faces": {
70+
"north": {"uv": [14, 2.25, 14.75, 3], "texture": "#0"},
71+
"east": {"uv": [13.25, 2.25, 14, 3], "texture": "#0"},
72+
"south": {"uv": [12.5, 2.25, 13.25, 3], "texture": "#0"},
73+
"west": {"uv": [14.75, 2.25, 15.5, 3], "texture": "#0"},
74+
"up": {"uv": [13.25, 1.5, 14, 2.25], "rotation": 270, "texture": "#0"},
75+
"down": {"uv": [14, 1.5, 14.75, 2.25], "rotation": 270, "texture": "#0"}
76+
}
77+
}
78+
],
79+
"display": {}
80+
}

model_resolver/item_model/special.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def get_model(self, getter: PackGetterV2, item: Item) -> dict[str, Any]:
6767
{
6868
"from": [0, 0, 13],
6969
"to": [3, 3, 16],
70-
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
7170
"faces": {
7271
"north": {"uv": [14.75, 5.25, 15.5, 6], "texture": "#0"},
7372
"east": {"uv": [14, 5.25, 14.75, 6], "texture": "#0"},
@@ -80,19 +79,17 @@ def get_model(self, getter: PackGetterV2, item: Item) -> dict[str, Any]:
8079
{
8180
"from": [0, 3, -16],
8281
"to": [16, 9, 0],
83-
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
8482
"faces": {
8583
"north": {"uv": [5.5, 5.5, 9.5, 7], "rotation": 180, "texture": "#0"},
8684
"east": {"uv": [0, 7, 1.5, 11], "rotation": 270, "texture": "#0"},
8785
"west": {"uv": [5.5, 7, 7, 11], "rotation": 90, "texture": "#0"},
8886
"up": {"uv": [1.5, 7, 5.5, 11], "rotation": 180, "texture": "#0"},
89-
"down": {"uv": [10.75, 10.75, 7, 7], "rotation": 180, "texture": "#0"}
87+
"down": {"uv": [11, 11, 7, 7], "rotation": 180, "texture": "#0"}
9088
}
9189
},
9290
{
9391
"from": [0, 0, -16],
9492
"to": [3, 3, -13],
95-
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
9693
"faces": {
9794
"north": {"uv": [12.5, 3.75, 13.25, 4.5], "texture": "#0"},
9895
"east": {"uv": [14.75, 3.75, 15.5, 4.5], "texture": "#0"},
@@ -105,7 +102,6 @@ def get_model(self, getter: PackGetterV2, item: Item) -> dict[str, Any]:
105102
{
106103
"from": [13, 0, -16],
107104
"to": [16, 3, -13],
108-
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
109105
"faces": {
110106
"north": {"uv": [13.25, 0.75, 14, 1.5], "texture": "#0"},
111107
"east": {"uv": [12.5, 0.75, 13.25, 1.5], "texture": "#0"},
@@ -118,19 +114,17 @@ def get_model(self, getter: PackGetterV2, item: Item) -> dict[str, Any]:
118114
{
119115
"from": [0, 3, 0],
120116
"to": [16, 9, 16],
121-
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
122117
"faces": {
123118
"east": {"uv": [0, 1.5, 1.5, 5.5], "rotation": 270, "texture": "#0"},
124119
"south": {"uv": [1.5, 0, 5.5, 1.5], "rotation": 180, "texture": "#0"},
125120
"west": {"uv": [5.5, 1.5, 7, 5.5], "rotation": 90, "texture": "#0"},
126121
"up": {"uv": [1.5, 1.5, 5.5, 5.5], "rotation": 180, "texture": "#0"},
127-
"down": {"uv": [10.75, 5.25, 7, 1.5], "rotation": 180, "texture": "#0"}
122+
"down": {"uv": [11, 5.5, 7, 1.5], "rotation": 180, "texture": "#0"}
128123
}
129124
},
130125
{
131126
"from": [13, 0, 13],
132127
"to": [16, 3, 16],
133-
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 0]},
134128
"faces": {
135129
"north": {"uv": [14, 2.25, 14.75, 3], "texture": "#0"},
136130
"east": {"uv": [13.25, 2.25, 14, 3], "texture": "#0"},

0 commit comments

Comments
 (0)