mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-23 00:20:17 +01:00
replace default.LIGHT_MAX with minetest.LIGHT_MAX
This commit is contained in:
parent
112543ca93
commit
06aa9e0cf1
12
models.lua
12
models.lua
@ -39,7 +39,7 @@ end
|
|||||||
-- register some blocks in stairsplus if available (part of moreblocks)
|
-- 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("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("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("black", "Black", {"scifi_nodes_black.png",}, 0)
|
||||||
scifi_nodes.register_slope("white", "White", {"scifi_nodes_white.png",}, 0)
|
scifi_nodes.register_slope("white", "White", {"scifi_nodes_white.png",}, 0)
|
||||||
scifi_nodes.register_slope("grey", "Grey", {"scifi_nodes_grey.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("pipe", "Pipe", {"scifi_nodes_pipe.png",}, 0)
|
||||||
scifi_nodes.register_slope("stripes", "Stripes", {"scifi_nodes_stripes.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("screen", "Screen", {"scifi_nodes_screen3.png",}, 5)
|
||||||
scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.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",}, default.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("wallpipe", "Alien Pipe", {"scifi_nodes_wallpipe.png",}, 0)
|
||||||
scifi_nodes.register_slope("alien", "Alien Wall", {"scifi_nodes_alnslp.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)
|
scifi_nodes.register_slope("purple", "Purple", {"scifi_nodes_purple.png",}, 0)
|
||||||
@ -74,7 +74,7 @@ node.types = {
|
|||||||
{"holes", "metal with holes"},
|
{"holes", "metal with holes"},
|
||||||
{"white2", "plastic",},
|
{"white2", "plastic",},
|
||||||
{"super_white", "Super Plastic", 11},
|
{"super_white", "Super Plastic", 11},
|
||||||
{"ultra_white", "Ultra Plastic", default.LIGHT_MAX},
|
{"ultra_white", "Ultra Plastic", minetest.LIGHT_MAX},
|
||||||
-- {"engine", "engine", "engine"},
|
-- {"engine", "engine", "engine"},
|
||||||
{"wall", "metal wall"},
|
{"wall", "metal wall"},
|
||||||
{"white", "plastic wall"},
|
{"white", "plastic wall"},
|
||||||
@ -139,10 +139,10 @@ node.types = {
|
|||||||
-- {"monitorwall", "Wall monitors", "monitorwall"},
|
-- {"monitorwall", "Wall monitors", "monitorwall"},
|
||||||
{"screen3", "Wall monitor"},
|
{"screen3", "Wall monitor"},
|
||||||
{"doomlight", "Doom light", 12},
|
{"doomlight", "Doom light", 12},
|
||||||
{"bluwllight", "Blue wall light", default.LIGHT_MAX},
|
{"bluwllight", "Blue wall light", minetest.LIGHT_MAX},
|
||||||
{"bluegrid", "Blue Grid", 5},
|
{"bluegrid", "Blue Grid", 5},
|
||||||
{"fan", "Fan"},
|
{"fan", "Fan"},
|
||||||
{"ppllght", "Purple wall light", default.LIGHT_MAX},
|
{"ppllght", "Purple wall light", minetest.LIGHT_MAX},
|
||||||
{"pplwll", "Purple wall"},
|
{"pplwll", "Purple wall"},
|
||||||
{"pplwll2", "Purple wall2"},
|
{"pplwll2", "Purple wall2"},
|
||||||
{"pplwll3", "Purple wall3"},
|
{"pplwll3", "Purple wall3"},
|
||||||
|
@ -304,7 +304,7 @@ minetest.register_node("scifi_nodes:gloshroom", {
|
|||||||
},
|
},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
@ -451,7 +451,7 @@ minetest.register_node("scifi_nodes:lightbar", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -488,7 +488,7 @@ minetest.register_node("scifi_nodes:light_dynamic", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
sounds = default.node_sound_glass_defaults()
|
sounds = default.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
@ -536,7 +536,7 @@ minetest.register_node("scifi_nodes:lightbars", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -557,7 +557,7 @@ tiles = {{
|
|||||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
||||||
}},
|
}},
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -577,7 +577,7 @@ tiles = {
|
|||||||
"scifi_nodes_orange.png",
|
"scifi_nodes_orange.png",
|
||||||
},
|
},
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -1128,7 +1128,7 @@ minetest.register_node("scifi_nodes:glassscreen", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -454,7 +454,7 @@ minetest.register_node("scifi_nodes:lightstp", {
|
|||||||
tiles = {
|
tiles = {
|
||||||
"scifi_nodes_lightstripe.png"
|
"scifi_nodes_lightstripe.png"
|
||||||
},
|
},
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = minetest.LIGHT_MAX,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1},
|
groups = {cracky=1},
|
||||||
sounds = default.node_sound_glass_defaults()
|
sounds = default.node_sound_glass_defaults()
|
||||||
@ -522,7 +522,7 @@ local nodetypes = {
|
|||||||
{"holes", "metal with holes","holes"},
|
{"holes", "metal with holes","holes"},
|
||||||
{"white2", "plastic", "white2", 0, true},
|
{"white2", "plastic", "white2", 0, true},
|
||||||
{"super_white", "Super Plastic", "super_white", 11},
|
{"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"},
|
{"engine", "engine", "engine"},
|
||||||
{"wall", "metal wall", "wall"},
|
{"wall", "metal wall", "wall"},
|
||||||
{"white", "plastic wall", "white", 0, true},
|
{"white", "plastic wall", "white", 0, true},
|
||||||
@ -587,10 +587,10 @@ local nodetypes = {
|
|||||||
{"monitorwall", "Wall monitors", "monitorwall"},
|
{"monitorwall", "Wall monitors", "monitorwall"},
|
||||||
{"screen3", "Wall monitor", "screen3"},
|
{"screen3", "Wall monitor", "screen3"},
|
||||||
{"doomlight", "Doom light", "doomlight", 12},
|
{"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},
|
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
||||||
{"fan", "Fan", "fan"},
|
{"fan", "Fan", "fan"},
|
||||||
{"ppllght", "Purple wall light", "", default.LIGHT_MAX},
|
{"ppllght", "Purple wall light", "", minetest.LIGHT_MAX},
|
||||||
{"pplwll", "Purple wall", "", 0},
|
{"pplwll", "Purple wall", "", 0},
|
||||||
{"pplwll2", "Purple wall2", "", 0},
|
{"pplwll2", "Purple wall2", "", 0},
|
||||||
{"pplwll3", "Purple wall3", "", 0},
|
{"pplwll3", "Purple wall3", "", 0},
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
local plants = {
|
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},
|
{"flower2", "Pink Flower", 1.5,0, 10},
|
||||||
{"flower3", "Triffid", 2,5, 0},
|
{"flower3", "Triffid", 2,5, 0},
|
||||||
{"flower4", "Weeping flower", 1.5,0, 0},
|
{"flower4", "Weeping flower", 1.5,0, 0},
|
||||||
{"plant1", "Bulb Plant", 1,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},
|
{"plant3", "Blue Jelly Plant", 1.2,0, 10},
|
||||||
{"plant4", "Green Jelly Plant", 1.2,0, 10},
|
{"plant4", "Green Jelly Plant", 1.2,0, 10},
|
||||||
{"plant5", "Fern Plant", 1.7,0, 0},
|
{"plant5", "Fern Plant", 1.7,0, 0},
|
||||||
|
Loading…
Reference in New Issue
Block a user