Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions morelights/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ function morelights.register_variants(variants, fixedDef)
local name = variant.name
local def = table.copy(fixedDef)

def.is_ground_content = def.is_ground_content == true

for k, v in pairs(variant) do
if k ~= "name" then
def[k] = v
Expand Down
5 changes: 5 additions & 0 deletions morelights_extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ minetest.register_node("morelights_extras:f_block", {
paramtype = "light",
light_source = minetest.LIGHT_MAX,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
})
Expand All @@ -27,6 +28,7 @@ do
handy = 1,
soil = 1,
},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
}
Expand Down Expand Up @@ -110,6 +112,7 @@ do
paramtype = "light",
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
})
Expand All @@ -129,6 +132,7 @@ do
paramtype = "light",
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
})
Expand Down Expand Up @@ -157,6 +161,7 @@ minetest.register_node("morelights_extras:stairlight", {
sunlight_propagates = true,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1,
attached_node = 1},
is_ground_content = false,
_mcl_hardness = 0.15,
node_placement_prediction = "",
sounds = morelights.sounds.glass,
Expand Down
6 changes: 6 additions & 0 deletions morelights_modern/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ minetest.register_node("morelights_modern:block", {
paramtype = "light",
light_source = minetest.LIGHT_MAX,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
})
Expand All @@ -29,6 +30,7 @@ minetest.register_node("morelights_modern:smallblock", {
sunlight_propagates = true,
light_source = 12,
groups = {cracky = 3, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,

Expand Down Expand Up @@ -132,6 +134,7 @@ minetest.register_node("morelights_modern:barlight_c", {
sunlight_propagates = true,
light_source = minetest.LIGHT_MAX,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1, not_blocking_trains = 1},
is_ground_content = false,
_mcl_hardness = 0.15,
sounds = morelights.sounds.glass
})
Expand All @@ -154,6 +157,7 @@ minetest.register_node("morelights_modern:barlight_s", {
sunlight_propagates = true,
light_source = minetest.LIGHT_MAX,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1, not_blocking_trains = 1},
is_ground_content = false,
_mcl_hardness = 0.15,
sounds = morelights.sounds.glass
})
Expand All @@ -174,6 +178,7 @@ minetest.register_node("morelights_modern:ceilinglight", {
sunlight_propagates = true,
light_source = minetest.LIGHT_MAX,
groups = {cracky = 3, oddly_breakable_by_hand = 3, handy = 1, not_blocking_trains = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,

Expand Down Expand Up @@ -232,6 +237,7 @@ minetest.register_node("morelights_modern:walllamp", {
sunlight_propagates = true,
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,

Expand Down
10 changes: 10 additions & 0 deletions morelights_vintage/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ minetest.register_node("morelights_vintage:chain_b", {
sunlight_propagates = true,
groups = {cracky = 3, oddly_breakable_by_hand = 3, handy = 1,
mounted_ceiling = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.metal,

Expand Down Expand Up @@ -71,6 +72,7 @@ minetest.register_node("morelights_vintage:chain_ceiling_b", {
sunlight_propagates = true,
groups = {cracky = 3, oddly_breakable_by_hand = 3, handy = 1,
mounted_ceiling = 1, mounted_ceiling = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.metal
})
Expand All @@ -81,6 +83,7 @@ minetest.register_node("morelights_vintage:block", {
paramtype = "light",
light_source = minetest.LIGHT_MAX,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
})
Expand All @@ -104,6 +107,7 @@ minetest.register_node("morelights_vintage:smallblock", {
sunlight_propagates = true,
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,

Expand Down Expand Up @@ -133,6 +137,7 @@ minetest.register_node("morelights_vintage:lantern_f", {
sunlight_propagates = true,
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,

Expand Down Expand Up @@ -177,6 +182,7 @@ minetest.register_node("morelights_vintage:lantern_c", {
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1,
not_in_creative_inventory = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,
drop = "morelights_vintage:lantern_f"
Expand Down Expand Up @@ -204,6 +210,7 @@ minetest.register_node("morelights_vintage:lantern_w", {
light_source = 12,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1,
not_in_creative_inventory = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass,
drop = "morelights_vintage:lantern_f"
Expand Down Expand Up @@ -232,6 +239,7 @@ minetest.register_node("morelights_vintage:hangingbulb", {
sunlight_propagates = true,
light_source = 10,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.15,
sounds = morelights.sounds.glass
})
Expand Down Expand Up @@ -266,6 +274,7 @@ minetest.register_node("morelights_vintage:oillamp", {
sunlight_propagates = true,
light_source = 8,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.2,
sounds = morelights.sounds.glass
})
Expand All @@ -291,6 +300,7 @@ minetest.register_node("morelights_vintage:chandelier", {
sunlight_propagates = true,
light_source = 10,
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
is_ground_content = false,
_mcl_hardness = 0.3,
sounds = morelights.sounds.glass
})
Expand Down