Refactor head mod and add skeleton heads
|
@ -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")
|
||||||
|
|
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 871 B After Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 785 B After Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 835 B |
BIN
mods/head/textures/head_skeleton_back.png
Normal file
After Width: | Height: | Size: 748 B |
BIN
mods/head/textures/head_skeleton_face.png
Normal file
After Width: | Height: | Size: 763 B |
BIN
mods/head/textures/head_skeleton_left.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
mods/head/textures/head_skeleton_right.png
Normal file
After Width: | Height: | Size: 768 B |
BIN
mods/head/textures/head_skeleton_top.png
Normal file
After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 640 B After Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 978 B After Width: | Height: | Size: 978 B |
Before Width: | Height: | Size: 548 B After Width: | Height: | Size: 548 B |
BIN
mods/head/textures/head_wither_skeleton_back.png
Normal file
After Width: | Height: | Size: 679 B |
BIN
mods/head/textures/head_wither_skeleton_face.png
Normal file
After Width: | Height: | Size: 809 B |
BIN
mods/head/textures/head_wither_skeleton_left.png
Normal file
After Width: | Height: | Size: 751 B |
BIN
mods/head/textures/head_wither_skeleton_right.png
Normal file
After Width: | Height: | Size: 747 B |
BIN
mods/head/textures/head_wither_skeleton_top.png
Normal file
After Width: | Height: | Size: 683 B |
Before Width: | Height: | Size: 923 B After Width: | Height: | Size: 923 B |
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 958 B |
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 1,021 B After Width: | Height: | Size: 1,021 B |
Before Width: | Height: | Size: 930 B After Width: | Height: | Size: 930 B |