2015-06-29 19:55:56 +02:00
|
|
|
-- head system
|
|
|
|
|
2017-01-10 05:35:44 +01:00
|
|
|
local function addhead(node, desc)
|
2015-06-29 19:55:56 +02:00
|
|
|
minetest.register_node("head:"..node, {
|
2017-01-10 05:35:44 +01:00
|
|
|
description = ""..desc,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
is_ground_content = false,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{ -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
|
2015-06-29 19:55:56 +02:00
|
|
|
},
|
2017-01-10 05:35:44 +01:00
|
|
|
},
|
2017-01-20 04:54:09 +01:00
|
|
|
groups = {oddly_breakable_by_hand=3, head=1, deco_block=1},
|
2017-01-10 05:35:44 +01:00
|
|
|
tiles = {
|
|
|
|
"head_"..node.."_top.png",
|
|
|
|
"head_"..node.."_top.png",
|
|
|
|
"head_"..node.."_left.png",
|
|
|
|
"head_"..node.."_right.png",
|
|
|
|
"head_"..node.."_back.png",
|
|
|
|
"head_"..node.."_face.png",
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
stack_max = 16,
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = true,
|
|
|
|
selection_box = {
|
|
|
|
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}
|
|
|
|
}),
|
2015-06-29 19:55:56 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
--head add
|
|
|
|
addhead("zombie", "Zombie Head")
|
|
|
|
addhead("creeper", "Creeper Head")
|
2017-01-10 05:39:55 +01:00
|
|
|
addhead("steve", "Head")
|
2017-01-10 05:35:44 +01:00
|
|
|
addhead("skeleton", "Skeleton Skull")
|
|
|
|
addhead("wither_skeleton", "Wither Skeleton Skull")
|