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,6 +1,6 @@
-- 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",
@ -11,14 +11,14 @@ function addhead(node, desc)
{ -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}, groups = {oddly_breakable_by_hand=3, head=1},
tiles = { tiles = {
node.."_top.png", "head_"..node.."_top.png",
node.."_top.png", "head_"..node.."_top.png",
node.."_left.png", "head_"..node.."_left.png",
node.."_right.png", "head_"..node.."_right.png",
node.."_back.png", "head_"..node.."_back.png",
node.."_face.png", "head_"..node.."_face.png",
}, },
paramtype = "light", paramtype = "light",
stack_max = 16, stack_max = 16,
@ -29,7 +29,9 @@ function addhead(node, desc)
type = "fixed", type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, }, 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