Organize mods into modpacks for better overview
This commit is contained in:
parent
f9db58bf50
commit
3696ee3761
1683 changed files with 0 additions and 0 deletions
43
mods/ITEMS/mcl_heads/init.lua
Normal file
43
mods/ITEMS/mcl_heads/init.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
-- Heads system
|
||||
|
||||
local function addhead(node, desc)
|
||||
minetest.register_node("mcl_heads:"..node, {
|
||||
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, },
|
||||
},
|
||||
},
|
||||
groups = {oddly_breakable_by_hand=3, head=1, deco_block=1},
|
||||
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 = 64,
|
||||
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 = mcl_sounds.node_sound_defaults({
|
||||
footstep = {name="default_hard_footstep", gain=0.3}
|
||||
}),
|
||||
})
|
||||
end
|
||||
|
||||
-- Add heads
|
||||
addhead("zombie", "Zombie Head")
|
||||
addhead("creeper", "Creeper Head")
|
||||
addhead("steve", "Head")
|
||||
addhead("skeleton", "Skeleton Skull")
|
||||
addhead("wither_skeleton", "Wither Skeleton Skull")
|
Loading…
Add table
Add a link
Reference in a new issue