diff --git a/morelights/init.lua b/morelights/init.lua index 7941d47..faa7296 100644 --- a/morelights/init.lua +++ b/morelights/init.lua @@ -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 diff --git a/morelights_extras/init.lua b/morelights_extras/init.lua index 741d1a2..b596844 100644 --- a/morelights_extras/init.lua +++ b/morelights_extras/init.lua @@ -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 }) @@ -27,6 +28,7 @@ do handy = 1, soil = 1, }, + is_ground_content = false, _mcl_hardness = 0.3, sounds = morelights.sounds.glass } @@ -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 }) @@ -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 }) @@ -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, diff --git a/morelights_modern/init.lua b/morelights_modern/init.lua index 02d67be..e23a9b0 100644 --- a/morelights_modern/init.lua +++ b/morelights_modern/init.lua @@ -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 }) @@ -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, @@ -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 }) @@ -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 }) @@ -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, @@ -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, diff --git a/morelights_vintage/init.lua b/morelights_vintage/init.lua index 545637f..bb2d288 100644 --- a/morelights_vintage/init.lua +++ b/morelights_vintage/init.lua @@ -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, @@ -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 }) @@ -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 }) @@ -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, @@ -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, @@ -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" @@ -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" @@ -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 }) @@ -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 }) @@ -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 })