From 86849d9eec523faf7446095d9bee1f4374c67ba5 Mon Sep 17 00:00:00 2001 From: Paramat Date: Thu, 9 Feb 2017 00:01:30 +0000 Subject: [PATCH] Default: Add nodebox mese post light usable as a growlamp (#1480) Light level 14 to be able to grow plants. 3 returned from crafting with 1 glass node, 3 mese crystals and 1 wood plank. Seamlessly placable on appletree wood fence posts. --- mods/default/README.txt | 3 +++ mods/default/crafting.lua | 9 +++++++ mods/default/nodes.lua | 22 ++++++++++++++++++ .../textures/default_mese_post_light_side.png | Bin 0 -> 353 bytes .../default_mese_post_light_side_dark.png | Bin 0 -> 353 bytes .../textures/default_mese_post_light_top.png | Bin 0 -> 155 bytes 6 files changed, 34 insertions(+) create mode 100644 mods/default/textures/default_mese_post_light_side.png create mode 100644 mods/default/textures/default_mese_post_light_side_dark.png create mode 100644 mods/default/textures/default_mese_post_light_top.png diff --git a/mods/default/README.txt b/mods/default/README.txt index d261b6b5..57f4d4b2 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -115,6 +115,9 @@ paramat (CC BY-SA 3.0): default_grass_side.png default_mese_block.png default_silver_sand.png + default_mese_post_light_side.png + default_mese_post_light_side_dark.png + default_mese_post_light_top.png brunob.santos (CC BY-SA 4.0): default_desert_cobble.png diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index f82b0718..ce27bb42 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -639,6 +639,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "default:mese_post_light 3", + recipe = { + {"", "default:glass", ""}, + {"default:mese_crystal", "default:mese_crystal", "default:mese_crystal"}, + {"", "group:wood", ""}, + } +}) + minetest.register_craft({ output = 'default:obsidian_shard 9', recipe = { diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 572c604f..b5e8caa8 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -182,6 +182,7 @@ default:obsidian_glass default:brick default:meselamp +default:mese_post_light Misc ---- @@ -2078,6 +2079,27 @@ minetest.register_node("default:meselamp", { light_source = default.LIGHT_MAX, }) +minetest.register_node("default:mese_post_light", { + description = "Mese Post Light", + tiles = {"default_mese_post_light_top.png", "default_mese_post_light_top.png", + "default_mese_post_light_side_dark.png", "default_mese_post_light_side_dark.png", + "default_mese_post_light_side.png", "default_mese_post_light_side.png"}, + wield_image = "default_mese_post_light_side.png", + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-2 / 16, -8 / 16, -2 / 16, 2 / 16, 8 / 16, 2 / 16}, + }, + }, + paramtype = "light", + light_source = default.LIGHT_MAX, + sunlight_propagates = true, + is_ground_content = false, + groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2}, + sounds = default.node_sound_wood_defaults(), +}) + -- -- Misc -- diff --git a/mods/default/textures/default_mese_post_light_side.png b/mods/default/textures/default_mese_post_light_side.png new file mode 100644 index 0000000000000000000000000000000000000000..c23b551a7cc0c6771679dbcfc0ff94f493ae859a GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}OMp*^E0FfGl=rhyEDX~wk29NC z=s2~+sjI7N;>3w_=FC~Sa^_HHI~YrX{DK)Ap4~_Tagw~Fdh=kWrprL`GEgz)he~n5THA`|WcZD8bP0l+XkK4xXID literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_mese_post_light_side_dark.png b/mods/default/textures/default_mese_post_light_side_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..c4fc7ceac3c46b6186e313504f2ff17f3c40e62f GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}OMp*^E0DI(max{940TkDa@Wia zH7p1>>gwv6IC0{fIdfL7T)An}rb}09FJEc6e6{h))#gXf(jPu8d;Bcp@zbJ5PfH&^ z%YXd5@X7Q1hmRLMd0zbZdG*uhHBX;6K6z31_{qj+FWR5I=y~#D#?u$mp1z5*Qd|BKYiZ!@$<1yUk--OJW&I52V+T)UoeBivm0q3PLj8~3quF1tOt<8 zS>O>_%)r1c48n{Iv*t(u1=&kHeO=ifGRpHyvCKGC$_Nw+^K@|xk+|G@!d=M0L4@^y zr2OF%me0@peZTzFsm+&8r@e7J(z%!OvVg$tx)_04Yh8iE73Ty}gUbaxXN3yX%@7xG ulvyjV?QxaBrA;a&XcU;w@Z`l6i*$+GZN;;&{oxklM|d%x!jI3s4b*r>mdKI;Vst0QkEkJpcdz literal 0 HcmV?d00001 -- 2.25.1