Default: Add nodebox mese post light usable as a growlamp (#1480)
authorParamat <paramat@users.noreply.github.com>
Thu, 9 Feb 2017 00:01:30 +0000 (00:01 +0000)
committerAuke Kok <sofar+github@foo-projects.org>
Thu, 9 Feb 2017 00:01:30 +0000 (16:01 -0800)
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
mods/default/crafting.lua
mods/default/nodes.lua
mods/default/textures/default_mese_post_light_side.png [new file with mode: 0644]
mods/default/textures/default_mese_post_light_side_dark.png [new file with mode: 0644]
mods/default/textures/default_mese_post_light_top.png [new file with mode: 0644]

index d261b6b5d16888c42525fa93dca9f6c331d8801c..57f4d4b2b766334995e45d7a29ef9ad3a250e5a8 100644 (file)
@@ -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
index f82b0718d534653478a80d0b58459d8be29a03ed..ce27bb4202d510c2bfade7bb7cd5b4943d61c103 100644 (file)
@@ -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 = {
index 572c604f8c5fc19b1fd96656257bb862ba645375..b5e8caa845aa8c95d0e551c224989183d3fddb7a 100644 (file)
@@ -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 (file)
index 0000000..c23b551
Binary files /dev/null and b/mods/default/textures/default_mese_post_light_side.png differ
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 (file)
index 0000000..c4fc7ce
Binary files /dev/null and b/mods/default/textures/default_mese_post_light_side_dark.png differ
diff --git a/mods/default/textures/default_mese_post_light_top.png b/mods/default/textures/default_mese_post_light_top.png
new file mode 100644 (file)
index 0000000..6834bd3
Binary files /dev/null and b/mods/default/textures/default_mese_post_light_top.png differ