Refactor head mod and add skeleton heads
|
@ -1,6 +1,6 @@
|
|||
-- head system
|
||||
|
||||
function addhead(node, desc)
|
||||
local function addhead(node, desc)
|
||||
minetest.register_node("head:"..node, {
|
||||
description = ""..desc,
|
||||
drawtype = "nodebox",
|
||||
|
@ -11,14 +11,14 @@ function addhead(node, desc)
|
|||
{ -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 = {
|
||||
node.."_top.png",
|
||||
node.."_top.png",
|
||||
node.."_left.png",
|
||||
node.."_right.png",
|
||||
node.."_back.png",
|
||||
node.."_face.png",
|
||||
"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,
|
||||
|
@ -29,7 +29,9 @@ function addhead(node, desc)
|
|||
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
|
||||
|
||||
|
@ -37,3 +39,5 @@ end
|
|||
addhead("zombie", "Zombie Head")
|
||||
addhead("creeper", "Creeper 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 |
After Width: | Height: | Size: 748 B |
After Width: | Height: | Size: 763 B |
After Width: | Height: | Size: 745 B |
After Width: | Height: | Size: 768 B |
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 |
After Width: | Height: | Size: 679 B |
After Width: | Height: | Size: 809 B |
After Width: | Height: | Size: 751 B |
After Width: | Height: | Size: 747 B |
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: 1021 B After Width: | Height: | Size: 1021 B |
Before Width: | Height: | Size: 930 B After Width: | Height: | Size: 930 B |