mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02: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:
@ -3,12 +3,12 @@
|
||||
|
||||
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
|
||||
WATER_VISC = 1
|
||||
LAVA_VISC = 3 -- Slower movement in lava.
|
||||
LIGHT_MAX = 14 -- 15 is reserved for sunlight.
|
||||
-- Definitions made by this mod that other mods can use too
|
||||
default = {}
|
||||
|
||||
default.LIGHT_MAX = 14
|
||||
|
||||
-- GUI related stuff:
|
||||
default.gui_bg = "bgcolor[#080808BB;true]"
|
||||
|
@ -31,331 +31,370 @@ minetest.register_alias("mapgen_stair_cobble", "stairs:stair_cobble")
|
||||
-- Ore generation
|
||||
--
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coal",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 8,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = 64,
|
||||
})
|
||||
function default.register_ores()
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coal",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 8,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:desert_stone_with_coal",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 3,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:desert_stone_with_coal",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 3,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coal",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 24 * 24 * 24,
|
||||
clust_num_ores = 27,
|
||||
clust_size = 6,
|
||||
height_min = -30000,
|
||||
height_max = 0,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coal",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 24 * 24 * 24,
|
||||
clust_num_ores = 27,
|
||||
clust_size = 6,
|
||||
height_min = -30000,
|
||||
height_max = 0,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 11 * 11 * 11,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -15,
|
||||
height_max = 2,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 11 * 11 * 11,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -15,
|
||||
height_max = 2,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -63,
|
||||
height_max = -16,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -63,
|
||||
height_max = -16,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 25 * 25 * 25,
|
||||
clust_num_ores = 27,
|
||||
clust_size = 6,
|
||||
height_min = -30000,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 25 * 25 * 25,
|
||||
clust_num_ores = 27,
|
||||
clust_size = 6,
|
||||
height_min = -30000,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 18 * 18 * 18,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -255,
|
||||
height_max = -128,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 18 * 18 * 18,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -255,
|
||||
height_max = -128,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 14 * 14 * 14,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -1024,
|
||||
height_max = -256,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 14 * 14 * 14,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -1024,
|
||||
height_max = -256,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 20 * 20 * 20,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -30000,
|
||||
height_max = -1024,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 20 * 20 * 20,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -30000,
|
||||
height_max = -1024,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -1024,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:mese",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -1024,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:meze",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:meze",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:mese",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -1024,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:mese",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -1024,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:meze",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:meze",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "maptools:superapple",
|
||||
wherein = "default:apple",
|
||||
clust_scarcity = 6 * 6 * 6,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "maptools:superapple",
|
||||
wherein = "default:apple",
|
||||
clust_scarcity = 6 * 6 * 6,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "maptools:superapple",
|
||||
wherein = "default:jungleleaves",
|
||||
clust_scarcity = 16 * 16 * 16,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "maptools:superapple",
|
||||
wherein = "default:jungleleaves",
|
||||
clust_scarcity = 16 * 16 * 16,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 2,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coin",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 26 * 26 * 26,
|
||||
clust_num_ores = 1,
|
||||
clust_size = 1,
|
||||
height_min = -30000,
|
||||
height_max = 0,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coin",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 26 * 26 * 26,
|
||||
clust_num_ores = 1,
|
||||
clust_size = 1,
|
||||
height_min = -30000,
|
||||
height_max = 0,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_gold",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -255,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_gold",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
height_min = -255,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_gold",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -256,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_gold",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 13 * 13 * 13,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -256,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_diamond",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 17 * 17 * 17,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
height_min = -512,
|
||||
height_max = -256,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_diamond",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 17 * 17 * 17,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
height_min = -512,
|
||||
height_max = -256,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_diamond",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -512,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_diamond",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -512,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_copper",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 12 * 12 * 12,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
height_min = -63,
|
||||
height_max = -16,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_copper",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 12 * 12 * 12,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
height_min = -63,
|
||||
height_max = -16,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:desert_stone_with_copper",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 11 * 11 * 11,
|
||||
clust_num_ores = 6,
|
||||
clust_size = 3,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:desert_stone_with_copper",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 11 * 11 * 11,
|
||||
clust_num_ores = 6,
|
||||
clust_size = 3,
|
||||
height_min = 0,
|
||||
height_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_copper",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_copper",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
height_min = -30000,
|
||||
height_max = -64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coal",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 32 * 32 * 32,
|
||||
clust_num_ores = 40,
|
||||
clust_size = 4,
|
||||
height_max = 64,
|
||||
height_min = -30000,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_coal",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 32 * 32 * 32,
|
||||
clust_num_ores = 40,
|
||||
clust_size = 4,
|
||||
height_max = 64,
|
||||
height_min = -30000,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 48 * 48 * 48,
|
||||
clust_num_ores = 40,
|
||||
clust_size = 4,
|
||||
height_max = 64,
|
||||
height_min = -30000,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_iron",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 48 * 48 * 48,
|
||||
clust_num_ores = 40,
|
||||
clust_size = 4,
|
||||
height_max = 64,
|
||||
height_min = -30000,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_diamond",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 30 * 30 * 30,
|
||||
clust_num_ores = 64,
|
||||
clust_size = 5,
|
||||
height_max = -1024,
|
||||
height_min = -30000,
|
||||
})
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "default:stone_with_diamond",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 30 * 30 * 30,
|
||||
clust_num_ores = 64,
|
||||
clust_size = 5,
|
||||
height_max = -1024,
|
||||
height_min = -30000,
|
||||
})
|
||||
|
||||
if minetest.setting_get("mg_name") == "indev" then
|
||||
-- Floatlands and high mountains springs:
|
||||
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:
|
||||
|
||||
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,
|
||||
clust_scarcity = 20 * 20 * 20,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 4,
|
||||
height_min = -10000,
|
||||
height_max = -10,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
@ -363,169 +402,131 @@ if minetest.setting_get("mg_name") == "indev" then
|
||||
ore = "default:lava_source",
|
||||
ore_param2 = 128,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 50 * 50 * 50,
|
||||
clust_scarcity = 32 * 32 * 32,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 2,
|
||||
height_min = 10000,
|
||||
height_max = 30000,
|
||||
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 = 20 * 20 * 20,
|
||||
clust_num_ores = 5 * 5 * 3,
|
||||
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_min = 500,
|
||||
height_max = 30000,
|
||||
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,
|
||||
})
|
||||
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)
|
||||
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}
|
||||
},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
@ -1048,7 +1048,7 @@ minetest.register_node("default:acid_flowing", {
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "default:acid_flowing",
|
||||
liquid_alternative_source = "default:acid_source",
|
||||
liquid_viscosity = WATER_VISC,
|
||||
liquid_viscosity = 1,
|
||||
damage_per_second = 3,
|
||||
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},
|
||||
@ -1069,7 +1069,7 @@ minetest.register_node("default:acid_source", {
|
||||
backface_culling = false,
|
||||
}
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
@ -1080,7 +1080,7 @@ minetest.register_node("default:acid_source", {
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "default:acid_flowing",
|
||||
liquid_alternative_source = "default:acid_source",
|
||||
liquid_viscosity = WATER_VISC,
|
||||
liquid_viscosity = 1,
|
||||
damage_per_second = 3,
|
||||
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
||||
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1},
|
||||
@ -1102,7 +1102,7 @@ minetest.register_node("default:torch", {
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
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"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
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"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
use_texture_alpha = true,
|
||||
|
Reference in New Issue
Block a user