2017-01-31 12:05:32 +03:00
|
|
|
-- Heads system
|
2015-06-29 20:55:56 +03:00
|
|
|
|
2017-01-10 07:35:44 +03:00
|
|
|
local function addhead(node, desc)
|
2017-01-31 12:05:32 +03:00
|
|
|
minetest.register_node("mcl_heads:"..node, {
|
|
|
|
description = desc,
|
2017-01-10 07:35:44 +03:00
|
|
|
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 20:55:56 +03:00
|
|
|
},
|
2017-01-10 07:35:44 +03:00
|
|
|
},
|
2017-01-20 06:54:09 +03:00
|
|
|
groups = {oddly_breakable_by_hand=3, head=1, deco_block=1},
|
2017-01-10 07:35:44 +03: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",
|
2017-02-02 01:18:09 +03:00
|
|
|
stack_max = 64,
|
2017-01-10 07:35:44 +03:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
|
|
|
|
},
|
2017-02-11 20:46:23 +03:00
|
|
|
sounds = mcl_sounds.node_sound_defaults({
|
2017-01-10 07:35:44 +03:00
|
|
|
footstep = {name="default_hard_footstep", gain=0.3}
|
|
|
|
}),
|
2017-02-22 18:03:59 +03:00
|
|
|
_mcl_blast_resistance = 5,
|
2015-06-29 20:55:56 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-01-31 12:05:32 +03:00
|
|
|
-- Add heads
|
2015-06-29 20:55:56 +03:00
|
|
|
addhead("zombie", "Zombie Head")
|
|
|
|
addhead("creeper", "Creeper Head")
|
2017-01-10 07:39:55 +03:00
|
|
|
addhead("steve", "Head")
|
2017-01-10 07:35:44 +03:00
|
|
|
addhead("skeleton", "Skeleton Skull")
|
|
|
|
addhead("wither_skeleton", "Wither Skeleton Skull")
|