diff --git a/mods/head/init.lua b/mods/head/init.lua index 97f5df596d..a6fac692dc 100644 --- a/mods/head/init.lua +++ b/mods/head/init.lua @@ -1,35 +1,37 @@ -- head system -function addhead(node, desc) +local function addhead(node, desc) minetest.register_node("head:"..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, }, - }, + 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 = {snappy=1,choppy=2,oddly_breakable_by_hand=2,head=1}, - tiles = { - node.."_top.png", - node.."_top.png", - node.."_left.png", - node.."_right.png", - node.."_back.png", - 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, }, - }, - + }, + groups = {oddly_breakable_by_hand=3, head=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 = 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} + }), }) 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") diff --git a/mods/head/textures/creeper_back.png b/mods/head/textures/head_creeper_back.png similarity index 100% rename from mods/head/textures/creeper_back.png rename to mods/head/textures/head_creeper_back.png diff --git a/mods/head/textures/creeper_face.png b/mods/head/textures/head_creeper_face.png similarity index 100% rename from mods/head/textures/creeper_face.png rename to mods/head/textures/head_creeper_face.png diff --git a/mods/head/textures/creeper_left.png b/mods/head/textures/head_creeper_left.png similarity index 100% rename from mods/head/textures/creeper_left.png rename to mods/head/textures/head_creeper_left.png diff --git a/mods/head/textures/creeper_right.png b/mods/head/textures/head_creeper_right.png similarity index 100% rename from mods/head/textures/creeper_right.png rename to mods/head/textures/head_creeper_right.png diff --git a/mods/head/textures/creeper_top.png b/mods/head/textures/head_creeper_top.png similarity index 100% rename from mods/head/textures/creeper_top.png rename to mods/head/textures/head_creeper_top.png diff --git a/mods/head/textures/head_skeleton_back.png b/mods/head/textures/head_skeleton_back.png new file mode 100644 index 0000000000..8c259048ca Binary files /dev/null and b/mods/head/textures/head_skeleton_back.png differ diff --git a/mods/head/textures/head_skeleton_face.png b/mods/head/textures/head_skeleton_face.png new file mode 100644 index 0000000000..95f903c0a0 Binary files /dev/null and b/mods/head/textures/head_skeleton_face.png differ diff --git a/mods/head/textures/head_skeleton_left.png b/mods/head/textures/head_skeleton_left.png new file mode 100644 index 0000000000..d7806d6fdd Binary files /dev/null and b/mods/head/textures/head_skeleton_left.png differ diff --git a/mods/head/textures/head_skeleton_right.png b/mods/head/textures/head_skeleton_right.png new file mode 100644 index 0000000000..4776e7b31d Binary files /dev/null and b/mods/head/textures/head_skeleton_right.png differ diff --git a/mods/head/textures/head_skeleton_top.png b/mods/head/textures/head_skeleton_top.png new file mode 100644 index 0000000000..d0fd22fe18 Binary files /dev/null and b/mods/head/textures/head_skeleton_top.png differ diff --git a/mods/head/textures/steve_back.png b/mods/head/textures/head_steve_back.png similarity index 100% rename from mods/head/textures/steve_back.png rename to mods/head/textures/head_steve_back.png diff --git a/mods/head/textures/steve_face.png b/mods/head/textures/head_steve_face.png similarity index 100% rename from mods/head/textures/steve_face.png rename to mods/head/textures/head_steve_face.png diff --git a/mods/head/textures/steve_left.png b/mods/head/textures/head_steve_left.png similarity index 100% rename from mods/head/textures/steve_left.png rename to mods/head/textures/head_steve_left.png diff --git a/mods/head/textures/steve_right.png b/mods/head/textures/head_steve_right.png similarity index 100% rename from mods/head/textures/steve_right.png rename to mods/head/textures/head_steve_right.png diff --git a/mods/head/textures/steve_top.png b/mods/head/textures/head_steve_top.png similarity index 100% rename from mods/head/textures/steve_top.png rename to mods/head/textures/head_steve_top.png diff --git a/mods/head/textures/head_wither_skeleton_back.png b/mods/head/textures/head_wither_skeleton_back.png new file mode 100644 index 0000000000..2c7e6aa57f Binary files /dev/null and b/mods/head/textures/head_wither_skeleton_back.png differ diff --git a/mods/head/textures/head_wither_skeleton_face.png b/mods/head/textures/head_wither_skeleton_face.png new file mode 100644 index 0000000000..f68a479be0 Binary files /dev/null and b/mods/head/textures/head_wither_skeleton_face.png differ diff --git a/mods/head/textures/head_wither_skeleton_left.png b/mods/head/textures/head_wither_skeleton_left.png new file mode 100644 index 0000000000..6ec9423c4b Binary files /dev/null and b/mods/head/textures/head_wither_skeleton_left.png differ diff --git a/mods/head/textures/head_wither_skeleton_right.png b/mods/head/textures/head_wither_skeleton_right.png new file mode 100644 index 0000000000..e2def3d490 Binary files /dev/null and b/mods/head/textures/head_wither_skeleton_right.png differ diff --git a/mods/head/textures/head_wither_skeleton_top.png b/mods/head/textures/head_wither_skeleton_top.png new file mode 100644 index 0000000000..5690f02644 Binary files /dev/null and b/mods/head/textures/head_wither_skeleton_top.png differ diff --git a/mods/head/textures/zombie_back.png b/mods/head/textures/head_zombie_back.png similarity index 100% rename from mods/head/textures/zombie_back.png rename to mods/head/textures/head_zombie_back.png diff --git a/mods/head/textures/zombie_face.png b/mods/head/textures/head_zombie_face.png similarity index 100% rename from mods/head/textures/zombie_face.png rename to mods/head/textures/head_zombie_face.png diff --git a/mods/head/textures/zombie_left.png b/mods/head/textures/head_zombie_left.png similarity index 100% rename from mods/head/textures/zombie_left.png rename to mods/head/textures/head_zombie_left.png diff --git a/mods/head/textures/zombie_right.png b/mods/head/textures/head_zombie_right.png similarity index 100% rename from mods/head/textures/zombie_right.png rename to mods/head/textures/head_zombie_right.png diff --git a/mods/head/textures/zombie_top.png b/mods/head/textures/head_zombie_top.png similarity index 100% rename from mods/head/textures/zombie_top.png rename to mods/head/textures/head_zombie_top.png