mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
Changed all the LIGHT_MAX calls to default.LIGHT_MAX
- Avoided crash by using the real variable instead of its old name
This commit is contained in:
parent
3ae94073c4
commit
d9c182cf9d
@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
default = {} -- Definitions made by this mod are usable by all mods.
|
default = {} -- Definitions made by this mod are usable by all mods.
|
||||||
|
|
||||||
-- The API documentation in here was moved into doc/lua_api.txt.
|
-- The API documentation in here was moved into game_api.txt
|
||||||
|
|
||||||
WATER_ALPHA = 160
|
-- Definitions made by this mod that other mods can use too
|
||||||
WATER_VISC = 1
|
default = {}
|
||||||
LAVA_VISC = 3 -- Slower movement in lava.
|
|
||||||
LIGHT_MAX = 14 -- 15 is reserved for sunlight.
|
default.LIGHT_MAX = 14
|
||||||
|
|
||||||
-- GUI related stuff:
|
-- GUI related stuff:
|
||||||
default.gui_bg = "bgcolor[#080808BB;true]"
|
default.gui_bg = "bgcolor[#080808BB;true]"
|
||||||
|
@ -31,331 +31,370 @@ minetest.register_alias("mapgen_stair_cobble", "stairs:stair_cobble")
|
|||||||
-- Ore generation
|
-- Ore generation
|
||||||
--
|
--
|
||||||
|
|
||||||
minetest.register_ore({
|
function default.register_ores()
|
||||||
ore_type = "scatter",
|
minetest.register_ore({
|
||||||
ore = "default:stone_with_coal",
|
ore_type = "scatter",
|
||||||
wherein = "default:stone",
|
ore = "default:stone_with_coal",
|
||||||
clust_scarcity = 9 * 9 * 9,
|
wherein = "default:stone",
|
||||||
clust_num_ores = 8,
|
clust_scarcity = 9 * 9 * 9,
|
||||||
clust_size = 3,
|
clust_num_ores = 8,
|
||||||
height_min = -30000,
|
clust_size = 3,
|
||||||
height_max = 64,
|
height_min = -30000,
|
||||||
})
|
height_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:desert_stone_with_coal",
|
ore = "default:desert_stone_with_coal",
|
||||||
wherein = "default:desert_stone",
|
wherein = "default:desert_stone",
|
||||||
clust_scarcity = 9 * 9 * 9,
|
clust_scarcity = 9 * 9 * 9,
|
||||||
clust_num_ores = 10,
|
clust_num_ores = 10,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = 0,
|
height_min = 0,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_coal",
|
ore = "default:stone_with_coal",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 24 * 24 * 24,
|
clust_scarcity = 24 * 24 * 24,
|
||||||
clust_num_ores = 27,
|
clust_num_ores = 27,
|
||||||
clust_size = 6,
|
clust_size = 6,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = 0,
|
height_max = 0,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_iron",
|
ore = "default:stone_with_iron",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 11 * 11 * 11,
|
clust_scarcity = 11 * 11 * 11,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = -15,
|
height_min = -15,
|
||||||
height_max = 2,
|
height_max = 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_iron",
|
ore = "default:stone_with_iron",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 10 * 10 * 10,
|
clust_scarcity = 10 * 10 * 10,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -63,
|
height_min = -63,
|
||||||
height_max = -16,
|
height_max = -16,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_iron",
|
ore = "default:stone_with_iron",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 9 * 9 * 9,
|
clust_scarcity = 9 * 9 * 9,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = -64,
|
height_max = -64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_iron",
|
ore = "default:stone_with_iron",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 25 * 25 * 25,
|
clust_scarcity = 25 * 25 * 25,
|
||||||
clust_num_ores = 27,
|
clust_num_ores = 27,
|
||||||
clust_size = 6,
|
clust_size = 6,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = -64,
|
height_max = -64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_mese",
|
ore = "default:stone_with_mese",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 18 * 18 * 18,
|
clust_scarcity = 18 * 18 * 18,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = -255,
|
height_min = -255,
|
||||||
height_max = -128,
|
height_max = -128,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_mese",
|
ore = "default:stone_with_mese",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 14 * 14 * 14,
|
clust_scarcity = 14 * 14 * 14,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -1024,
|
height_min = -1024,
|
||||||
height_max = -256,
|
height_max = -256,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:mese",
|
ore = "default:mese",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 20 * 20 * 20,
|
clust_scarcity = 20 * 20 * 20,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = -1024,
|
height_max = -1024,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:mese",
|
ore = "default:mese",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 40 * 40 * 40,
|
clust_scarcity = 40 * 40 * 40,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = -1024,
|
height_min = -1024,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:meze",
|
ore = "default:meze",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 40 * 40 * 40,
|
clust_scarcity = 40 * 40 * 40,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = 0,
|
height_min = 0,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:mese",
|
ore = "default:mese",
|
||||||
wherein = "default:desert_stone",
|
wherein = "default:desert_stone",
|
||||||
clust_scarcity = 40 * 40 * 40,
|
clust_scarcity = 40 * 40 * 40,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = -1024,
|
height_min = -1024,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:meze",
|
ore = "default:meze",
|
||||||
wherein = "default:desert_stone",
|
wherein = "default:desert_stone",
|
||||||
clust_scarcity = 40 * 40 * 40,
|
clust_scarcity = 40 * 40 * 40,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = 0,
|
height_min = 0,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "maptools:superapple",
|
ore = "maptools:superapple",
|
||||||
wherein = "default:apple",
|
wherein = "default:apple",
|
||||||
clust_scarcity = 6 * 6 * 6,
|
clust_scarcity = 6 * 6 * 6,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = 0,
|
height_min = 0,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "maptools:superapple",
|
ore = "maptools:superapple",
|
||||||
wherein = "default:jungleleaves",
|
wherein = "default:jungleleaves",
|
||||||
clust_scarcity = 16 * 16 * 16,
|
clust_scarcity = 16 * 16 * 16,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = 0,
|
height_min = 0,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_coin",
|
ore = "default:stone_with_coin",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 26 * 26 * 26,
|
clust_scarcity = 26 * 26 * 26,
|
||||||
clust_num_ores = 1,
|
clust_num_ores = 1,
|
||||||
clust_size = 1,
|
clust_size = 1,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = 0,
|
height_max = 0,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_gold",
|
ore = "default:stone_with_gold",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 15 * 15 * 15,
|
clust_scarcity = 15 * 15 * 15,
|
||||||
clust_num_ores = 3,
|
clust_num_ores = 3,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = -255,
|
height_min = -255,
|
||||||
height_max = -64,
|
height_max = -64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_gold",
|
ore = "default:stone_with_gold",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 13 * 13 * 13,
|
clust_scarcity = 13 * 13 * 13,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = -256,
|
height_max = -256,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_diamond",
|
ore = "default:stone_with_diamond",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 17 * 17 * 17,
|
clust_scarcity = 17 * 17 * 17,
|
||||||
clust_num_ores = 4,
|
clust_num_ores = 4,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -512,
|
height_min = -512,
|
||||||
height_max = -256,
|
height_max = -256,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_diamond",
|
ore = "default:stone_with_diamond",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 15 * 15 * 15,
|
clust_scarcity = 15 * 15 * 15,
|
||||||
clust_num_ores = 4,
|
clust_num_ores = 4,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = -512,
|
height_max = -512,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_copper",
|
ore = "default:stone_with_copper",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 12 * 12 * 12,
|
clust_scarcity = 12 * 12 * 12,
|
||||||
clust_num_ores = 4,
|
clust_num_ores = 4,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -63,
|
height_min = -63,
|
||||||
height_max = -16,
|
height_max = -16,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:desert_stone_with_copper",
|
ore = "default:desert_stone_with_copper",
|
||||||
wherein = "default:desert_stone",
|
wherein = "default:desert_stone",
|
||||||
clust_scarcity = 11 * 11 * 11,
|
clust_scarcity = 11 * 11 * 11,
|
||||||
clust_num_ores = 6,
|
clust_num_ores = 6,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = 0,
|
height_min = 0,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_copper",
|
ore = "default:stone_with_copper",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 10 * 10 * 10,
|
clust_scarcity = 10 * 10 * 10,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 3,
|
clust_size = 3,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
height_max = -64,
|
height_max = -64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_coal",
|
ore = "default:stone_with_coal",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 32 * 32 * 32,
|
clust_scarcity = 32 * 32 * 32,
|
||||||
clust_num_ores = 40,
|
clust_num_ores = 40,
|
||||||
clust_size = 4,
|
clust_size = 4,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_iron",
|
ore = "default:stone_with_iron",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 48 * 48 * 48,
|
clust_scarcity = 48 * 48 * 48,
|
||||||
clust_num_ores = 40,
|
clust_num_ores = 40,
|
||||||
clust_size = 4,
|
clust_size = 4,
|
||||||
height_max = 64,
|
height_max = 64,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:stone_with_diamond",
|
ore = "default:stone_with_diamond",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 30 * 30 * 30,
|
clust_scarcity = 30 * 30 * 30,
|
||||||
clust_num_ores = 64,
|
clust_num_ores = 64,
|
||||||
clust_size = 5,
|
clust_size = 5,
|
||||||
height_max = -1024,
|
height_max = -1024,
|
||||||
height_min = -30000,
|
height_min = -30000,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.setting_get("mg_name") == "indev" then
|
||||||
|
-- Floatlands and high mountains springs:
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:water_source",
|
||||||
|
ore_param2 = 128,
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 40 *40 *40,
|
||||||
|
clust_num_ores = 8,
|
||||||
|
clust_size = 3,
|
||||||
|
height_min = 100,
|
||||||
|
height_max = 30000,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:lava_source",
|
||||||
|
ore_param2 = 128,
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 50 * 50 * 50,
|
||||||
|
clust_num_ores = 5,
|
||||||
|
clust_size = 2,
|
||||||
|
height_min = 10000,
|
||||||
|
height_max = 30000,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:sand",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 20 * 20 * 20,
|
||||||
|
clust_num_ores = 5 * 5 * 3,
|
||||||
|
clust_size = 5,
|
||||||
|
height_min = 500,
|
||||||
|
height_max = 30000,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Underground springs:
|
||||||
|
|
||||||
if minetest.setting_get("mg_name") == "indev" then
|
|
||||||
-- Floatlands and high mountains springs:
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:water_source",
|
ore = "default:water_source",
|
||||||
ore_param2 = 128,
|
ore_param2 = 128,
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 40 *40 *40,
|
clust_scarcity = 20 * 20 * 20,
|
||||||
clust_num_ores = 8,
|
clust_num_ores = 10,
|
||||||
clust_size = 3,
|
clust_size = 4,
|
||||||
height_min = 100,
|
height_min = -10000,
|
||||||
height_max = 30000,
|
height_max = -10,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
@ -363,169 +402,131 @@ if minetest.setting_get("mg_name") == "indev" then
|
|||||||
ore = "default:lava_source",
|
ore = "default:lava_source",
|
||||||
ore_param2 = 128,
|
ore_param2 = 128,
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 50 * 50 * 50,
|
clust_scarcity = 32 * 32 * 32,
|
||||||
clust_num_ores = 5,
|
clust_num_ores = 5,
|
||||||
clust_size = 2,
|
clust_size = 2,
|
||||||
height_min = 10000,
|
height_min = -30000,
|
||||||
height_max = 30000,
|
height_max = -100,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:dirt",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 16 * 16 * 16,
|
||||||
|
clust_num_ores = 64,
|
||||||
|
clust_size = 5,
|
||||||
|
height_max = 64,
|
||||||
|
height_min = -4096,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:gravel",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 16 * 16 * 16,
|
||||||
|
clust_num_ores = 64,
|
||||||
|
clust_size = 5,
|
||||||
|
height_max = 64,
|
||||||
|
height_min = -30000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
ore_type = "scatter",
|
ore_type = "scatter",
|
||||||
ore = "default:sand",
|
ore = "default:sand",
|
||||||
wherein = "default:stone",
|
wherein = "default:stone",
|
||||||
clust_scarcity = 20 * 20 * 20,
|
clust_scarcity = 24 * 24 * 24,
|
||||||
clust_num_ores = 5 * 5 * 3,
|
clust_num_ores = 32,
|
||||||
|
clust_size = 4,
|
||||||
|
height_max = 64,
|
||||||
|
height_min = -1024,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:clay",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 32 * 32 * 32,
|
||||||
|
clust_num_ores = 32,
|
||||||
|
clust_size = 4,
|
||||||
|
height_max = 64,
|
||||||
|
height_min = -1024,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:cobble",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 40 * 40 * 40,
|
||||||
|
clust_num_ores = 512,
|
||||||
|
clust_size = 9,
|
||||||
|
height_max = 64,
|
||||||
|
height_min = -4096,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:desert_cobble",
|
||||||
|
wherein = "default:desert_stone",
|
||||||
|
clust_scarcity = 40 * 40 * 40,
|
||||||
|
clust_num_ores = 512,
|
||||||
|
clust_size = 9,
|
||||||
|
height_max = 64,
|
||||||
|
height_min = 0,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:clay",
|
||||||
|
wherein = "default:sand",
|
||||||
|
clust_scarcity = 14 * 14 * 14,
|
||||||
|
clust_num_ores = 64,
|
||||||
clust_size = 5,
|
clust_size = 5,
|
||||||
height_min = 500,
|
height_max = 4,
|
||||||
height_max = 30000,
|
height_min = -8,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Air rooms in dirt:
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "air",
|
||||||
|
wherein = "default:dirt",
|
||||||
|
clust_scarcity = 24 * 24 * 24,
|
||||||
|
clust_num_ores = 200,
|
||||||
|
clust_size = 7,
|
||||||
|
height_min = -30000,
|
||||||
|
height_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Acid lakes in gravel:
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:acid_source",
|
||||||
|
wherein = "default:gravel",
|
||||||
|
clust_scarcity = 20 * 20 * 20,
|
||||||
|
clust_num_ores = 64,
|
||||||
|
clust_size = 5,
|
||||||
|
height_min = -30000,
|
||||||
|
height_max = 64,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Ice pools in stone:
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "default:ice",
|
||||||
|
wherein = "default:stone",
|
||||||
|
clust_scarcity = 32 * 32 * 32,
|
||||||
|
clust_num_ores = 200,
|
||||||
|
clust_size = 6,
|
||||||
|
height_min = -30000,
|
||||||
|
height_max = 64,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Underground springs:
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:water_source",
|
|
||||||
ore_param2 = 128,
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 20 * 20 * 20,
|
|
||||||
clust_num_ores = 10,
|
|
||||||
clust_size = 4,
|
|
||||||
height_min = -10000,
|
|
||||||
height_max = -10,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:lava_source",
|
|
||||||
ore_param2 = 128,
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 32 * 32 * 32,
|
|
||||||
clust_num_ores = 5,
|
|
||||||
clust_size = 2,
|
|
||||||
height_min = -30000,
|
|
||||||
height_max = -100,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:dirt",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 16 * 16 * 16,
|
|
||||||
clust_num_ores = 64,
|
|
||||||
clust_size = 5,
|
|
||||||
height_max = 64,
|
|
||||||
height_min = -4096,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:gravel",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 16 * 16 * 16,
|
|
||||||
clust_num_ores = 64,
|
|
||||||
clust_size = 5,
|
|
||||||
height_max = 64,
|
|
||||||
height_min = -30000,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:sand",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 24 * 24 * 24,
|
|
||||||
clust_num_ores = 32,
|
|
||||||
clust_size = 4,
|
|
||||||
height_max = 64,
|
|
||||||
height_min = -1024,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:clay",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 32 * 32 * 32,
|
|
||||||
clust_num_ores = 32,
|
|
||||||
clust_size = 4,
|
|
||||||
height_max = 64,
|
|
||||||
height_min = -1024,
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:cobble",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 40 * 40 * 40,
|
|
||||||
clust_num_ores = 512,
|
|
||||||
clust_size = 9,
|
|
||||||
height_max = 64,
|
|
||||||
height_min = -4096,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:desert_cobble",
|
|
||||||
wherein = "default:desert_stone",
|
|
||||||
clust_scarcity = 40 * 40 * 40,
|
|
||||||
clust_num_ores = 512,
|
|
||||||
clust_size = 9,
|
|
||||||
height_max = 64,
|
|
||||||
height_min = 0,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:clay",
|
|
||||||
wherein = "default:sand",
|
|
||||||
clust_scarcity = 14 * 14 * 14,
|
|
||||||
clust_num_ores = 64,
|
|
||||||
clust_size = 5,
|
|
||||||
height_max = 4,
|
|
||||||
height_min = -8,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Air rooms in dirt:
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "air",
|
|
||||||
wherein = "default:dirt",
|
|
||||||
clust_scarcity = 24 * 24 * 24,
|
|
||||||
clust_num_ores = 200,
|
|
||||||
clust_size = 7,
|
|
||||||
height_min = -30000,
|
|
||||||
height_max = 64,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Acid lakes in gravel:
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:acid_source",
|
|
||||||
wherein = "default:gravel",
|
|
||||||
clust_scarcity = 20 * 20 * 20,
|
|
||||||
clust_num_ores = 64,
|
|
||||||
clust_size = 5,
|
|
||||||
height_min = -30000,
|
|
||||||
height_max = 64,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Ice pools in stone:
|
|
||||||
|
|
||||||
minetest.register_ore({
|
|
||||||
ore_type = "scatter",
|
|
||||||
ore = "default:ice",
|
|
||||||
wherein = "default:stone",
|
|
||||||
clust_scarcity = 32 * 32 * 32,
|
|
||||||
clust_num_ores = 200,
|
|
||||||
clust_size = 6,
|
|
||||||
height_min = -30000,
|
|
||||||
height_max = 64,
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
function default.generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, chunk_size, ore_per_chunk, height_min, height_max)
|
function default.generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, chunk_size, ore_per_chunk, height_min, height_max)
|
||||||
minetest.log("action", "WARNING: default.generate_ore is deprecated")
|
minetest.log("action", "WARNING: default.generate_ore is deprecated")
|
||||||
|
|
||||||
|
@ -1036,7 +1036,7 @@ minetest.register_node("default:acid_flowing", {
|
|||||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "flowingliquid",
|
paramtype2 = "flowingliquid",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -1048,7 +1048,7 @@ minetest.register_node("default:acid_flowing", {
|
|||||||
liquidtype = "flowing",
|
liquidtype = "flowing",
|
||||||
liquid_alternative_flowing = "default:acid_flowing",
|
liquid_alternative_flowing = "default:acid_flowing",
|
||||||
liquid_alternative_source = "default:acid_source",
|
liquid_alternative_source = "default:acid_source",
|
||||||
liquid_viscosity = WATER_VISC,
|
liquid_viscosity = 1,
|
||||||
damage_per_second = 3,
|
damage_per_second = 3,
|
||||||
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
||||||
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1, not_in_creative_inventory = 1},
|
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1, not_in_creative_inventory = 1},
|
||||||
@ -1069,7 +1069,7 @@ minetest.register_node("default:acid_source", {
|
|||||||
backface_culling = false,
|
backface_culling = false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
@ -1080,7 +1080,7 @@ minetest.register_node("default:acid_source", {
|
|||||||
liquidtype = "source",
|
liquidtype = "source",
|
||||||
liquid_alternative_flowing = "default:acid_flowing",
|
liquid_alternative_flowing = "default:acid_flowing",
|
||||||
liquid_alternative_source = "default:acid_source",
|
liquid_alternative_source = "default:acid_source",
|
||||||
liquid_viscosity = WATER_VISC,
|
liquid_viscosity = 1,
|
||||||
damage_per_second = 3,
|
damage_per_second = 3,
|
||||||
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
||||||
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1},
|
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1},
|
||||||
@ -1102,7 +1102,7 @@ minetest.register_node("default:torch", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
wall_top = {-0.0625, -0.0625, -0.0625, 0.0625, 0.5 , 0.0625},
|
wall_top = {-0.0625, -0.0625, -0.0625, 0.0625, 0.5 , 0.0625},
|
||||||
@ -1464,7 +1464,7 @@ minetest.register_node("default:nyancat", {
|
|||||||
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
|
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
post_effect_color = {a = 128, r= 255, g= 128, b= 255},
|
post_effect_color = {a = 128, r= 255, g= 128, b= 255},
|
||||||
@ -1478,7 +1478,7 @@ minetest.register_node("default:nyancat_rainbow", {
|
|||||||
"default_nc_rb.png", "default_nc_rb.png"},
|
"default_nc_rb.png", "default_nc_rb.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
|
@ -101,7 +101,7 @@ minetest.register_node("bobblocks:redblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -113,7 +113,7 @@ minetest.register_node("bobblocks:redblock_off", {
|
|||||||
description = "Red Block",
|
description = "Red Block",
|
||||||
tile_images = {"bobblocks_redblock.png"},
|
tile_images = {"bobblocks_redblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:redblock',
|
drop = 'bobblocks:redblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -132,7 +132,7 @@ minetest.register_node("bobblocks:orangeblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -144,7 +144,7 @@ minetest.register_node("bobblocks:orangeblock_off", {
|
|||||||
description = "Orange Block",
|
description = "Orange Block",
|
||||||
tile_images = {"bobblocks_orangeblock.png"},
|
tile_images = {"bobblocks_orangeblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:orangeblock',
|
drop = 'bobblocks:orangeblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -163,7 +163,7 @@ minetest.register_node("bobblocks:yellowblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -175,7 +175,7 @@ minetest.register_node("bobblocks:yellowblock_off", {
|
|||||||
description = "Yellow Block",
|
description = "Yellow Block",
|
||||||
tile_images = {"bobblocks_yellowblock.png"},
|
tile_images = {"bobblocks_yellowblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:yellowblock',
|
drop = 'bobblocks:yellowblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -194,7 +194,7 @@ minetest.register_node("bobblocks:greenblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -206,7 +206,7 @@ minetest.register_node("bobblocks:greenblock_off", {
|
|||||||
description = "Green Block",
|
description = "Green Block",
|
||||||
tile_images = {"bobblocks_greenblock.png"},
|
tile_images = {"bobblocks_greenblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:greenblock',
|
drop = 'bobblocks:greenblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -226,7 +226,7 @@ minetest.register_node("bobblocks:blueblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -238,7 +238,7 @@ minetest.register_node("bobblocks:blueblock_off", {
|
|||||||
description = "Blue Block",
|
description = "Blue Block",
|
||||||
tile_images = {"bobblocks_blueblock.png"},
|
tile_images = {"bobblocks_blueblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:blueblock',
|
drop = 'bobblocks:blueblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -257,7 +257,7 @@ minetest.register_node("bobblocks:indigoblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -269,7 +269,7 @@ minetest.register_node("bobblocks:indigoblock_off", {
|
|||||||
description = "Indigo Block",
|
description = "Indigo Block",
|
||||||
tile_images = {"bobblocks_indigoblock.png"},
|
tile_images = {"bobblocks_indigoblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:indigoblock',
|
drop = 'bobblocks:indigoblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -289,7 +289,7 @@ minetest.register_node("bobblocks:violetblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -301,7 +301,7 @@ minetest.register_node("bobblocks:violetblock_off", {
|
|||||||
description = "Violet Block",
|
description = "Violet Block",
|
||||||
tile_images = {"bobblocks_violetblock.png"},
|
tile_images = {"bobblocks_violetblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:violetblock',
|
drop = 'bobblocks:violetblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -320,7 +320,7 @@ minetest.register_node("bobblocks:whiteblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -332,7 +332,7 @@ minetest.register_node("bobblocks:whiteblock_off", {
|
|||||||
description = "White Block",
|
description = "White Block",
|
||||||
tile_images = {"bobblocks_whiteblock.png"},
|
tile_images = {"bobblocks_whiteblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:whiteblock',
|
drop = 'bobblocks:whiteblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -352,7 +352,7 @@ minetest.register_node("bobblocks:greyblock", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -364,7 +364,7 @@ minetest.register_node("bobblocks:greyblock_off", {
|
|||||||
description = "Grey Block",
|
description = "Grey Block",
|
||||||
tile_images = {"bobblocks_greyblock.png"},
|
tile_images = {"bobblocks_greyblock.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
alpha = WATER_ALPHA,
|
alpha = 160,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:greyblock',
|
drop = 'bobblocks:greyblock',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -385,7 +385,7 @@ minetest.register_node("bobblocks:redpole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -402,7 +402,7 @@ minetest.register_node("bobblocks:redpole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:redpole',
|
drop = 'bobblocks:redpole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -421,7 +421,7 @@ minetest.register_node("bobblocks:orangepole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -438,7 +438,7 @@ minetest.register_node("bobblocks:orangepole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:orangepole',
|
drop = 'bobblocks:orangepole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -457,7 +457,7 @@ minetest.register_node("bobblocks:yellowpole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -474,7 +474,7 @@ minetest.register_node("bobblocks:yellowpole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:yellowpole',
|
drop = 'bobblocks:yellowpole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -493,7 +493,7 @@ minetest.register_node("bobblocks:greenpole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -510,7 +510,7 @@ minetest.register_node("bobblocks:greenpole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:greenpole',
|
drop = 'bobblocks:greenpole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -529,7 +529,7 @@ minetest.register_node("bobblocks:bluepole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -546,7 +546,7 @@ minetest.register_node("bobblocks:bluepole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:bluepole',
|
drop = 'bobblocks:bluepole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -565,7 +565,7 @@ minetest.register_node("bobblocks:indigopole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -582,7 +582,7 @@ minetest.register_node("bobblocks:indigopole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:indigopole',
|
drop = 'bobblocks:indigopole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -601,7 +601,7 @@ minetest.register_node("bobblocks:violetpole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -618,7 +618,7 @@ minetest.register_node("bobblocks:violetpole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:violetpole',
|
drop = 'bobblocks:violetpole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -637,7 +637,7 @@ minetest.register_node("bobblocks:whitepole", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-0,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
@ -654,7 +654,7 @@ minetest.register_node("bobblocks:whitepole_off", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
light_source = LIGHT_MAX-10,
|
light_source = default.LIGHT_MAX-10,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
||||||
drop = 'bobblocks:whitepole',
|
drop = 'bobblocks:whitepole',
|
||||||
mesecons = {conductor={
|
mesecons = {conductor={
|
||||||
@ -674,7 +674,7 @@ minetest.register_node("bobblocks:greypole", {
|
|||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
--light_source = LIGHT_MAX-0,
|
--light_source = default.LIGHT_MAX-0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ minetest.register_node("bobblocks:health_on", {
|
|||||||
tile_images = {"bobblocks_health_on.png"},
|
tile_images = {"bobblocks_health_on.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
light_source = LIGHT_MAX-0,
|
light_source = default.LIGHT_MAX-1,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
@ -165,7 +165,7 @@ minetest.register_node("building_blocks:Fireplace", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=2},
|
groups = {cracky=2},
|
||||||
|
@ -72,7 +72,7 @@ minetest.register_node("chains:chain_top_brass", {
|
|||||||
minetest.register_node("chains:chandelier", {
|
minetest.register_node("chains:chandelier", {
|
||||||
description = "Chandelier (wrought iron)",
|
description = "Chandelier (wrought iron)",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = default.LIGHT_MAX-2,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
@ -87,7 +87,7 @@ minetest.register_node("chains:chandelier", {
|
|||||||
minetest.register_node("chains:chandelier_brass", {
|
minetest.register_node("chains:chandelier_brass", {
|
||||||
description = "Chandelier (brass)",
|
description = "Chandelier (brass)",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = default.LIGHT_MAX-2,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
climbable = true,
|
climbable = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
@ -122,7 +122,7 @@ homedecor.register("ceiling_fan", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-1,
|
light_source = default.LIGHT_MAX-1,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ homedecor.register("television", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -82,7 +82,7 @@ homedecor.register("glowlight_half_"..color, {
|
|||||||
selection_box = glowlight_nodebox.half,
|
selection_box = glowlight_nodebox.half,
|
||||||
node_box = glowlight_nodebox.half,
|
node_box = glowlight_nodebox.half,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
@ -100,7 +100,7 @@ homedecor.register("glowlight_quarter_"..color, {
|
|||||||
selection_box = glowlight_nodebox.quarter,
|
selection_box = glowlight_nodebox.quarter,
|
||||||
node_box = glowlight_nodebox.quarter,
|
node_box = glowlight_nodebox.quarter,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-1,
|
light_source = default.LIGHT_MAX-1,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
@ -120,7 +120,7 @@ homedecor.register("glowlight_small_cube_"..color, {
|
|||||||
selection_box = glowlight_nodebox.small_cube,
|
selection_box = glowlight_nodebox.small_cube,
|
||||||
node_box = glowlight_nodebox.small_cube,
|
node_box = glowlight_nodebox.small_cube,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-1,
|
light_source = default.LIGHT_MAX-1,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
@ -138,7 +138,7 @@ homedecor.register("plasma_lamp", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- use_texture_alpha = true,
|
-- use_texture_alpha = true,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
@ -170,7 +170,7 @@ homedecor.register("candle", {
|
|||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-4,
|
light_source = default.LIGHT_MAX-4,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ homedecor.register("candle_thin", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-4,
|
light_source = default.LIGHT_MAX-4,
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("oil_lamp", {
|
homedecor.register("oil_lamp", {
|
||||||
@ -206,7 +206,7 @@ homedecor.register("oil_lamp", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-4,
|
light_source = default.LIGHT_MAX-4,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -250,7 +250,7 @@ homedecor.register("lattice_lantern_large", {
|
|||||||
description = S("Lattice lantern (large)"),
|
description = S("Lattice lantern (large)"),
|
||||||
tiles = { 'homedecor_lattice_lantern_large.png' },
|
tiles = { 'homedecor_lattice_lantern_large.png' },
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ homedecor.register("lattice_lantern_small", {
|
|||||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
||||||
},
|
},
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = LIGHT_MAX-1,
|
light_source = default.LIGHT_MAX-1,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
@ -178,7 +178,7 @@ homedecor.register("fishtank_lighted", {
|
|||||||
"homedecor_fishtank_back_lighted.png",
|
"homedecor_fishtank_back_lighted.png",
|
||||||
"homedecor_fishtank_front_lighted.png"
|
"homedecor_fishtank_front_lighted.png"
|
||||||
},
|
},
|
||||||
light_source = LIGHT_MAX-4,
|
light_source = default.LIGHT_MAX-4,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -10,7 +10,7 @@ minetest.register_node("lantern:lantern", {
|
|||||||
tiles = {"lantern_tb.png","lantern_tb.png","lantern.png","lantern.png","lantern.png","lantern.png"},
|
tiles = {"lantern_tb.png","lantern_tb.png","lantern.png","lantern.png","lantern.png","lantern.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = LIGHT_MAX-1,
|
light_source = default.LIGHT_MAX-1,
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy = 2, cracky = 2, dig_immediate = 3},
|
groups = {snappy = 2, cracky = 2, dig_immediate = 3},
|
||||||
@ -48,7 +48,7 @@ minetest.register_node("lantern:candle", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {dig_immediate = 3, attached_node = 1},
|
groups = {dig_immediate = 3, attached_node = 1},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -63,7 +63,7 @@ minetest.register_node("lantern:lamp", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3},
|
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -179,7 +179,7 @@ minetest.register_node("lantern:lamp1", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -202,7 +202,7 @@ minetest.register_node("lantern:lamp2", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -225,7 +225,7 @@ minetest.register_node("lantern:lamp3", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -248,7 +248,7 @@ minetest.register_node("lantern:lamp4", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX - 1,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
groups = {snappy = 2, cracky = 2, oddly_breakable_by_hand = 3, not_in_creative_inventory = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -67,7 +67,7 @@ minetest.register_node("mesecons_button:button_on", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
light_source = LIGHT_MAX-7,
|
light_source = default.LIGHT_MAX-7,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -17,7 +17,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
|
|||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
node_box = mesecon_lamp_box,
|
node_box = mesecon_lamp_box,
|
||||||
selection_box = mesecon_lamp_box,
|
selection_box = mesecon_lamp_box,
|
||||||
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1},
|
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1},
|
||||||
|
@ -31,7 +31,7 @@ function mesecon.lightstone_add(name, base_item, texture_off, texture_on)
|
|||||||
tiles = {texture_on},
|
tiles = {texture_on},
|
||||||
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
|
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
|
||||||
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
|
drop = "mesecons_lightstone:lightstone_" .. name .. "_off",
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = default.LIGHT_MAX-2,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
rules = lightstone_rules,
|
rules = lightstone_rules,
|
||||||
|
@ -9,7 +9,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate=3, mesecon = 2},
|
groups = {dig_immediate=3, mesecon = 2},
|
||||||
light_source = LIGHT_MAX-9,
|
light_source = default.LIGHT_MAX-9,
|
||||||
description="Power Plant",
|
description="Power Plant",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -76,7 +76,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
selection_box = torch_selectionbox,
|
selection_box = torch_selectionbox,
|
||||||
groups = {dig_immediate=3},
|
groups = {dig_immediate=3},
|
||||||
light_source = LIGHT_MAX-5,
|
light_source = default.LIGHT_MAX-5,
|
||||||
description="Mesecon Torch",
|
description="Mesecon Torch",
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
|
@ -29,7 +29,7 @@ minetest.register_node("noairblocks:water_flowingx", {
|
|||||||
liquidtype = "flowing",
|
liquidtype = "flowing",
|
||||||
liquid_alternative_flowing = "noairblocks:water_flowingx",
|
liquid_alternative_flowing = "noairblocks:water_flowingx",
|
||||||
liquid_alternative_source = "noairblocks:water_sourcex",
|
liquid_alternative_source = "noairblocks:water_sourcex",
|
||||||
liquid_viscosity = WATER_VISC,
|
liquid_viscosity = 1,
|
||||||
freezemelt = "default:snow",
|
freezemelt = "default:snow",
|
||||||
post_effect_color = {a=64, r=100, g=100, b=200},
|
post_effect_color = {a=64, r=100, g=100, b=200},
|
||||||
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, freezes=1, melt_around=1},
|
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, freezes=1, melt_around=1},
|
||||||
@ -61,7 +61,7 @@ minetest.register_node("noairblocks:water_sourcex", {
|
|||||||
liquidtype = "source",
|
liquidtype = "source",
|
||||||
liquid_alternative_flowing = "noairblocks:water_flowingx",
|
liquid_alternative_flowing = "noairblocks:water_flowingx",
|
||||||
liquid_alternative_source = "noairblocks:water_sourcex",
|
liquid_alternative_source = "noairblocks:water_sourcex",
|
||||||
liquid_viscosity = WATER_VISC,
|
liquid_viscosity = 1,
|
||||||
freezemelt = "default:ice",
|
freezemelt = "default:ice",
|
||||||
post_effect_color = {a=64, r=100, g=100, b=200},
|
post_effect_color = {a=64, r=100, g=100, b=200},
|
||||||
groups = {water=3, liquid=3, puts_out_fire=1, freezes=1},
|
groups = {water=3, liquid=3, puts_out_fire=1, freezes=1},
|
||||||
|
@ -209,7 +209,7 @@ minetest.register_node("snow:star", {
|
|||||||
minetest.register_node("snow:star_lit", {
|
minetest.register_node("snow:star_lit", {
|
||||||
description = "Star Lighted",
|
description = "Star Lighted",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
light_source = LIGHT_MAX,
|
light_source = default.LIGHT_MAX - 1,
|
||||||
tiles = {"snow_star_lit.png"},
|
tiles = {"snow_star_lit.png"},
|
||||||
wield_image = "snow_star.png",
|
wield_image = "snow_star.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
Loading…
Reference in New Issue
Block a user