2017-08-21 03:25:22 +03:00
|
|
|
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
|
|
|
|
--
|
2017-08-18 00:14:02 +03:00
|
|
|
|
-- Register biomes
|
2017-02-23 00:21:13 +02:00
|
|
|
|
--
|
|
|
|
|
|
2017-02-23 01:15:47 +02:00
|
|
|
|
local function register_classic_superflat_biome()
|
|
|
|
|
-- Classic Superflat: bedrock (not part of biome), 2 dirt, 1 grass block
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "flat",
|
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-03-21 04:28:40 +02:00
|
|
|
|
depth_filler = 3,
|
2017-06-13 14:51:16 +03:00
|
|
|
|
node_stone = "mcl_core:dirt",
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min - 512,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-02-23 01:15:47 +02:00
|
|
|
|
heat_point = 50,
|
|
|
|
|
humidity_point = 50,
|
|
|
|
|
})
|
|
|
|
|
end
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-02-23 01:15:47 +02:00
|
|
|
|
-- All mapgens except mgv6, flat and singlenode
|
2017-02-23 00:21:13 +02:00
|
|
|
|
local function register_biomes()
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
--[[ OVERWORLD ]]
|
|
|
|
|
|
|
|
|
|
-- Icesheet
|
2017-02-23 00:21:13 +02:00
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "icesheet",
|
2017-08-31 05:56:09 +03:00
|
|
|
|
node_dust = "mcl_core:snowblock",
|
|
|
|
|
node_top = "mcl_core:snowblock",
|
2017-08-31 04:50:36 +03:00
|
|
|
|
depth_top = 2,
|
2017-08-31 05:56:09 +03:00
|
|
|
|
node_filler = "mcl_core:snowblock",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_filler = 3,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_stone = "mcl_core:packed_ice",
|
|
|
|
|
node_water_top = "mcl_core:ice",
|
2017-08-31 04:50:36 +03:00
|
|
|
|
depth_water_top = 2,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_river_water = "mcl_core:ice",
|
|
|
|
|
node_riverbed = "mcl_core:gravel",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-31 05:56:09 +03:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 0,
|
|
|
|
|
humidity_point = 73,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "icesheet_ocean",
|
2017-08-31 04:50:36 +03:00
|
|
|
|
node_top = "mcl_core:gravel",
|
|
|
|
|
depth_top = 2,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_water_top = "mcl_core:ice",
|
2017-08-31 04:50:36 +03:00
|
|
|
|
depth_water_top = 2,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
node_river_water = "mcl_core:ice",
|
|
|
|
|
node_riverbed = "mcl_core:gravel",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-31 05:56:09 +03:00
|
|
|
|
y_max = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 0,
|
|
|
|
|
humidity_point = 73,
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
-- Tundra
|
|
|
|
|
|
2017-02-23 00:21:13 +02:00
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "tundra",
|
2017-08-21 15:08:35 +03:00
|
|
|
|
node_top = "mcl_core:snowblock",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 2,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_riverbed = "mcl_core:gravel",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = 2,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 0,
|
|
|
|
|
humidity_point = 40,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "tundra_beach",
|
|
|
|
|
node_top = "mcl_core:gravel",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:gravel",
|
|
|
|
|
depth_filler = 2,
|
|
|
|
|
node_riverbed = "mcl_core:gravel",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = -3,
|
|
|
|
|
y_max = 1,
|
|
|
|
|
heat_point = 0,
|
|
|
|
|
humidity_point = 40,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "tundra_ocean",
|
2017-08-21 03:25:22 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = -4,
|
|
|
|
|
heat_point = 0,
|
|
|
|
|
humidity_point = 40,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Taiga
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "taiga",
|
|
|
|
|
node_top = "mcl_core:podzol",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 3,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-31 05:10:38 +03:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 26,
|
|
|
|
|
humidity_point = 72,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "taiga_ocean",
|
2017-08-21 03:25:22 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-31 05:10:38 +03:00
|
|
|
|
y_max = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 26,
|
|
|
|
|
humidity_point = 72,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Snowy grassland
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "snowy_grassland",
|
2017-05-15 22:09:06 +03:00
|
|
|
|
node_top = "mcl_core:dirt_with_grass_snow",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-21 15:08:35 +03:00
|
|
|
|
depth_filler = 2,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
node_dust = "mcl_core:snow",
|
2017-08-30 01:37:01 +03:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 13,
|
|
|
|
|
humidity_point = 79,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "snowy_grassland_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-30 01:37:01 +03:00
|
|
|
|
y_max = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 13,
|
|
|
|
|
humidity_point = 79,
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
-- Grassland
|
2017-02-23 00:21:13 +02:00
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "grassland",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-21 15:08:35 +03:00
|
|
|
|
depth_filler = 2,
|
2017-02-23 00:21:13 +02:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-31 04:50:36 +03:00
|
|
|
|
y_min = 4,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 26,
|
|
|
|
|
humidity_point = 45,
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "grassland_dunes",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
node_top = "mcl_core:sand",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 2,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-31 04:50:36 +03:00
|
|
|
|
y_min = 3,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = 1,
|
|
|
|
|
heat_point = 26,
|
|
|
|
|
humidity_point = 45,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "grassland_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 26,
|
|
|
|
|
humidity_point = 45,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Coniferous forest
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "coniferous_forest",
|
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-31 04:50:36 +03:00
|
|
|
|
y_min = 4,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 47,
|
|
|
|
|
humidity_point = 73, --was 70
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "coniferous_forest_dunes",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
node_top = "mcl_core:sand",
|
|
|
|
|
depth_top = 1,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = 1,
|
2017-08-31 05:10:38 +03:00
|
|
|
|
y_max = 3,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 47,
|
|
|
|
|
humidity_point = 73, --was 70
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "coniferous_forest_ocean",
|
2017-08-31 05:10:38 +03:00
|
|
|
|
node_top = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 47,
|
|
|
|
|
humidity_point = 73, --was 70
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Deciduous forest
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "deciduous_forest",
|
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_top = 1,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_filler = 3,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 33,
|
|
|
|
|
humidity_point = 44, --was 68
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
2017-08-15 20:40:53 +03:00
|
|
|
|
name = "deciduous_forest_shore",
|
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_top = 1,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = -1,
|
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 33,
|
|
|
|
|
humidity_point = 44, --was 68
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "deciduous_forest_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = -2,
|
|
|
|
|
heat_point = 33,
|
|
|
|
|
humidity_point = 44, --was 68
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 15:13:58 +03:00
|
|
|
|
-- Desert (Red Sand)
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
2017-08-21 15:13:58 +03:00
|
|
|
|
name = "red_desert",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_top = "mcl_core:redsand",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:redsand",
|
2017-08-21 15:08:35 +03:00
|
|
|
|
depth_filler = 2,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
node_stone = "mcl_core:redsandstone",
|
2017-02-23 00:21:13 +02:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 64,
|
|
|
|
|
humidity_point = 37, --was 16
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
2017-08-21 15:13:58 +03:00
|
|
|
|
name = "red_desert_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:redsand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:redsand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:redsand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 64,
|
|
|
|
|
humidity_point = 37, --was 16
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 15:13:58 +03:00
|
|
|
|
-- Desert (Sand)
|
2017-02-23 00:21:13 +02:00
|
|
|
|
minetest.register_biome({
|
2017-08-21 15:13:58 +03:00
|
|
|
|
name = "desert",
|
2017-08-22 01:30:34 +03:00
|
|
|
|
node_top = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-22 01:30:34 +03:00
|
|
|
|
node_filler = "mcl_core:sand",
|
2017-08-21 15:08:35 +03:00
|
|
|
|
depth_filler = 2,
|
2017-08-22 01:30:34 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-22 01:30:34 +03:00
|
|
|
|
node_stone = "mcl_core:sandstone",
|
2017-08-31 05:10:38 +03:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 57,
|
|
|
|
|
humidity_point = 0, --was 0
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
2017-08-21 15:13:58 +03:00
|
|
|
|
name = "desert_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-31 05:10:38 +03:00
|
|
|
|
y_max = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 57,
|
|
|
|
|
humidity_point = 0, --was 0
|
|
|
|
|
})
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-08-21 05:50:45 +03:00
|
|
|
|
-- Roofed forest
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
2017-08-21 05:50:45 +03:00
|
|
|
|
name = "roofed_forest",
|
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 05:50:45 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-21 15:08:35 +03:00
|
|
|
|
depth_filler = 2,
|
2017-08-21 05:58:25 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-21 15:04:34 +03:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 26,
|
2017-08-21 05:50:45 +03:00
|
|
|
|
humidity_point = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
2017-08-21 15:13:58 +03:00
|
|
|
|
name = "roofed_forest_ocean",
|
2017-08-21 04:27:26 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:27:26 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 1,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
y_max = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 26,
|
2017-08-21 05:50:45 +03:00
|
|
|
|
humidity_point = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 05:15:51 +03:00
|
|
|
|
-- Mesa
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "mesa",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
node_top = "mcl_colorblocks:hardened_clay",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
node_filler = "mcl_colorblocks:hardened_clay",
|
2017-08-31 05:15:51 +03:00
|
|
|
|
depth_filler = 35,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
node_riverbed = "mcl_core:redsand",
|
|
|
|
|
depth_riverbed = 2,
|
2017-08-31 05:15:51 +03:00
|
|
|
|
node_stone = "mcl_colorblocks:hardened_clay",
|
2017-08-31 05:10:38 +03:00
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 88,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
humidity_point = 20,
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 05:10:38 +03:00
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "mesa_ocean",
|
|
|
|
|
node_top = "mcl_core:redsand",
|
2017-08-31 05:15:51 +03:00
|
|
|
|
depth_top = 3,
|
|
|
|
|
node_filler = "mcl_colorblocks:hardened_clay",
|
|
|
|
|
depth_filler = 1,
|
2017-08-31 05:10:38 +03:00
|
|
|
|
node_riverbed = "mcl_core:redsand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 88,
|
|
|
|
|
humidity_point = 20,
|
|
|
|
|
})
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
-- Savanna
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "savanna",
|
2017-08-21 03:37:29 +03:00
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
node_filler = "mcl_core:coarse_dirt",
|
2017-08-21 03:37:29 +03:00
|
|
|
|
depth_filler = 2,
|
|
|
|
|
node_riverbed = "mcl_core:coarse_dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 50,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
humidity_point = 46,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "savanna_shore",
|
|
|
|
|
node_top = "mcl_core:dirt",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = -1,
|
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 50,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
humidity_point = 46,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "savanna_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:coarse_dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = -2,
|
|
|
|
|
heat_point = 50,
|
2017-08-22 17:17:29 +03:00
|
|
|
|
humidity_point = 46,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Rainforest
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "rainforest",
|
2017-08-31 18:27:58 +03:00
|
|
|
|
node_top = "mcl_core:dirt_with_grass",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 90,
|
|
|
|
|
humidity_point = 91,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "rainforest_swamp",
|
|
|
|
|
node_top = "mcl_core:dirt",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = -1,
|
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 90,
|
|
|
|
|
humidity_point = 91,
|
2017-02-23 00:21:13 +02:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "rainforest_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = -2,
|
|
|
|
|
heat_point = 90,
|
|
|
|
|
humidity_point = 91,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Mushroom biomes
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "mushroom",
|
|
|
|
|
node_top = "mcl_core:mycelium",
|
|
|
|
|
depth_top = 1,
|
|
|
|
|
node_filler = "mcl_core:dirt",
|
|
|
|
|
depth_filler = 3,
|
|
|
|
|
node_riverbed = "mcl_core:sand",
|
|
|
|
|
depth_riverbed = 2,
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = 20,
|
|
|
|
|
heat_point = 99,
|
|
|
|
|
humidity_point = 99,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "mushroom_ocean",
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_top = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_top = 1,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_filler = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_filler = 3,
|
2017-08-21 04:23:59 +03:00
|
|
|
|
node_riverbed = "mcl_core:dirt",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
depth_riverbed = 2,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
y_max = 0,
|
|
|
|
|
heat_point = 99,
|
|
|
|
|
humidity_point = 99,
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-18 00:14:02 +03:00
|
|
|
|
end
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
2017-08-18 00:14:02 +03:00
|
|
|
|
-- Register biomes of non-Overworld biomes
|
|
|
|
|
local function register_dimension_biomes()
|
2017-08-15 20:40:53 +03:00
|
|
|
|
--[[ REALMS ]]
|
|
|
|
|
|
|
|
|
|
--[[ THE NETHER ]]
|
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "nether",
|
|
|
|
|
node_filler = "mcl_nether:netherrack",
|
2017-08-16 17:22:28 +03:00
|
|
|
|
node_stone = "mcl_nether:netherrack",
|
2017-08-18 15:07:35 +03:00
|
|
|
|
node_water = "air",
|
|
|
|
|
node_river_water = "air",
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
|
|
|
|
-- FIXME: For some reason the Nether stops generating early if this constant is not added.
|
|
|
|
|
-- Figure out why.
|
|
|
|
|
y_max = mcl_vars.mg_nether_max + 80,
|
2017-08-16 18:01:16 +03:00
|
|
|
|
heat_point = 100,
|
|
|
|
|
humidity_point = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-16 18:01:16 +03:00
|
|
|
|
--[[ THE END ]]
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_biome({
|
|
|
|
|
name = "end",
|
2017-08-18 03:42:26 +03:00
|
|
|
|
node_stone = "air",
|
2017-08-18 14:28:20 +03:00
|
|
|
|
node_filler = "air",
|
|
|
|
|
node_water = "air",
|
2017-08-18 03:42:26 +03:00
|
|
|
|
node_river_water = "air",
|
2017-08-22 01:22:53 +03:00
|
|
|
|
-- FIXME: For some reason the End stops generating early if this constant is not added.
|
|
|
|
|
-- Figure out why.
|
2017-08-18 00:14:02 +03:00
|
|
|
|
y_min = mcl_vars.mg_end_min,
|
2017-08-22 01:22:53 +03:00
|
|
|
|
y_max = mcl_vars.mg_end_max + 80,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
heat_point = 50,
|
|
|
|
|
humidity_point = 50,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- Register “fake” ores directly related to the biomes
|
|
|
|
|
local function register_biomelike_ores()
|
|
|
|
|
|
|
|
|
|
-- Fake moss stone boulder
|
|
|
|
|
-- TODO: Remove when real boulders are added
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "blob",
|
|
|
|
|
ore = "mcl_core:mossycobble",
|
|
|
|
|
wherein = "mcl_core:podzol",
|
2017-08-15 21:10:25 +03:00
|
|
|
|
biomes = {"taiga"},
|
|
|
|
|
clust_scarcity = 16 * 16 * 16,
|
|
|
|
|
clust_size = 3,
|
|
|
|
|
y_min = 25,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 21:10:25 +03:00
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.5,
|
|
|
|
|
scale = 0.2,
|
|
|
|
|
spread = {x = 3, y = 3, z = 3},
|
|
|
|
|
seed = 17676,
|
|
|
|
|
octaves = 1,
|
|
|
|
|
persist = 0.0
|
|
|
|
|
},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 14:24:42 +03:00
|
|
|
|
-- Mesa ores
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_core:sandstone",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein ={"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_scarcity = 1,
|
|
|
|
|
clust_num_ores = 12,
|
|
|
|
|
clust_size = 10,
|
|
|
|
|
y_min = 10,
|
|
|
|
|
y_max = 30,
|
|
|
|
|
noise_threshold = 0.2,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70},
|
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_core:dirt",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_scarcity = 1,
|
|
|
|
|
clust_num_ores = 12,
|
|
|
|
|
clust_size = 4,
|
|
|
|
|
y_min = -12,
|
|
|
|
|
y_max = 7,
|
|
|
|
|
noise_threshold = 0.4,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70},
|
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_core:redsand",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = { "mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_scarcity = 1,
|
|
|
|
|
clust_num_ores = 12,
|
|
|
|
|
clust_size = 10,
|
|
|
|
|
y_min = 44,
|
|
|
|
|
y_max = 70,
|
|
|
|
|
noise_threshold = 0.7,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70},
|
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_core:redsand",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_core:redsandstone", "mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_scarcity = 1,
|
|
|
|
|
clust_num_ores = 8,
|
|
|
|
|
clust_size = 4,
|
|
|
|
|
y_min = 4,
|
|
|
|
|
y_max = 70,
|
|
|
|
|
noise_threshold = 0.4,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
noise_params = {offset=0, scale=15, spread={x=130, y=130, z=130}, seed=24, octaves=3, persist=0.70},
|
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 14:24:42 +03:00
|
|
|
|
-- Mesa strata
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_silver",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 5,
|
|
|
|
|
y_max = 14,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_brown",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 15,
|
|
|
|
|
y_max = 17,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70},
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_orange",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 6,
|
|
|
|
|
y_min = 20,
|
|
|
|
|
y_max = 29,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_red",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 2,
|
|
|
|
|
y_min = 34,
|
|
|
|
|
y_max = 37,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_yellow",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 42,
|
|
|
|
|
y_max = 43,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_orange",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 43,
|
|
|
|
|
y_max = 44,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_brown",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 44,
|
|
|
|
|
y_max = 45,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_yellow",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 45,
|
|
|
|
|
y_max = 47,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_white",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = 49,
|
|
|
|
|
y_max = 52,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_yellow",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 4,
|
|
|
|
|
y_min = 53,
|
|
|
|
|
y_max = 59,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_white",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 8,
|
|
|
|
|
y_min = 61,
|
|
|
|
|
y_max = 70,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
2017-08-21 14:24:42 +03:00
|
|
|
|
ore = "mcl_colorblocks:hardened_clay_silver",
|
|
|
|
|
wherein = {"mcl_colorblocks:hardened_clay"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_size = 8,
|
|
|
|
|
y_min = 66,
|
|
|
|
|
y_max = 75,
|
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {offset=0, scale=1, spread={x=3100, y=3100, z=3100}, seed=23, octaves=3, persist=0.70} ,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = { "mesa" },
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
2017-08-18 00:14:02 +03:00
|
|
|
|
end
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
2017-08-18 00:14:02 +03:00
|
|
|
|
-- Non-Overworld ores
|
|
|
|
|
local function register_dimension_ores()
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
|
|
|
|
--[[ NETHER GENERATION ]]
|
|
|
|
|
|
|
|
|
|
-- Soul sand
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_nether:soul_sand",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
-- Note: Stone is included only for v6 mapgen support. Netherrack is not generated naturally
|
|
|
|
|
-- in v6, but instead set with the on_generated function in mcl_mapgen_core.
|
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_scarcity = 13 * 13 * 13,
|
|
|
|
|
clust_size = 5,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
2017-08-16 18:01:16 +03:00
|
|
|
|
y_max = mcl_util.layer_to_y(64, "nether"),
|
2017-08-15 20:40:53 +03:00
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.5,
|
|
|
|
|
scale = 0.1,
|
|
|
|
|
spread = {x = 5, y = 5, z = 5},
|
|
|
|
|
seed = 2316,
|
|
|
|
|
octaves = 1,
|
|
|
|
|
persist = 0.0
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Magma blocks
|
|
|
|
|
minetest.register_ore({
|
2017-08-16 18:01:16 +03:00
|
|
|
|
ore_type = "blob",
|
|
|
|
|
ore = "mcl_nether:magma",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-18 01:53:07 +03:00
|
|
|
|
clust_scarcity = 8*8*8,
|
|
|
|
|
clust_num_ores = 45,
|
|
|
|
|
clust_size = 6,
|
2017-08-17 06:35:06 +03:00
|
|
|
|
y_min = mcl_util.layer_to_y(23, "nether"),
|
|
|
|
|
y_max = mcl_util.layer_to_y(37, "nether"),
|
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "blob",
|
|
|
|
|
ore = "mcl_nether:magma",
|
|
|
|
|
wherein = {"mcl_nether:netherrack"},
|
2017-08-18 01:53:07 +03:00
|
|
|
|
clust_scarcity = 10*10*10,
|
|
|
|
|
clust_num_ores = 65,
|
|
|
|
|
clust_size = 8,
|
2017-08-16 18:01:16 +03:00
|
|
|
|
y_min = mcl_util.layer_to_y(23, "nether"),
|
|
|
|
|
y_max = mcl_util.layer_to_y(37, "nether"),
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Glowstone
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "blob",
|
|
|
|
|
ore = "mcl_nether:glowstone",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
clust_scarcity = 26 * 26 * 26,
|
|
|
|
|
clust_size = 5,
|
2017-08-16 18:01:16 +03:00
|
|
|
|
y_min = mcl_vars.mg_lava_nether_max + 10,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_max = mcl_vars.mg_nether_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
noise_threshold = 0.0,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.5,
|
|
|
|
|
scale = 0.1,
|
|
|
|
|
spread = {x = 5, y = 5, z = 5},
|
|
|
|
|
seed = 17676,
|
|
|
|
|
octaves = 1,
|
|
|
|
|
persist = 0.0
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-16 18:31:28 +03:00
|
|
|
|
-- Gravel (Nether)
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "sheet",
|
|
|
|
|
ore = "mcl_core:gravel",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:31:28 +03:00
|
|
|
|
column_height_min = 1,
|
|
|
|
|
column_height_max = 1,
|
2017-08-31 17:28:16 +03:00
|
|
|
|
column_midpoint_factor = 0,
|
2017-08-16 18:31:28 +03:00
|
|
|
|
y_min = mcl_util.layer_to_y(63, "nether"),
|
2017-08-31 17:28:16 +03:00
|
|
|
|
-- This should be 65, but for some reason with this setting, the sheet ore really stops at 65. o_O
|
|
|
|
|
y_max = mcl_util.layer_to_y(65+2, "nether"),
|
|
|
|
|
noise_threshold = 0.2,
|
2017-08-16 18:31:28 +03:00
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.0,
|
2017-08-31 17:28:16 +03:00
|
|
|
|
scale = 0.5,
|
|
|
|
|
spread = {x = 20, y = 20, z = 20},
|
2017-08-16 18:31:28 +03:00
|
|
|
|
seed = 766,
|
2017-08-31 17:28:16 +03:00
|
|
|
|
octaves = 3,
|
2017-08-16 18:31:28 +03:00
|
|
|
|
persist = 0.6,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-16 18:01:16 +03:00
|
|
|
|
-- Nether quartz
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "scatter",
|
|
|
|
|
ore = "mcl_nether:quartz_ore",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:01:16 +03:00
|
|
|
|
clust_scarcity = 850,
|
|
|
|
|
clust_num_ores = 4, -- MC cluster amount: 4-10
|
|
|
|
|
clust_size = 3,
|
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
|
|
|
|
y_max = mcl_vars.mg_nether_max,
|
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "scatter",
|
|
|
|
|
ore = "mcl_nether:quartz_ore",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:01:16 +03:00
|
|
|
|
clust_scarcity = 1650,
|
|
|
|
|
clust_num_ores = 8, -- MC cluster amount: 4-10
|
|
|
|
|
clust_size = 4,
|
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
|
|
|
|
y_max = mcl_vars.mg_nether_max,
|
|
|
|
|
})
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
2017-08-16 18:08:33 +03:00
|
|
|
|
-- Lava springs in the Nether
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "scatter",
|
|
|
|
|
ore = "mcl_nether:nether_lava_source",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:08:33 +03:00
|
|
|
|
clust_scarcity = 500,
|
|
|
|
|
clust_num_ores = 1,
|
|
|
|
|
clust_size = 1,
|
2017-08-16 17:22:28 +03:00
|
|
|
|
y_min = mcl_vars.mg_nether_min,
|
2017-08-16 18:08:33 +03:00
|
|
|
|
y_max = mcl_vars.mg_lava_nether_max + 1,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-16 18:08:33 +03:00
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "scatter",
|
|
|
|
|
ore = "mcl_nether:nether_lava_source",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:08:33 +03:00
|
|
|
|
clust_scarcity = 1000,
|
|
|
|
|
clust_num_ores = 1,
|
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = mcl_vars.mg_lava_nether_max + 2,
|
|
|
|
|
y_max = mcl_vars.mg_lava_nether_max + 12,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "scatter",
|
|
|
|
|
ore = "mcl_nether:nether_lava_source",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:08:33 +03:00
|
|
|
|
clust_scarcity = 2000,
|
|
|
|
|
clust_num_ores = 1,
|
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = mcl_vars.mg_lava_nether_max + 13,
|
|
|
|
|
y_max = mcl_vars.mg_lava_nether_max + 48,
|
|
|
|
|
})
|
|
|
|
|
minetest.register_ore({
|
|
|
|
|
ore_type = "scatter",
|
|
|
|
|
ore = "mcl_nether:nether_lava_source",
|
2017-08-18 00:58:35 +03:00
|
|
|
|
wherein = {"mcl_nether:netherrack", "mcl_core:stone"},
|
2017-08-16 18:08:33 +03:00
|
|
|
|
clust_scarcity = 3500,
|
|
|
|
|
clust_num_ores = 1,
|
|
|
|
|
clust_size = 1,
|
|
|
|
|
y_min = mcl_vars.mg_lava_nether_max + 49,
|
|
|
|
|
y_max = mcl_vars.mg_nether_max,
|
|
|
|
|
})
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
|
|
|
|
--[[ THE END ]]
|
|
|
|
|
|
|
|
|
|
-- Generate fake End
|
2017-08-18 03:42:26 +03:00
|
|
|
|
-- TODO: Remove both "ores" when there's a better End generator
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
2017-08-18 03:42:26 +03:00
|
|
|
|
ore_type = "sheet",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
ore = "mcl_end:end_stone",
|
2017-08-18 03:42:26 +03:00
|
|
|
|
wherein = {"air"},
|
|
|
|
|
y_min = mcl_vars.mg_end_min+64,
|
2017-08-22 01:22:53 +03:00
|
|
|
|
y_max = mcl_vars.mg_end_min+80,
|
2017-08-18 03:42:26 +03:00
|
|
|
|
column_height_min = 6,
|
|
|
|
|
column_height_max = 7,
|
|
|
|
|
column_midpoint_factor = 0.0,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -2,
|
|
|
|
|
scale = 8,
|
|
|
|
|
spread = {x=100, y=100, z=100},
|
|
|
|
|
seed = 2999,
|
|
|
|
|
octaves = 5,
|
|
|
|
|
persist = 0.55,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
},
|
2017-08-18 03:42:26 +03:00
|
|
|
|
noise_threshold = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_ore({
|
2017-08-18 03:42:26 +03:00
|
|
|
|
ore_type = "sheet",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
ore = "mcl_end:end_stone",
|
2017-08-18 03:42:26 +03:00
|
|
|
|
wherein = {"air"},
|
|
|
|
|
y_min = mcl_vars.mg_end_min+64,
|
2017-08-22 01:22:53 +03:00
|
|
|
|
y_max = mcl_vars.mg_end_min+80,
|
2017-08-18 03:42:26 +03:00
|
|
|
|
column_height_min = 4,
|
|
|
|
|
column_height_max = 4,
|
|
|
|
|
column_midpoint_factor = 0.0,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -4,
|
|
|
|
|
scale = 3,
|
|
|
|
|
spread = {x=200, y=200, z=200},
|
|
|
|
|
seed = 5390,
|
|
|
|
|
octaves = 5,
|
|
|
|
|
persist = 0.6,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
},
|
2017-08-18 03:42:26 +03:00
|
|
|
|
noise_threshold = 0,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- All mapgens except mgv6
|
|
|
|
|
|
2017-08-21 15:04:34 +03:00
|
|
|
|
local function register_grass_decoration(node, offset, scale, biomes, place_on)
|
|
|
|
|
if not place_on then
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"}
|
|
|
|
|
end
|
|
|
|
|
local noise = {
|
2017-08-21 03:25:22 +03:00
|
|
|
|
offset = offset,
|
|
|
|
|
scale = scale,
|
|
|
|
|
spread = {x = 200, y = 200, z = 200},
|
|
|
|
|
seed = 329,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.6
|
|
|
|
|
}
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
2017-08-21 15:04:34 +03:00
|
|
|
|
place_on = place_on,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
sidelen = 16,
|
2017-08-21 15:04:34 +03:00
|
|
|
|
noise_params = noise,
|
|
|
|
|
biomes = biomes,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-21 15:04:34 +03:00
|
|
|
|
decoration = node,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
local function register_decorations()
|
|
|
|
|
|
2017-08-31 06:38:25 +03:00
|
|
|
|
-- Oak
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
2017-08-31 19:04:40 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
2017-08-21 06:05:26 +03:00
|
|
|
|
offset = 0.025,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
scale = 0.0022,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"deciduous_forest"},
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-31 05:56:09 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_oak_classic.mts",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-08-21 14:43:16 +03:00
|
|
|
|
rotation = "random",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 06:38:25 +03:00
|
|
|
|
-- Jungle tree
|
2017-08-21 14:24:42 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
2017-08-31 19:04:40 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
2017-08-21 14:24:42 +03:00
|
|
|
|
sidelen = 80,
|
2017-08-31 19:04:40 +03:00
|
|
|
|
fill_ratio = 0.0025,
|
2017-08-21 14:24:42 +03:00
|
|
|
|
biomes = {"rainforest"},
|
|
|
|
|
y_min = 4,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_tree_huge.mts",
|
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
2017-08-31 19:04:40 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
2017-08-15 20:40:53 +03:00
|
|
|
|
sidelen = 80,
|
2017-08-31 19:04:40 +03:00
|
|
|
|
fill_ratio = 0.045,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
biomes = {"rainforest", "rainforest_swamp"},
|
2017-08-31 19:04:40 +03:00
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_tree.mts",
|
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
-- Oak in jungle
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
fill_ratio = 0.004,
|
|
|
|
|
biomes = {"rainforest"},
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-31 19:04:40 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_oak_classic.mts",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 06:38:25 +03:00
|
|
|
|
-- Spruce
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.0096,
|
|
|
|
|
scale = 0.0022,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"taiga", "coniferous_forest","coniferous_forest_dunes"},
|
|
|
|
|
y_min = 2,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/pine_tree.mts",
|
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 06:38:25 +03:00
|
|
|
|
-- Acacia
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:coarse_dirt"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0,
|
|
|
|
|
scale = 0.002,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"savanna"},
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-29 23:47:54 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_acacia_classic_2.mts",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 06:38:25 +03:00
|
|
|
|
-- Birch
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
2017-08-21 06:05:26 +03:00
|
|
|
|
offset = 0.001,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
scale = -0.0015,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"deciduous_forest"},
|
|
|
|
|
y_min = 1,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-31 05:56:09 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_birch.mts",
|
2017-08-15 20:40:53 +03:00
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 05:50:45 +03:00
|
|
|
|
-- Dark Oak
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.05,
|
|
|
|
|
scale = 0.0015,
|
|
|
|
|
spread = {x = 125, y = 125, z = 125},
|
|
|
|
|
seed = 223,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"roofed_forest"},
|
2017-08-21 15:04:34 +03:00
|
|
|
|
y_min = 4,
|
2017-08-21 05:50:45 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_dark_oak.mts",
|
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
})
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--Huge Brown Mushroom
|
2017-08-21 06:11:45 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:mycelium", "mcl_core:mycelium_snow"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
fill_ratio = 0.0001,
|
|
|
|
|
biomes = { "deciduous_forest" },
|
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = minetest.get_modpath("mcl_mushrooms").."/schematics/mcl_mushrooms_huge_brown.mts",
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:mycelium", "mcl_core:mycelium_snow"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
fill_ratio = 0.002,
|
|
|
|
|
biomes = {"mushroom", "mushroom_cold"},
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_mushrooms").."/schematics/mcl_mushrooms_huge_brown.mts",
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
--Huge Red Mushroom
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = { "mcl_core:dirt_with_grass"},
|
|
|
|
|
sidelen = 50,
|
2017-08-21 06:11:45 +03:00
|
|
|
|
fill_ratio = 0.0001,
|
|
|
|
|
biomes = { "deciduous_forest" },
|
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = minetest.get_modpath("mcl_mushrooms").."/schematics/mcl_mushrooms_huge_red.mts",
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = { "mcl_core:mycelium", "mcl_core:mycelium_snow" },
|
|
|
|
|
sidelen = 50,
|
|
|
|
|
fill_ratio = 0.002,
|
|
|
|
|
biomes = { "mushroom", "mushroom_cold" },
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
schematic = minetest.get_modpath("mcl_mushrooms").."/schematics/mcl_mushrooms_huge_red.mts",
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 05:14:28 +03:00
|
|
|
|
-- Cacti
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"group:sand"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -0.012,
|
|
|
|
|
scale = 0.024,
|
|
|
|
|
spread = {x = 100, y = 100, z = 100},
|
|
|
|
|
seed = 257,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.6
|
|
|
|
|
},
|
|
|
|
|
y_min = 4,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
decoration = "mcl_core:cactus",
|
2017-08-31 05:10:38 +03:00
|
|
|
|
biomes = {"red_desert","desert"},
|
2017-08-21 05:14:28 +03:00
|
|
|
|
height = 1,
|
|
|
|
|
height_max = 3,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Sugar canes
|
|
|
|
|
minetest.register_decoration({
|
2017-08-22 16:57:19 +03:00
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:dirt", "mcl_core:coarse_dirt", "mcl_core:dirt_with_grass", "group:sand", "mcl_core:podzol", "mcl_core:reeds"},
|
2017-08-21 05:14:28 +03:00
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -0.3,
|
|
|
|
|
scale = 0.7,
|
|
|
|
|
spread = {x = 100, y = 100, z = 100},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.7
|
|
|
|
|
},
|
2017-08-22 16:57:19 +03:00
|
|
|
|
biomes = {"grassland", "grassland_dunes", "snowy_grassland", "beach", "red_desert", "desert", "swamp"},
|
2017-08-21 05:14:28 +03:00
|
|
|
|
y_min = 1,
|
2017-08-22 16:57:19 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-21 05:14:28 +03:00
|
|
|
|
decoration = "mcl_core:reeds",
|
|
|
|
|
height = 1,
|
|
|
|
|
height_max = 3,
|
|
|
|
|
spawn_by = { "mcl_core:water_source", "group:frosted_ice" },
|
|
|
|
|
num_spawn_by = 1,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Doubletall grass
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
schematic = {
|
|
|
|
|
size = { x=1, y=3, z=1 },
|
|
|
|
|
data = {
|
|
|
|
|
{ name = "air", prob = 0 },
|
|
|
|
|
{ name = "mcl_flowers:double_grass", param1=255, },
|
|
|
|
|
{ name = "mcl_flowers:double_grass_top", param1=255, },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
replacements = {
|
|
|
|
|
["mcl_flowers:tallgrass"] = "mcl_flowers:double_grass"
|
|
|
|
|
},
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt_with_grass_snow"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -0.01,
|
|
|
|
|
scale = 0.03,
|
|
|
|
|
spread = {x = 300, y = 300, z = 300},
|
|
|
|
|
seed = 420,
|
|
|
|
|
octaves = 2,
|
|
|
|
|
persist = 0.6,
|
|
|
|
|
},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-21 05:50:45 +03:00
|
|
|
|
biomes = {"grassland", "coniferous_forest", "deciduous_forest", "roofed_forest", "savanna"},
|
2017-08-21 05:14:28 +03:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Large ferns
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
schematic = {
|
|
|
|
|
size = { x=1, y=3, z=1 },
|
|
|
|
|
data = {
|
|
|
|
|
{ name = "air", prob = 0 },
|
|
|
|
|
{ name = "mcl_flowers:double_fern", param1=255, },
|
|
|
|
|
{ name = "mcl_flowers:double_fern_top", param1=255, },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
replacements = {
|
|
|
|
|
["mcl_flowers:fern"] = "mcl_flowers:double_fern"
|
|
|
|
|
},
|
2017-08-31 18:27:58 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:podzol", "mcl_core:podzol_snow"},
|
2017-08-21 05:14:28 +03:00
|
|
|
|
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.01,
|
|
|
|
|
scale = 0.01,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 333,
|
|
|
|
|
octaves = 2,
|
|
|
|
|
persist = 0.66,
|
|
|
|
|
},
|
|
|
|
|
biomes = { "rainforest", "taiga", "cold_taiga", "mega_taiga" },
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 03:25:22 +03:00
|
|
|
|
-- Large flowers
|
|
|
|
|
local register_large_flower = function(name, biomes, seed, offset)
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
schematic = {
|
|
|
|
|
size = { x=1, y=3, z=1 },
|
|
|
|
|
data = {
|
|
|
|
|
{ name = "air", prob = 0 },
|
|
|
|
|
{ name = "mcl_flowers:"..name, param1=255, },
|
|
|
|
|
{ name = "mcl_flowers:"..name.."_top", param1=255, },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
|
|
|
|
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = offset,
|
|
|
|
|
scale = 0.01,
|
|
|
|
|
spread = {x = 300, y = 300, z = 300},
|
|
|
|
|
seed = seed,
|
|
|
|
|
octaves = 5,
|
|
|
|
|
persist = 0.62,
|
|
|
|
|
},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
flags = "",
|
|
|
|
|
biomes = biomes,
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
2017-08-21 05:50:45 +03:00
|
|
|
|
register_large_flower("rose_bush", {"deciduous_forest", "coniferous_forest", "roofed_forest", "flower_forest"}, 9350, -0.008)
|
|
|
|
|
register_large_flower("peony", {"deciduous_forest", "coniferous_forest", "roofed_forest", "flower_forest"}, 10450, -0.008)
|
|
|
|
|
register_large_flower("lilac", {"deciduous_forest", "coniferous_forest", "roofed_forest", "flower_forest"}, 10600, -0.007)
|
2017-08-21 03:25:22 +03:00
|
|
|
|
-- TODO: Make exclusive to sunflower plains
|
|
|
|
|
register_large_flower("sunflower", {"grassland", "sunflower_plains"}, 2940, -0.005)
|
|
|
|
|
|
2017-08-31 06:43:46 +03:00
|
|
|
|
-- Jungle bush
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
2017-08-31 18:27:58 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
2017-08-31 06:43:46 +03:00
|
|
|
|
sidelen = 80,
|
|
|
|
|
noise_params = {
|
2017-08-31 19:04:40 +03:00
|
|
|
|
offset = 0.0196,
|
2017-08-31 06:43:46 +03:00
|
|
|
|
scale = 0.025,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2930,
|
|
|
|
|
octaves = 4,
|
|
|
|
|
persist = 0.6,
|
|
|
|
|
},
|
|
|
|
|
biomes = {"rainforest"},
|
|
|
|
|
y_min = 3,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_jungle_bush.mts",
|
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-31 06:38:25 +03:00
|
|
|
|
-- Fallen logs
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.00018,
|
|
|
|
|
scale = 0.00011,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
biomes = {"taiga", "coniferous_forest"},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = {
|
2017-08-31 07:03:39 +03:00
|
|
|
|
size = {x = 5, y = 3, z = 1},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
data = {
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "mcl_core:sprucetree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "mcl_core:sprucetree", param2 = 12},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "mcl_core:sprucetree", param2 = 12},
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "mcl_core:sprucetree", param2 = 12},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "mcl_core:sprucetree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "mcl_mushrooms:mushroom_brown", prob = 160},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "mcl_mushrooms:mushroom_red", prob = 160},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.0,
|
|
|
|
|
scale = -0.00008,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"deciduous_forest"},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = {
|
2017-08-31 16:53:21 +03:00
|
|
|
|
size = {x = 4, y = 3, z = 1},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
data = {
|
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "mcl_core:birchtree", param2 = 12},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "mcl_core:birchtree", param2 = 12},
|
|
|
|
|
{name = "mcl_core:birchtree", param2 = 12},
|
|
|
|
|
{name = "mcl_core:birchtree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "mcl_mushrooms:mushroom_red", prob = 100},
|
|
|
|
|
{name = "mcl_mushrooms:mushroom_brown", prob = 10},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
2017-08-31 18:27:58 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
sidelen = 80,
|
2017-08-31 07:03:39 +03:00
|
|
|
|
fill_ratio = 0.005,
|
2017-08-31 16:53:21 +03:00
|
|
|
|
biomes = {"rainforest"},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = {
|
2017-08-31 07:03:39 +03:00
|
|
|
|
size = {x = 6, y = 3, z = 1},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
data = {
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "mcl_core:jungletree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "mcl_core:jungletree", param2 = 12},
|
|
|
|
|
{name = "mcl_core:jungletree", param2 = 12},
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "mcl_core:jungletree", param2 = 12},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "mcl_core:jungletree", param2 = 12},
|
|
|
|
|
{name = "mcl_core:jungletree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "mcl_mushrooms:mushroom_brown", prob = 50},
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.00018,
|
|
|
|
|
scale = 0.00011,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 2,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66
|
|
|
|
|
},
|
|
|
|
|
biomes = {"deciduous_forest"},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
schematic = {
|
2017-08-31 07:03:39 +03:00
|
|
|
|
size = {x = 4, y = 3, z = 1},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
data = {
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "air", prob = 0},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "mcl_core:tree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "mcl_core:tree", param2 = 12},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
{name = "mcl_core:tree", param2 = 12},
|
|
|
|
|
{name = "mcl_core:tree", param2 = 12, prob = 127},
|
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 16:53:21 +03:00
|
|
|
|
{name = "mcl_mushrooms:mushroom_brown", prob = 96},
|
|
|
|
|
{name = "mcl_mushrooms:mushroom_red", prob = 96},
|
2017-08-31 07:03:39 +03:00
|
|
|
|
{name = "air", prob = 0},
|
2017-08-31 06:38:25 +03:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
flags = "place_center_x",
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-22 18:40:54 +03:00
|
|
|
|
-- Lily pad
|
|
|
|
|
-- Spawn on Sea level in swamps only
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
schematic = {
|
|
|
|
|
size = { x=1, y=3, z=1 },
|
|
|
|
|
data = {
|
|
|
|
|
{ name = "mcl_core:water_source", prob = 0 },
|
|
|
|
|
{ name = "mcl_core:water_source" },
|
|
|
|
|
{ name = "mcl_flowers:waterlily", param1 = 255 },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
place_on = "mcl_core:dirt",
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -0.12,
|
|
|
|
|
scale = 0.3,
|
|
|
|
|
spread = {x = 100, y = 100, z = 100},
|
|
|
|
|
seed = 503,
|
|
|
|
|
octaves = 6,
|
|
|
|
|
persist = 0.7,
|
|
|
|
|
},
|
|
|
|
|
y_min = 0,
|
|
|
|
|
y_max = 0,
|
|
|
|
|
-- TODO: optimize spawn in real swamps
|
|
|
|
|
biomes = { "rainforest_swamp", "swamp" },
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 03:25:22 +03:00
|
|
|
|
-- Melon
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
2017-08-31 18:27:58 +03:00
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
2017-08-21 03:25:22 +03:00
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0.003,
|
|
|
|
|
scale = 0.006,
|
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = 333,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.6
|
|
|
|
|
},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
decoration = "mcl_farming:melon",
|
|
|
|
|
biomes = { "rainforest" },
|
|
|
|
|
})
|
2017-08-15 20:40:53 +03:00
|
|
|
|
|
2017-08-21 05:14:28 +03:00
|
|
|
|
-- Pumpkin
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "schematic",
|
|
|
|
|
schematic = {
|
|
|
|
|
size = { x=1, y=2, z=1 },
|
|
|
|
|
data = {
|
|
|
|
|
{ name = "air", prob = 0 },
|
|
|
|
|
{ name = "mcl_farming:pumpkin_face", param1=255, },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = -0.016,
|
|
|
|
|
scale = 0.01332,
|
|
|
|
|
spread = {x = 125, y = 125, z = 125},
|
|
|
|
|
seed = 666,
|
|
|
|
|
octaves = 6,
|
|
|
|
|
persist = 0.666
|
|
|
|
|
},
|
|
|
|
|
biomes = {"grassland"},
|
|
|
|
|
y_min = 3,
|
|
|
|
|
y_max = 29,
|
|
|
|
|
rotation = "random",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-15 20:40:53 +03:00
|
|
|
|
-- Simple 1×1×1 moss stone
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:podzol"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
fill_ratio = 0.004,
|
|
|
|
|
biomes = {"taiga"},
|
|
|
|
|
y_min = 10,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-15 20:40:53 +03:00
|
|
|
|
decoration = "mcl_core:mossycobble",
|
|
|
|
|
})
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-08-21 15:04:34 +03:00
|
|
|
|
-- Grasses and ferns
|
2017-08-21 15:22:55 +03:00
|
|
|
|
local grass_minimal = {"grassland", "coniferous_forest", "deciduous_forest", "roofed_forest", "flower_forest", "savanna"}
|
2017-08-21 15:04:34 +03:00
|
|
|
|
local grass_forest = {"grassland", "coniferous_forest", "deciduous_forest", "roofed_forest", "flower_forest" }
|
2017-08-21 15:22:55 +03:00
|
|
|
|
local grass_full = {"grassland"}
|
2017-08-21 15:04:34 +03:00
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", -0.03, 0.09, grass_minimal)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", -0.015, 0.075, grass_minimal)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0, 0.06, grass_forest)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.015, 0.045, grass_forest)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.03, 0.03, grass_forest)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.01, 0.05, grass_forest)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.03, 0.03, grass_full)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.05, 0.01, grass_full)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.07, -0.01, grass_full)
|
|
|
|
|
register_grass_decoration("mcl_flowers:tallgrass", 0.09, -0.03, grass_full)
|
|
|
|
|
|
2017-08-21 15:22:55 +03:00
|
|
|
|
local fern_minimal = { "rainforest", "taiga", "mega_taiga", "cold_taiga" }
|
|
|
|
|
local fern_low = { "rainforest", "taiga", "mega_taiga" }
|
|
|
|
|
local fern_full = { "rainforest" }
|
2017-08-31 18:27:58 +03:00
|
|
|
|
local fern_surf = {"mcl_core:dirt_with_grass", "mcl_core:podzol"}
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", -0.03, 0.09, fern_minimal, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", -0.015, 0.075, fern_minimal, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0, 0.06, fern_minimal, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.015, 0.045, fern_low, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.03, 0.03, fern_low, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.01, 0.05, fern_full, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.03, 0.03, fern_full, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.05, 0.01, fern_full, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.07, -0.01, fern_full, fern_surf)
|
|
|
|
|
register_grass_decoration("mcl_flowers:fern", 0.09, -0.03, fern_full, fern_surf)
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-08-21 05:14:28 +03:00
|
|
|
|
-- Dead bushes
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"group:sand", "mcl_core:podzol", "mcl_core:podzol_snow", "mcl_core:dirt", "mcl_core:coarse_dirt", "group:hardened_clay"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0,
|
|
|
|
|
scale = 0.035,
|
|
|
|
|
spread = {x = 100, y = 100, z = 100},
|
|
|
|
|
seed = 1972,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.6
|
|
|
|
|
},
|
|
|
|
|
y_min = 4,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-21 15:13:58 +03:00
|
|
|
|
biomes = {"red_desert", "desert", "mesa", "taiga", "mega_taiga"},
|
2017-08-21 05:14:28 +03:00
|
|
|
|
decoration = "mcl_core:deadbush",
|
|
|
|
|
height = 1,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Mushrooms in mushroom biome
|
2017-08-21 03:25:22 +03:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:mycelium"},
|
|
|
|
|
sidelen = 80,
|
2017-08-21 16:14:33 +03:00
|
|
|
|
fill_ratio = 0.009,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
biomes = {"mushroom"},
|
2017-08-21 16:14:33 +03:00
|
|
|
|
noise_threshold = 2.0,
|
2017-08-21 05:23:24 +03:00
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
decoration = "mcl_mushrooms:mushroom_red",
|
|
|
|
|
})
|
2017-02-23 00:21:13 +02:00
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
2017-08-21 03:25:22 +03:00
|
|
|
|
place_on = {"mcl_core:mycelium"},
|
|
|
|
|
sidelen = 80,
|
2017-08-21 16:14:33 +03:00
|
|
|
|
fill_ratio = 0.009,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
biomes = {"mushroom"},
|
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
decoration = "mcl_mushrooms:mushroom_brown",
|
|
|
|
|
})
|
|
|
|
|
|
2017-08-21 16:14:33 +03:00
|
|
|
|
-- Mushrooms in taigas
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:podzol"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
fill_ratio = 0.003,
|
|
|
|
|
biomes = {"taiga", "mega_taiga"},
|
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
decoration = "mcl_mushrooms:mushroom_red",
|
|
|
|
|
})
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:podzol"},
|
|
|
|
|
sidelen = 80,
|
|
|
|
|
fill_ratio = 0.003,
|
|
|
|
|
biomes = {"taiga", "mega_taiga"},
|
|
|
|
|
y_min = mcl_vars.mg_overworld_min,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
decoration = "mcl_mushrooms:mushroom_brown",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
2017-08-21 05:14:28 +03:00
|
|
|
|
-- Mushrooms next to trees
|
|
|
|
|
local mushrooms = {"mcl_mushrooms:mushroom_red", "mcl_mushrooms:mushroom_brown"}
|
|
|
|
|
local mseeds = { 7133, 8244 }
|
|
|
|
|
for m=1, #mushrooms do
|
|
|
|
|
-- Mushrooms next to trees
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt", "mcl_core:podzol", "mcl_core:mycelium", "mcl_core:stone", "mcl_core:andesite", "mcl_core:diorite", "mcl_core:granite"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
|
|
|
|
offset = 0,
|
2017-08-21 16:14:33 +03:00
|
|
|
|
scale = 0.003,
|
2017-08-21 05:14:28 +03:00
|
|
|
|
spread = {x = 250, y = 250, z = 250},
|
|
|
|
|
seed = mseeds[m],
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.66,
|
|
|
|
|
},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
decoration = mushrooms[m],
|
|
|
|
|
spawn_by = { "mcl_core:tree", "mcl_core:sprucetree", "mcl_core:darktree", "mcl_core:birchtree", "mcl_core:jungletree", },
|
|
|
|
|
num_spawn_by = 1,
|
|
|
|
|
})
|
|
|
|
|
end
|
2017-02-23 00:21:13 +02:00
|
|
|
|
|
2017-08-21 03:25:22 +03:00
|
|
|
|
local function register_flower(name, biomes, seed)
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
|
deco_type = "simple",
|
|
|
|
|
place_on = {"mcl_core:dirt_with_grass", "mcl_core:podzol"},
|
|
|
|
|
sidelen = 16,
|
|
|
|
|
noise_params = {
|
2017-08-21 16:24:01 +03:00
|
|
|
|
offset = 0.0008,
|
2017-08-21 03:25:22 +03:00
|
|
|
|
scale = 0.006,
|
|
|
|
|
spread = {x = 100, y = 100, z = 100},
|
|
|
|
|
seed = seed,
|
|
|
|
|
octaves = 3,
|
|
|
|
|
persist = 0.6
|
|
|
|
|
},
|
|
|
|
|
y_min = 1,
|
|
|
|
|
y_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
biomes = biomes,
|
|
|
|
|
decoration = "mcl_flowers:"..name,
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
2017-08-31 18:27:58 +03:00
|
|
|
|
local flower_biomes1 = {"grassland", "sunflower_plains", "flower_forest", "roofed_forest", "deciduous_forest", "coniferous_forest", "taiga", "rainforest"}
|
2017-08-21 03:25:22 +03:00
|
|
|
|
|
|
|
|
|
register_flower("dandelion", flower_biomes1, 8)
|
|
|
|
|
register_flower("poppy", flower_biomes1, 9439)
|
|
|
|
|
|
2017-08-21 04:35:46 +03:00
|
|
|
|
local flower_biomes2 = {"grassland", "sunflower_plains", "flower_forest"}
|
2017-08-21 03:25:22 +03:00
|
|
|
|
register_flower("tulip_red", flower_biomes2, 436)
|
|
|
|
|
register_flower("tulip_orange", flower_biomes2, 536)
|
|
|
|
|
register_flower("tulip_pink", flower_biomes2, 636)
|
|
|
|
|
register_flower("tulip_white", flower_biomes2, 736)
|
|
|
|
|
register_flower("azure_bluet", flower_biomes2, 800)
|
|
|
|
|
register_flower("oxeye_daisy", flower_biomes2, 3490)
|
|
|
|
|
|
|
|
|
|
-- TODO: Make exclusive to flower forest
|
2017-08-21 05:50:45 +03:00
|
|
|
|
register_flower("allium", {"deciduous_forest", "flower_forest", "roofed_forest"}, 0)
|
2017-08-21 03:25:22 +03:00
|
|
|
|
-- TODO: Make exclusive to swamp
|
2017-08-21 05:50:45 +03:00
|
|
|
|
register_flower("blue_orchid", {"roofed_forest", "swamp"}, 64500)
|
2017-08-21 03:25:22 +03:00
|
|
|
|
|
2017-08-16 17:22:28 +03:00
|
|
|
|
|
2017-08-18 00:14:02 +03:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- Decorations in non-Overworld dimensions
|
|
|
|
|
local function register_dimension_decorations()
|
2017-08-21 17:16:30 +03:00
|
|
|
|
-- TODO
|
2017-02-23 00:21:13 +02:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Detect mapgen to select functions
|
|
|
|
|
--
|
2017-08-21 03:52:38 +03:00
|
|
|
|
minetest.clear_registered_biomes()
|
|
|
|
|
minetest.clear_registered_decorations()
|
|
|
|
|
minetest.clear_registered_schematics()
|
2017-02-23 01:15:47 +02:00
|
|
|
|
if mg_name ~= "v6" and mg_name ~= "flat" then
|
2017-02-23 00:21:13 +02:00
|
|
|
|
register_biomes()
|
2017-08-15 20:40:53 +03:00
|
|
|
|
register_biomelike_ores()
|
2017-02-23 00:21:13 +02:00
|
|
|
|
register_decorations()
|
2017-02-23 01:15:47 +02:00
|
|
|
|
elseif mg_name == "flat" then
|
|
|
|
|
-- Implementation of Minecraft's Superflat mapgen, classic style
|
2017-02-23 01:31:31 +02:00
|
|
|
|
minetest.clear_registered_biomes()
|
|
|
|
|
minetest.clear_registered_decorations()
|
|
|
|
|
minetest.clear_registered_schematics()
|
2017-02-23 01:15:47 +02:00
|
|
|
|
register_classic_superflat_biome()
|
2017-02-23 00:21:13 +02:00
|
|
|
|
end
|
2017-08-18 00:14:02 +03:00
|
|
|
|
|
|
|
|
|
-- Non-overworld stuff is registered independently
|
|
|
|
|
register_dimension_biomes()
|
|
|
|
|
register_dimension_ores()
|
|
|
|
|
register_dimension_decorations()
|
|
|
|
|
|
|
|
|
|
-- Overworld decorations for v6 are handled in mcl_mapgen_core
|