1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

Added ceiling-mounted glow cube. The regular and ceiling ones can be exchanged

by placing either into the crafting glid.  Works for both colors.
This commit is contained in:
Vanessa Ezekowitz 2012-10-01 21:06:10 -04:00
parent c5bab03146
commit 842a571b60
4 changed files with 88 additions and 0 deletions

View File

@ -1109,6 +1109,22 @@ minetest.register_craft({
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:glowlight_small_cube_yellow_ceiling",
recipe = {
"homedecor:glowlight_small_cube_yellow",
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:glowlight_small_cube_yellow",
recipe = {
"homedecor:glowlight_small_cube_yellow_ceiling",
}
})
-- white
minetest.register_craft({
@ -1144,6 +1160,22 @@ minetest.register_craft({
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:glowlight_small_cube_white_ceiling",
recipe = {
"homedecor:glowlight_small_cube_white",
}
})
minetest.register_craft({
type = "shapeless",
output = "homedecor:glowlight_small_cube_white",
recipe = {
"homedecor:glowlight_small_cube_white_ceiling",
}
})
-- Fences and gates
minetest.register_craft( {

View File

@ -87,6 +87,34 @@ minetest.register_node('homedecor:glowlight_small_cube_yellow', {
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node('homedecor:glowlight_small_cube_yellow_ceiling', {
description = "Yellow Glowlight (small cube, on ceiling)",
drawtype = "nodebox",
tiles = {
'homedecor_glowlight_cube_yellow_tb.png',
'homedecor_glowlight_cube_yellow_tb.png',
'homedecor_glowlight_cube_yellow_sides_ceiling.png',
'homedecor_glowlight_cube_yellow_sides_ceiling.png',
'homedecor_glowlight_cube_yellow_sides_ceiling.png',
'homedecor_glowlight_cube_yellow_sides_ceiling.png'
},
selection_box = {
type = "fixed",
fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
},
node_box = {
type = "fixed",
fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
},
sunlight_propagates = false,
paramtype = "light",
walkable = true,
groups = { snappy = 3 },
light_source = LIGHT_MAX-1,
sounds = default.node_sound_leaves_defaults(),
})
-- White
minetest.register_node('homedecor:glowlight_thick_white', {
@ -172,3 +200,31 @@ minetest.register_node('homedecor:glowlight_small_cube_white', {
light_source = LIGHT_MAX-1,
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node('homedecor:glowlight_small_cube_white_ceiling', {
description = "White Glowlight (small cube, on ceiling)",
drawtype = "nodebox",
tiles = {
'homedecor_glowlight_cube_white_tb.png',
'homedecor_glowlight_cube_white_tb.png',
'homedecor_glowlight_cube_white_sides_ceiling.png',
'homedecor_glowlight_cube_white_sides_ceiling.png',
'homedecor_glowlight_cube_white_sides_ceiling.png',
'homedecor_glowlight_cube_white_sides_ceiling.png'
},
selection_box = {
type = "fixed",
fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
},
node_box = {
type = "fixed",
fixed = { -0.25, 0, -0.25, 0.25, 0.5, 0.25 }
},
sunlight_propagates = false,
paramtype = "light",
walkable = true,
groups = { snappy = 3 },
light_source = LIGHT_MAX-1,
sounds = default.node_sound_leaves_defaults(),
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B