From a647a1ed04c230989f8b8ac1593e99085de7d730 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sat, 11 Mar 2017 15:50:20 -0700 Subject: [PATCH] add plump helmets --- plants.lua | 110 ++++++++++++++++++++++- textures/dfcaverns_plump_helmet_cap.png | Bin 0 -> 378 bytes textures/dfcaverns_plump_helmet_stem.png | Bin 0 -> 372 bytes 3 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 textures/dfcaverns_plump_helmet_cap.png create mode 100644 textures/dfcaverns_plump_helmet_stem.png diff --git a/plants.lua b/plants.lua index d30ace7..84291c6 100644 --- a/plants.lua +++ b/plants.lua @@ -14,7 +14,7 @@ minetest.register_node("dfcaverns:dead_fungus", { paramtype = "light", walkable = false, buildable_to = true, - groups = {flammable=4, oddly_diggable_by_hand=1}, + groups = {flammable=4, oddly_breakable_by_hand=1}, sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", @@ -55,6 +55,114 @@ farming.register_plant("dfcaverns:cave_wheat", { -- Purple, rounded tops + +local displace_x = 0.125 +local displace_z = 0.125 + +minetest.register_node("dfcaverns:plump_helmet_spawn", { + description = S("Plump Helmet Spawn"), + tiles = { + "dfcaverns_plump_helmet_cap.png", + }, + groups = {flammable=4, oddly_breakable_by_hand=1}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, -0.375, 0.0625 + displace_z}, + } + } +}) + + +minetest.register_node("dfcaverns:plump_helmet_1", { + description = S("Plump Helmet 1"), + tiles = { + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png^[lowpart:5:dfcaverns_plump_helmet_stem.png", + }, + groups = {flammable=4, oddly_breakable_by_hand=1}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, -0.25, 0.0625 + displace_z}, -- stalk + {-0.125 + displace_x, -0.4375, -0.1875 + displace_z, 0.1875 + displace_x, -0.3125, 0.125 + displace_z}, -- cap + } + } +}) + + +minetest.register_node("dfcaverns:plump_helmet_2", { + description = S("Plump Helmet 2"), + tiles = { + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png^[lowpart:15:dfcaverns_plump_helmet_stem.png", + }, + groups = {flammable=4, oddly_breakable_by_hand=1}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, 0, 0.0625 + displace_z}, -- stalk + {-0.125 + displace_x, -0.3125, -0.1875 + displace_z, 0.1875 + displace_x, -0.0625, 0.125 + displace_z}, -- cap + } + } +}) + +minetest.register_node("dfcaverns:plump_helmet_3", { + description = S("Plump Helmet 3"), + tiles = { + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png^[lowpart:35:dfcaverns_plump_helmet_stem.png", + }, + groups = {flammable=4, oddly_breakable_by_hand=1}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.125 + displace_x, -0.5, -0.1875 + displace_z, 0.1875 + displace_x, 0.25, 0.125 + displace_z}, -- stalk + {-0.1875 + displace_x, -0.125, -0.25 + displace_z, 0.25 + displace_x, 0.1875, 0.1875 + displace_z}, -- cap + } + } +}) + +minetest.register_node("dfcaverns:plump_helmet_4", { + description = S("Plump Helmet 4"), + tiles = { + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png", + "dfcaverns_plump_helmet_cap.png^[lowpart:40:dfcaverns_plump_helmet_stem.png", + }, + groups = {flammable=4, oddly_breakable_by_hand=1}, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.125 + displace_x, -0.5, -0.1875 + displace_z, 0.1875 + displace_x, 0.375, 0.125 + displace_z}, -- stalk + {-0.25 + displace_x, -0.0625, -0.3125 + displace_z, 0.3125 + displace_x, 0.25, 0.25 + displace_z}, -- cap + {-0.1875 + displace_x, 0.25, -0.25 + displace_z, 0.25 + displace_x, 0.3125, 0.1875 + displace_z}, -- cap rounding + } + } +}) + + + + + -------------------------------------------------- -- Quarry Bush diff --git a/textures/dfcaverns_plump_helmet_cap.png b/textures/dfcaverns_plump_helmet_cap.png new file mode 100644 index 0000000000000000000000000000000000000000..7bcb550191e61c6a0371baee9c044625e35d63c9 GIT binary patch literal 378 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#Av3p_HqSGLkJo@gvY8S|xv6<2KrRD=b5UwyNotBhd1gt5g1e`0K#E=} zJ5c0!*+u(OZcJWor;z9Lo%N%{_I>Ye RwY~%eil?ie%Q~loCIIXBn7IG| literal 0 HcmV?d00001 diff --git a/textures/dfcaverns_plump_helmet_stem.png b/textures/dfcaverns_plump_helmet_stem.png new file mode 100644 index 0000000000000000000000000000000000000000..a563e638bf0124b22ff01edbddedcbac68b68cd4 GIT binary patch literal 372 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#Av3p_ws|`Ki;O^-gkfN8$ z4itao>EaloalUk-civ$G9v69gKQTwWTd$uP#6>9WmI&d!b;2MaQmK8h`L|zHsxK=7 z8y>T_KW>{lXL4ns=u-=ZCn-$6;-W_m8cH|_xSHlh2(*cYhP*m_ezO~6o9Ws#hu@kr zL#ql|6`4I>d7RDiK6~lHvaeFlcBph2z1i-#bW+I5I^M|}TCUZxEtI<($6mCjMSb&2 zg;{=w^X?q+yVn)eTA(lI$>(NQId4w=ma9MceAVP_iVW;NO?&mfrpU