0
0
Fork 0

Refactor head mod and add skeleton heads

This commit is contained in:
Wuzzy 2017-01-10 05:35:44 +01:00
parent 2b2c29d77b
commit 0dd42ebda3
26 changed files with 32 additions and 28 deletions

View File

@ -1,35 +1,37 @@
-- head system -- head system
function addhead(node, desc) local function addhead(node, desc)
minetest.register_node("head:"..node, { minetest.register_node("head:"..node, {
description = ""..desc, description = ""..desc,
drawtype = "nodebox", drawtype = "nodebox",
is_ground_content = false, is_ground_content = false,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{ -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, }, { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
},
}, },
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,head=1}, },
tiles = { groups = {oddly_breakable_by_hand=3, head=1},
node.."_top.png", tiles = {
node.."_top.png", "head_"..node.."_top.png",
node.."_left.png", "head_"..node.."_top.png",
node.."_right.png", "head_"..node.."_left.png",
node.."_back.png", "head_"..node.."_right.png",
node.."_face.png", "head_"..node.."_back.png",
}, "head_"..node.."_face.png",
paramtype = "light", },
stack_max = 16, paramtype = "light",
paramtype2 = "facedir", stack_max = 16,
sunlight_propagates = true, paramtype2 = "facedir",
walkable = true, sunlight_propagates = true,
selection_box = { walkable = true,
type = "fixed", selection_box = {
fixed = { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, }, type = "fixed",
}, fixed = { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
},
sounds = default.node_sound_defaults({
footstep = {name="default_hard_footstep", gain=0.3}
}),
}) })
end end
@ -37,3 +39,5 @@ end
addhead("zombie", "Zombie Head") addhead("zombie", "Zombie Head")
addhead("creeper", "Creeper Head") addhead("creeper", "Creeper Head")
addhead("steve", "Steve Head") addhead("steve", "Steve Head")
addhead("skeleton", "Skeleton Skull")
addhead("wither_skeleton", "Wither Skeleton Skull")

View File

Before

Width:  |  Height:  |  Size: 830 B

After

Width:  |  Height:  |  Size: 830 B

View File

Before

Width:  |  Height:  |  Size: 871 B

After

Width:  |  Height:  |  Size: 871 B

View File

Before

Width:  |  Height:  |  Size: 785 B

After

Width:  |  Height:  |  Size: 785 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 835 B

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

View File

Before

Width:  |  Height:  |  Size: 640 B

After

Width:  |  Height:  |  Size: 640 B

View File

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

View File

Before

Width:  |  Height:  |  Size: 987 B

After

Width:  |  Height:  |  Size: 987 B

View File

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 978 B

View File

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

View File

Before

Width:  |  Height:  |  Size: 923 B

After

Width:  |  Height:  |  Size: 923 B

View File

Before

Width:  |  Height:  |  Size: 958 B

After

Width:  |  Height:  |  Size: 958 B

View File

Before

Width:  |  Height:  |  Size: 987 B

After

Width:  |  Height:  |  Size: 987 B

View File

Before

Width:  |  Height:  |  Size: 1021 B

After

Width:  |  Height:  |  Size: 1021 B

View File

Before

Width:  |  Height:  |  Size: 930 B

After

Width:  |  Height:  |  Size: 930 B