1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 16:30:21 +01:00

add wooden lattice lamps

This commit is contained in:
Vanessa Ezekowitz 2014-07-27 15:15:47 -04:00
parent 8ecba4e7fc
commit 5f1d48c40d
5 changed files with 57 additions and 2 deletions

View File

@ -1193,7 +1193,7 @@ minetest.register_craft({
} }
}) })
-- Lighting ------- Lighting
-- candles -- candles
@ -1214,7 +1214,25 @@ minetest.register_craft({
} }
}) })
-- yellow -- wood-lattice lamps
minetest.register_craft( {
output = "homedecor:lattice_lantern_large 2",
recipe = {
{ "dye:black", "dye:yellow", "dye:black" },
{ "group:stick", "building_blocks:woodglass", "group:stick" },
{ "group:stick", "homedecor:power_crystal", "group:stick" }
},
})
minetest.register_craft( {
output = "homedecor:lattice_lantern_small 8",
recipe = {
{ "homedecor:lattice_lantern_large" },
},
})
-- yellow glowlights
minetest.register_craft({ minetest.register_craft({
output = "homedecor:glowlight_half_yellow 6", output = "homedecor:glowlight_half_yellow 6",

View File

@ -319,3 +319,40 @@ minetest.register_node('homedecor:oil_lamp', {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
}) })
minetest.register_node('homedecor:lattice_lantern_large', {
description = S("Lattice lantern (large)"),
tiles = { 'homedecor_lattice_lantern_large.png' },
sunlight_propagates = false,
paramtype = "light",
walkable = true,
groups = { snappy = 3 },
light_source = LIGHT_MAX,
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node('homedecor:lattice_lantern_small', {
description = S("Lattice lantern (small)"),
drawtype = "nodebox",
tiles = {
'homedecor_lattice_lantern_small_tb.png',
'homedecor_lattice_lantern_small_tb.png',
'homedecor_lattice_lantern_small_sides.png'
},
selection_box = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
},
node_box = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
},
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
groups = { snappy = 3 },
light_source = LIGHT_MAX-1,
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 B