Skip to content

Commit 802bc09

Browse files
committed
add bogged head
1 parent 9bd7e09 commit 802bc09

File tree

6 files changed

+50
-69
lines changed

6 files changed

+50
-69
lines changed

builtin/mobheads/models/item/base/head_64_32.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"credit": "Made with Blockbench",
33
"parent": "mobheads:item/base/head_display",
44
"texture_size": [64, 32],
5+
"textures": {
6+
"overlay": "renderchest:item/empty"
7+
},
58
"elements": [
69
{
710
"from": [4, 4, 4],
@@ -14,6 +17,18 @@
1417
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#texture"},
1518
"down": {"uv": [4, 0, 6, 4], "texture": "#texture"}
1619
}
20+
},
21+
{
22+
"from": [3.5, 3.5, 3.5],
23+
"to": [12.5, 12.5, 12.5],
24+
"faces": {
25+
"north": {"uv": [2, 4, 4, 8], "texture": "#overlay"},
26+
"east": {"uv": [0, 4, 2, 8], "texture": "#overlay"},
27+
"south": {"uv": [6, 4, 8, 8], "texture": "#overlay"},
28+
"west": {"uv": [4, 4, 6, 8], "texture": "#overlay"},
29+
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#overlay"},
30+
"down": {"uv": [4, 0, 6, 4], "texture": "#overlay"}
31+
}
1732
}
1833
]
19-
}
34+
}

builtin/mobheads/models/item/base/head_64_64.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"credit": "Made with Blockbench",
33
"parent": "mobheads:item/base/head_display",
44
"texture_size": [64, 64],
5+
"textures": {
6+
"overlay": "renderchest:item/empty"
7+
},
58
"elements": [
69
{
710
"from": [4, 4, 4],
@@ -14,6 +17,18 @@
1417
"up": {"uv": [2, 0, 4, 2], "rotation": 180, "texture": "#texture"},
1518
"down": {"uv": [4, 0, 6, 2], "texture": "#texture"}
1619
}
20+
},
21+
{
22+
"from": [3.5, 3.5, 3.5],
23+
"to": [12.5, 12.5, 12.5],
24+
"faces": {
25+
"north": {"uv": [2, 2, 4, 4], "texture": "#overlay"},
26+
"east": {"uv": [0, 2, 2, 4], "texture": "#overlay"},
27+
"south": {"uv": [6, 2, 8, 4], "texture": "#overlay"},
28+
"west": {"uv": [4, 2, 6, 4], "texture": "#overlay"},
29+
"up": {"uv": [2, 0, 4, 2], "texture": "#overlay"},
30+
"down": {"uv": [4, 0, 6, 2], "texture": "#overlay"}
31+
}
1732
}
1833
]
19-
}
34+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"credit": "Made with Blockbench",
3+
"parent": "mobheads:item/base/head_64_32",
4+
"textures": {
5+
"texture": "entity/skeleton/bogged",
6+
"overlay": "entity/skeleton/bogged_overlay"
7+
}
8+
}
Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
11
{
22
"credit": "Made with Blockbench",
3-
"parent": "mobheads:item/base/head_display",
4-
"texture_size": [64, 64],
3+
"parent": "mobheads:item/base/head_64_64",
54
"textures": {
6-
"0": "minecraft:entity/zombie/drowned",
7-
"1": "minecraft:entity/zombie/drowned_outer_layer"
8-
},
9-
"elements": [
10-
{
11-
"from": [4, 4, 4],
12-
"to": [12, 12, 12],
13-
"faces": {
14-
"north": {"uv": [2, 2, 4, 4], "texture": "#0"},
15-
"east": {"uv": [0, 2, 2, 4], "texture": "#0"},
16-
"south": {"uv": [6, 2, 8, 4], "texture": "#0"},
17-
"west": {"uv": [4, 2, 6, 4], "texture": "#0"},
18-
"up": {"uv": [2, 0, 4, 2], "texture": "#0"},
19-
"down": {"uv": [4, 0, 6, 2], "texture": "#0"}
20-
}
21-
},
22-
{
23-
"from": [3.5, 3.5, 3.5],
24-
"to": [12.5, 12.5, 12.5],
25-
"faces": {
26-
"north": {"uv": [2, 2, 4, 4], "texture": "#1"},
27-
"east": {"uv": [0, 2, 2, 4], "texture": "#1"},
28-
"south": {"uv": [6, 2, 8, 4], "texture": "#1"},
29-
"west": {"uv": [4, 2, 6, 4], "texture": "#1"},
30-
"up": {"uv": [2, 0, 4, 2], "texture": "#1"},
31-
"down": {"uv": [4, 0, 6, 2], "texture": "#1"}
32-
}
33-
}
34-
]
35-
}
5+
"texture": "minecraft:entity/zombie/drowned",
6+
"overlay": "minecraft:entity/zombie/drowned_outer_layer"
7+
}
8+
}
Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,8 @@
11
{
22
"credit": "Made with Blockbench",
3-
"parent": "mobheads:item/base/head_display",
4-
"texture_size": [64, 32],
3+
"parent": "mobheads:item/base/head_64_32",
54
"textures": {
6-
"0": "entity/skeleton/stray",
7-
"1": "entity/skeleton/stray_overlay"
8-
},
9-
"elements": [
10-
{
11-
"from": [4, 4, 4],
12-
"to": [12, 12, 12],
13-
"faces": {
14-
"north": {"uv": [2, 4, 4, 8], "texture": "#0"},
15-
"east": {"uv": [0, 4, 2, 8], "texture": "#0"},
16-
"south": {"uv": [6, 4, 8, 8], "texture": "#0"},
17-
"west": {"uv": [4, 4, 6, 8], "texture": "#0"},
18-
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#0"},
19-
"down": {"uv": [4, 0, 6, 4], "texture": "#0"}
20-
}
21-
},
22-
{
23-
"from": [3.5, 3.5, 3.5],
24-
"to": [12.5, 12.5, 12.5],
25-
"faces": {
26-
"north": {"uv": [2, 4, 4, 8], "texture": "#1"},
27-
"east": {"uv": [0, 4, 2, 8], "texture": "#1"},
28-
"south": {"uv": [6, 4, 8, 8], "texture": "#1"},
29-
"west": {"uv": [4, 4, 6, 8], "texture": "#1"},
30-
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#1"},
31-
"down": {"uv": [4, 0, 6, 4], "texture": "#1"}
32-
}
33-
}
34-
]
35-
}
5+
"texture": "entity/skeleton/stray",
6+
"overlay": "entity/skeleton/stray_overlay"
7+
}
8+
}

src/Resource/Texture/TextureList.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ public function getResolvable(string $name): TextureInterface
5858
if (str_starts_with($name, "#")) {
5959
$name = substr($name, 1);
6060
}
61-
if (isset($this->textures[$name])) {
62-
return $this->textures[$name];
63-
}
6461
return new ResolvableTexture($this, $name);
6562
}
6663

0 commit comments

Comments
 (0)