mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-02 23:00:22 +02: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:
56
lighting.lua
56
lighting.lua
@ -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(),
|
||||
})
|
||||
|
Reference in New Issue
Block a user