Skip to content

Commit

Permalink
Default: Add nodebox mese post light usable as a growlamp (#1480)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paramat authored and sofar committed Feb 9, 2017
1 parent c88c0a9 commit 86849d9
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mods/default/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions mods/default/crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
22 changes: 22 additions & 0 deletions mods/default/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ default:obsidian_glass
default:brick
default:meselamp
default:mese_post_light
Misc
----
Expand Down Expand Up @@ -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
--
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86849d9

Please sign in to comment.