diff --git a/models.lua b/models.lua index a30855f..3238672 100644 --- a/models.lua +++ b/models.lua @@ -39,7 +39,7 @@ end -- register some blocks in stairsplus if available (part of moreblocks) scifi_nodes.register_slope("white2", "Plastic", {"scifi_nodes_white2.png",}, 0) scifi_nodes.register_slope("super_white", "Super Plastic", {"scifi_nodes_super_white.png",}, 11) -scifi_nodes.register_slope("ultra_white", "Super Plastic", {"scifi_nodes_ultra_white.png",}, default.LIGHT_MAX) +scifi_nodes.register_slope("ultra_white", "Super Plastic", {"scifi_nodes_ultra_white.png",}, minetest.LIGHT_MAX) scifi_nodes.register_slope("black", "Black", {"scifi_nodes_black.png",}, 0) scifi_nodes.register_slope("white", "White", {"scifi_nodes_white.png",}, 0) scifi_nodes.register_slope("grey", "Grey", {"scifi_nodes_grey.png",}, 0) @@ -54,8 +54,8 @@ scifi_nodes.register_slope("holes", "Holes", {"scifi_nodes_holes.png",}, 0) scifi_nodes.register_slope("pipe", "Pipe", {"scifi_nodes_pipe.png",}, 0) scifi_nodes.register_slope("stripes", "Stripes", {"scifi_nodes_stripes.png",}, 0) scifi_nodes.register_slope("screen", "Screen", {"scifi_nodes_screen3.png",}, 5) -scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.png",}, default.LIGHT_MAX) -scifi_nodes.register_slope("blight2", "Blue Light 2", {"scifi_nodes_capsule3.png",}, default.LIGHT_MAX) +scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.png",}, minetest.LIGHT_MAX) +scifi_nodes.register_slope("blight2", "Blue Light 2", {"scifi_nodes_capsule3.png",}, minetest.LIGHT_MAX) scifi_nodes.register_slope("wallpipe", "Alien Pipe", {"scifi_nodes_wallpipe.png",}, 0) scifi_nodes.register_slope("alien", "Alien Wall", {"scifi_nodes_alnslp.png",}, 0) scifi_nodes.register_slope("purple", "Purple", {"scifi_nodes_purple.png",}, 0) @@ -74,7 +74,7 @@ node.types = { {"holes", "metal with holes"}, {"white2", "plastic",}, {"super_white", "Super Plastic", 11}, - {"ultra_white", "Ultra Plastic", default.LIGHT_MAX}, + {"ultra_white", "Ultra Plastic", minetest.LIGHT_MAX}, -- {"engine", "engine", "engine"}, {"wall", "metal wall"}, {"white", "plastic wall"}, @@ -139,10 +139,10 @@ node.types = { -- {"monitorwall", "Wall monitors", "monitorwall"}, {"screen3", "Wall monitor"}, {"doomlight", "Doom light", 12}, - {"bluwllight", "Blue wall light", default.LIGHT_MAX}, + {"bluwllight", "Blue wall light", minetest.LIGHT_MAX}, {"bluegrid", "Blue Grid", 5}, {"fan", "Fan"}, - {"ppllght", "Purple wall light", default.LIGHT_MAX}, + {"ppllght", "Purple wall light", minetest.LIGHT_MAX}, {"pplwll", "Purple wall"}, {"pplwll2", "Purple wall2"}, {"pplwll3", "Purple wall3"}, diff --git a/nodeboxes.lua b/nodeboxes.lua index 6c9fef2..828ff16 100644 --- a/nodeboxes.lua +++ b/nodeboxes.lua @@ -304,7 +304,7 @@ minetest.register_node("scifi_nodes:gloshroom", { }, drawtype = "nodebox", paramtype = "light", - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, walkable = false, buildable_to = true, sunlight_propagates = false, @@ -451,7 +451,7 @@ minetest.register_node("scifi_nodes:lightbar", { paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, node_box = { type = "fixed", fixed = { @@ -488,7 +488,7 @@ minetest.register_node("scifi_nodes:light_dynamic", { } }, paramtype2 = "wallmounted", - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, groups = {cracky=1, oddly_breakable_by_hand=1}, sounds = default.node_sound_glass_defaults() }) @@ -536,7 +536,7 @@ minetest.register_node("scifi_nodes:lightbars", { drawtype = "nodebox", paramtype = "light", use_texture_alpha = "blend", - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, node_box = { type = "fixed", fixed = { @@ -557,7 +557,7 @@ tiles = {{ animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00}, }}, use_texture_alpha = "blend", - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, drawtype = "nodebox", sunlight_propagates = true, paramtype = "light", @@ -577,7 +577,7 @@ tiles = { "scifi_nodes_orange.png", }, use_texture_alpha = "blend", - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, drawtype = "nodebox", sunlight_propagates = true, paramtype = "light", @@ -1128,7 +1128,7 @@ minetest.register_node("scifi_nodes:glassscreen", { drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, sunlight_propagates = true, node_box = { type = "fixed", diff --git a/nodes.lua b/nodes.lua index 6643d6d..032c5d7 100644 --- a/nodes.lua +++ b/nodes.lua @@ -454,7 +454,7 @@ minetest.register_node("scifi_nodes:lightstp", { tiles = { "scifi_nodes_lightstripe.png" }, - light_source = default.LIGHT_MAX, + light_source = minetest.LIGHT_MAX, paramtype = "light", groups = {cracky=1}, sounds = default.node_sound_glass_defaults() @@ -522,7 +522,7 @@ local nodetypes = { {"holes", "metal with holes","holes"}, {"white2", "plastic", "white2", 0, true}, {"super_white", "Super Plastic", "super_white", 11}, - {"ultra_white", "Ultra Plastic", "ultra_white", default.LIGHT_MAX}, + {"ultra_white", "Ultra Plastic", "ultra_white", minetest.LIGHT_MAX}, {"engine", "engine", "engine"}, {"wall", "metal wall", "wall"}, {"white", "plastic wall", "white", 0, true}, @@ -587,10 +587,10 @@ local nodetypes = { {"monitorwall", "Wall monitors", "monitorwall"}, {"screen3", "Wall monitor", "screen3"}, {"doomlight", "Doom light", "doomlight", 12}, - {"bluwllight", "Blue wall light", "capsule3", default.LIGHT_MAX}, + {"bluwllight", "Blue wall light", "capsule3", minetest.LIGHT_MAX}, {"bluegrid", "Blue Grid", "bluegrid", 5}, {"fan", "Fan", "fan"}, - {"ppllght", "Purple wall light", "", default.LIGHT_MAX}, + {"ppllght", "Purple wall light", "", minetest.LIGHT_MAX}, {"pplwll", "Purple wall", "", 0}, {"pplwll2", "Purple wall2", "", 0}, {"pplwll3", "Purple wall3", "", 0}, diff --git a/plants.lua b/plants.lua index 1160a5e..3cc2c39 100644 --- a/plants.lua +++ b/plants.lua @@ -1,11 +1,11 @@ local plants = { - {"flower1", "Glow Flower", 1,0, default.LIGHT_MAX}, + {"flower1", "Glow Flower", 1,0, minetest.LIGHT_MAX}, {"flower2", "Pink Flower", 1.5,0, 10}, {"flower3", "Triffid", 2,5, 0}, {"flower4", "Weeping flower", 1.5,0, 0}, {"plant1", "Bulb Plant", 1,0, 0}, - {"plant2", "Trap Plant", 1.5,0, default.LIGHT_MAX}, + {"plant2", "Trap Plant", 1.5,0, minetest.LIGHT_MAX}, {"plant3", "Blue Jelly Plant", 1.2,0, 10}, {"plant4", "Green Jelly Plant", 1.2,0, 10}, {"plant5", "Fern Plant", 1.7,0, 0},