Skip to content

Commit

Permalink
add bogged head
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Feb 15, 2024
1 parent 9bd7e09 commit 802bc09
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 69 deletions.
17 changes: 16 additions & 1 deletion builtin/mobheads/models/item/base/head_64_32.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"credit": "Made with Blockbench",
"parent": "mobheads:item/base/head_display",
"texture_size": [64, 32],
"textures": {
"overlay": "renderchest:item/empty"
},
"elements": [
{
"from": [4, 4, 4],
Expand All @@ -14,6 +17,18 @@
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#texture"},
"down": {"uv": [4, 0, 6, 4], "texture": "#texture"}
}
},
{
"from": [3.5, 3.5, 3.5],
"to": [12.5, 12.5, 12.5],
"faces": {
"north": {"uv": [2, 4, 4, 8], "texture": "#overlay"},
"east": {"uv": [0, 4, 2, 8], "texture": "#overlay"},
"south": {"uv": [6, 4, 8, 8], "texture": "#overlay"},
"west": {"uv": [4, 4, 6, 8], "texture": "#overlay"},
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#overlay"},
"down": {"uv": [4, 0, 6, 4], "texture": "#overlay"}
}
}
]
}
}
17 changes: 16 additions & 1 deletion builtin/mobheads/models/item/base/head_64_64.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"credit": "Made with Blockbench",
"parent": "mobheads:item/base/head_display",
"texture_size": [64, 64],
"textures": {
"overlay": "renderchest:item/empty"
},
"elements": [
{
"from": [4, 4, 4],
Expand All @@ -14,6 +17,18 @@
"up": {"uv": [2, 0, 4, 2], "rotation": 180, "texture": "#texture"},
"down": {"uv": [4, 0, 6, 2], "texture": "#texture"}
}
},
{
"from": [3.5, 3.5, 3.5],
"to": [12.5, 12.5, 12.5],
"faces": {
"north": {"uv": [2, 2, 4, 4], "texture": "#overlay"},
"east": {"uv": [0, 2, 2, 4], "texture": "#overlay"},
"south": {"uv": [6, 2, 8, 4], "texture": "#overlay"},
"west": {"uv": [4, 2, 6, 4], "texture": "#overlay"},
"up": {"uv": [2, 0, 4, 2], "texture": "#overlay"},
"down": {"uv": [4, 0, 6, 2], "texture": "#overlay"}
}
}
]
}
}
8 changes: 8 additions & 0 deletions builtin/mobheads/models/item/bogged.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"credit": "Made with Blockbench",
"parent": "mobheads:item/base/head_64_32",
"textures": {
"texture": "entity/skeleton/bogged",
"overlay": "entity/skeleton/bogged_overlay"
}
}
37 changes: 5 additions & 32 deletions builtin/mobheads/models/item/drowned.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,8 @@
{
"credit": "Made with Blockbench",
"parent": "mobheads:item/base/head_display",
"texture_size": [64, 64],
"parent": "mobheads:item/base/head_64_64",
"textures": {
"0": "minecraft:entity/zombie/drowned",
"1": "minecraft:entity/zombie/drowned_outer_layer"
},
"elements": [
{
"from": [4, 4, 4],
"to": [12, 12, 12],
"faces": {
"north": {"uv": [2, 2, 4, 4], "texture": "#0"},
"east": {"uv": [0, 2, 2, 4], "texture": "#0"},
"south": {"uv": [6, 2, 8, 4], "texture": "#0"},
"west": {"uv": [4, 2, 6, 4], "texture": "#0"},
"up": {"uv": [2, 0, 4, 2], "texture": "#0"},
"down": {"uv": [4, 0, 6, 2], "texture": "#0"}
}
},
{
"from": [3.5, 3.5, 3.5],
"to": [12.5, 12.5, 12.5],
"faces": {
"north": {"uv": [2, 2, 4, 4], "texture": "#1"},
"east": {"uv": [0, 2, 2, 4], "texture": "#1"},
"south": {"uv": [6, 2, 8, 4], "texture": "#1"},
"west": {"uv": [4, 2, 6, 4], "texture": "#1"},
"up": {"uv": [2, 0, 4, 2], "texture": "#1"},
"down": {"uv": [4, 0, 6, 2], "texture": "#1"}
}
}
]
}
"texture": "minecraft:entity/zombie/drowned",
"overlay": "minecraft:entity/zombie/drowned_outer_layer"
}
}
37 changes: 5 additions & 32 deletions builtin/mobheads/models/item/stray.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,8 @@
{
"credit": "Made with Blockbench",
"parent": "mobheads:item/base/head_display",
"texture_size": [64, 32],
"parent": "mobheads:item/base/head_64_32",
"textures": {
"0": "entity/skeleton/stray",
"1": "entity/skeleton/stray_overlay"
},
"elements": [
{
"from": [4, 4, 4],
"to": [12, 12, 12],
"faces": {
"north": {"uv": [2, 4, 4, 8], "texture": "#0"},
"east": {"uv": [0, 4, 2, 8], "texture": "#0"},
"south": {"uv": [6, 4, 8, 8], "texture": "#0"},
"west": {"uv": [4, 4, 6, 8], "texture": "#0"},
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#0"},
"down": {"uv": [4, 0, 6, 4], "texture": "#0"}
}
},
{
"from": [3.5, 3.5, 3.5],
"to": [12.5, 12.5, 12.5],
"faces": {
"north": {"uv": [2, 4, 4, 8], "texture": "#1"},
"east": {"uv": [0, 4, 2, 8], "texture": "#1"},
"south": {"uv": [6, 4, 8, 8], "texture": "#1"},
"west": {"uv": [4, 4, 6, 8], "texture": "#1"},
"up": {"uv": [2, 0, 4, 4], "rotation": 180, "texture": "#1"},
"down": {"uv": [4, 0, 6, 4], "texture": "#1"}
}
}
]
}
"texture": "entity/skeleton/stray",
"overlay": "entity/skeleton/stray_overlay"
}
}
3 changes: 0 additions & 3 deletions src/Resource/Texture/TextureList.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ public function getResolvable(string $name): TextureInterface
if (str_starts_with($name, "#")) {
$name = substr($name, 1);
}
if (isset($this->textures[$name])) {
return $this->textures[$name];
}
return new ResolvableTexture($this, $name);
}

Expand Down

0 comments on commit 802bc09

Please sign in to comment.