mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +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:
parent
c5bab03146
commit
842a571b60
32
crafts.lua
32
crafts.lua
@ -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
|
-- white
|
||||||
|
|
||||||
minetest.register_craft({
|
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
|
-- Fences and gates
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
|
56
lighting.lua
56
lighting.lua
@ -87,6 +87,34 @@ minetest.register_node('homedecor:glowlight_small_cube_yellow', {
|
|||||||
sounds = default.node_sound_leaves_defaults(),
|
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
|
-- White
|
||||||
|
|
||||||
minetest.register_node('homedecor:glowlight_thick_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,
|
light_source = LIGHT_MAX-1,
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
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(),
|
||||||
|
})
|
||||||
|
BIN
textures/homedecor_glowlight_cube_white_sides_ceiling.png
Normal file
BIN
textures/homedecor_glowlight_cube_white_sides_ceiling.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 240 B |
BIN
textures/homedecor_glowlight_cube_yellow_sides_ceiling.png
Normal file
BIN
textures/homedecor_glowlight_cube_yellow_sides_ceiling.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 251 B |
Loading…
Reference in New Issue
Block a user