2015-09-01 17:15:24 +02:00
|
|
|
|
|
|
|
--
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Mapgen
|
2015-09-01 17:15:24 +02:00
|
|
|
--
|
|
|
|
|
2017-05-17 22:55:32 +02:00
|
|
|
-- Uncomment this to cut a big portion of ground out for visualizing ore spawning
|
|
|
|
|
|
|
|
--[[
|
2017-05-17 22:54:33 +02:00
|
|
|
local function on_generated(minp, maxp, blockseed)
|
|
|
|
for x = minp.x, maxp.x do
|
|
|
|
if x > 0 then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
for z = minp.z, maxp.z do
|
|
|
|
if z > -16 and z < 16 then
|
|
|
|
for y = minp.y, maxp.y do
|
|
|
|
minetest.remove_node({x = x, y = y, z = z})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_on_generated(on_generated)
|
2017-05-17 22:55:32 +02:00
|
|
|
--]]
|
2017-05-17 22:54:33 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Aliases for map generator outputs
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_alias("mapgen_stone", "default:stone")
|
2019-03-08 08:06:57 +01:00
|
|
|
minetest.register_alias("mapgen_desert_stone", "default:sandstone")
|
|
|
|
minetest.register_alias("mapgen_desert_sand", "default:sand")
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_alias("mapgen_sandstone", "default:sandstone")
|
2019-03-08 08:06:57 +01:00
|
|
|
minetest.register_alias("mapgen_cobble", "default:cobble")
|
|
|
|
minetest.register_alias("mapgen_gravel", "default:gravel")
|
|
|
|
minetest.register_alias("mapgen_mossycobble", "default:cobble")
|
|
|
|
minetest.register_alias("mapgen_dirt", "default:dirt")
|
|
|
|
minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
|
|
|
|
minetest.register_alias("mapgen_sand", "default:sand")
|
|
|
|
minetest.register_alias("mapgen_snow", "air")
|
|
|
|
--minetest.register_alias("mapgen_snowblock", "default:dirt_with_dry_grass")
|
|
|
|
--minetest.register_alias("mapgen_dirt_with_snow", "default:dry_dirt")
|
|
|
|
minetest.register_alias("mapgen_snowblock", "default:air")
|
|
|
|
minetest.register_alias("mapgen_dirt_with_snow", "default:dirt_with_grass")
|
|
|
|
minetest.register_alias("mapgen_ice", "default:water_source")
|
|
|
|
minetest.register_alias("mapgen_tree", "default:tree")
|
|
|
|
minetest.register_alias("mapgen_leaves", "default:leaves")
|
|
|
|
minetest.register_alias("mapgen_apple", "default:apple")
|
|
|
|
minetest.register_alias("mapgen_jungletree", "default:tree_oak")
|
|
|
|
minetest.register_alias("mapgen_jungleleaves", "default:leaves_oak")
|
|
|
|
minetest.register_alias("mapgen_junglegrass", "default:tall_grass")
|
|
|
|
minetest.register_alias("mapgen_pine_tree", "default:tree_birch")
|
|
|
|
minetest.register_alias("mapgen_pine_needles", "default:leaves_birch")
|
|
|
|
--minetest.register_alias("mapgen_pine_tree", "air")
|
|
|
|
--minetest.register_alias("mapgen_pine_needles", "air")
|
2017-05-17 22:54:33 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_alias("mapgen_water_source", "default:water_source")
|
|
|
|
minetest.register_alias("mapgen_river_water_source", "default:river_water_source")
|
2017-05-17 22:54:33 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_alias("mapgen_lava_source", "default:water_source")
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
-- Biome setup
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.clear_registered_biomes()
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2019-03-08 08:06:57 +01:00
|
|
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
|
|
|
|
|
|
|
if mg_name ~= "v6" then
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2015-10-03 22:36:01 +02:00
|
|
|
name = "Marsh",
|
2015-10-02 02:10:41 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
depth_filler = 0,
|
|
|
|
depth_top = 1,
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
y_min = 2,
|
2015-10-05 20:25:11 +02:00
|
|
|
y_max = 6,
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
heat_point = 35,
|
|
|
|
humidity_point = 55,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2015-10-03 22:36:01 +02:00
|
|
|
name = "Swamp",
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
node_top = "default:dirt_with_swamp_grass",
|
|
|
|
node_filler = "default:swamp_dirt",
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
depth_filler = 7,
|
|
|
|
depth_top = 1,
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2015-10-03 22:36:01 +02:00
|
|
|
y_min = 2,
|
2015-10-05 20:25:11 +02:00
|
|
|
y_max = 7,
|
2015-10-03 22:36:01 +02:00
|
|
|
|
|
|
|
heat_point = 30,
|
|
|
|
humidity_point = 42,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-09-01 22:52:01 +02:00
|
|
|
{
|
|
|
|
name = "Deep Forest",
|
2015-10-02 19:41:35 +02:00
|
|
|
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
|
|
|
depth_filler = 6,
|
|
|
|
depth_top = 1,
|
|
|
|
|
2015-10-05 20:18:49 +02:00
|
|
|
y_min = 30,
|
|
|
|
y_max = 40,
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2015-10-05 20:18:49 +02:00
|
|
|
heat_point = 33,
|
2015-10-02 19:41:35 +02:00
|
|
|
humidity_point = 40,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 22:52:01 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
name = "Forest",
|
|
|
|
|
2015-10-02 19:41:35 +02:00
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
|
|
|
depth_filler = 6,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = 2,
|
|
|
|
y_max = 200,
|
|
|
|
|
|
|
|
heat_point = 35,
|
|
|
|
humidity_point = 40,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-17 00:09:41 +02:00
|
|
|
{
|
|
|
|
name = "Grove",
|
|
|
|
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
|
|
|
depth_filler = 4,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 32000,
|
|
|
|
|
|
|
|
heat_point = 40,
|
|
|
|
humidity_point = 38,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-17 00:09:41 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
name = "Wilderness",
|
|
|
|
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
2015-10-18 02:31:07 +02:00
|
|
|
depth_filler = 6,
|
2015-10-16 22:11:21 +02:00
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = 3,
|
|
|
|
y_max = 32000,
|
|
|
|
|
2015-10-20 23:59:51 +02:00
|
|
|
heat_point = 46,
|
|
|
|
humidity_point = 35,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
name = "Grassland",
|
2015-10-02 19:41:35 +02:00
|
|
|
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
2015-10-18 02:31:07 +02:00
|
|
|
depth_filler = 4,
|
2015-10-02 19:41:35 +02:00
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = 3,
|
2015-10-20 18:29:44 +02:00
|
|
|
y_max = 20,
|
|
|
|
|
|
|
|
heat_point = 50,
|
2015-10-20 23:59:51 +02:00
|
|
|
humidity_point = 33,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-20 18:29:44 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-20 18:29:44 +02:00
|
|
|
{
|
|
|
|
name = "Orchard",
|
|
|
|
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
|
|
|
depth_filler = 4,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = 21,
|
2015-10-02 19:41:35 +02:00
|
|
|
y_max = 32000,
|
|
|
|
|
|
|
|
heat_point = 50,
|
2015-10-20 23:59:51 +02:00
|
|
|
humidity_point = 33,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-02 02:10:41 +02:00
|
|
|
{
|
2015-10-03 20:57:35 +02:00
|
|
|
name = "Chaparral",
|
2015-10-02 19:41:35 +02:00
|
|
|
|
|
|
|
node_top = "default:dirt_with_dry_grass",
|
2015-10-04 00:17:00 +02:00
|
|
|
node_filler = "default:dry_dirt",
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2015-10-03 20:57:35 +02:00
|
|
|
depth_filler = 0,
|
2015-10-02 19:41:35 +02:00
|
|
|
depth_top = 1,
|
|
|
|
|
2015-10-03 20:57:35 +02:00
|
|
|
y_min = 56,
|
2015-10-02 19:41:35 +02:00
|
|
|
y_max = 32000,
|
|
|
|
|
|
|
|
heat_point = 60,
|
|
|
|
humidity_point = 30,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-02 02:10:41 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-03 20:57:35 +02:00
|
|
|
{
|
|
|
|
name = "Savanna",
|
|
|
|
|
|
|
|
node_top = "default:dirt_with_dry_grass",
|
2015-10-04 00:17:00 +02:00
|
|
|
node_filler = "default:dry_dirt",
|
2015-10-03 20:57:35 +02:00
|
|
|
|
|
|
|
depth_filler = 2,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = 1,
|
|
|
|
y_max = 55,
|
|
|
|
|
|
|
|
heat_point = 60,
|
|
|
|
humidity_point = 25,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 20:57:35 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
name = "Desert",
|
2015-10-02 19:41:35 +02:00
|
|
|
|
|
|
|
node_top = "default:sand",
|
|
|
|
node_filler = "default:sandstone",
|
|
|
|
|
|
|
|
depth_filler = 8,
|
|
|
|
depth_top = 3,
|
|
|
|
|
2015-10-03 20:57:35 +02:00
|
|
|
y_min = 1,
|
2015-10-02 19:41:35 +02:00
|
|
|
y_max = 32000,
|
|
|
|
|
2015-10-21 22:59:22 +02:00
|
|
|
heat_point = 75,
|
2015-10-02 19:41:35 +02:00
|
|
|
humidity_point = 20,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-04 00:17:00 +02:00
|
|
|
{
|
|
|
|
name = "Wasteland",
|
|
|
|
|
|
|
|
node_top = "default:dry_dirt",
|
|
|
|
node_filler = "default:sandstone",
|
|
|
|
|
|
|
|
depth_filler = 3,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
|
|
|
|
|
|
|
heat_point = 80,
|
|
|
|
humidity_point = 20,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-04 00:17:00 +02:00
|
|
|
|
2015-10-02 19:41:35 +02:00
|
|
|
-- Oceans
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-02 19:41:35 +02:00
|
|
|
{
|
|
|
|
name = "Grassland Ocean",
|
|
|
|
|
|
|
|
node_top = "default:sand",
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
|
|
|
|
depth_filler = 1,
|
|
|
|
depth_top = 3,
|
|
|
|
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 2,
|
|
|
|
|
|
|
|
heat_point = 50,
|
|
|
|
humidity_point = 35,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-05 21:14:47 +02:00
|
|
|
{
|
|
|
|
name = "Gravel Beach",
|
|
|
|
|
|
|
|
node_top = "default:gravel",
|
|
|
|
node_filler = "default:sand",
|
|
|
|
|
|
|
|
depth_filler = 2,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = -5,
|
|
|
|
y_max = 1,
|
|
|
|
|
|
|
|
heat_point = 59,
|
|
|
|
humidity_point = 31,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-05 21:14:47 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_biome(
|
2015-10-02 19:41:35 +02:00
|
|
|
{
|
|
|
|
name = "Savanna Ocean",
|
|
|
|
|
|
|
|
node_top = "default:dirt",
|
|
|
|
node_filler = "dfault:dirt",
|
|
|
|
|
|
|
|
depth_filler = 0,
|
|
|
|
depth_top = 1,
|
|
|
|
|
|
|
|
y_min = -32000,
|
2015-10-03 20:57:35 +02:00
|
|
|
y_max = 0,
|
2015-10-02 19:41:35 +02:00
|
|
|
|
|
|
|
heat_point = 60,
|
|
|
|
humidity_point = 30,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2019-03-08 08:06:57 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
-- Water
|
|
|
|
|
|
|
|
minetest.register_ore( -- Springs
|
|
|
|
{
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = "default:water_source",
|
|
|
|
wherein = "default:dirt_with_grass",
|
|
|
|
biomes = {"Grassland"},
|
|
|
|
clust_scarcity = 26*26*26,
|
|
|
|
clust_num_ores = 1,
|
|
|
|
clust_size = 1,
|
|
|
|
y_min = 20,
|
|
|
|
y_max = 31000,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Pools
|
|
|
|
{
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = "default:water_source",
|
|
|
|
wherein = "default:dirt_with_grass",
|
|
|
|
biomes = {"Wilderness"},
|
|
|
|
clust_scarcity = 32*32*32,
|
|
|
|
clust_num_ores = 20,
|
|
|
|
clust_size = 6,
|
|
|
|
y_min = 10,
|
|
|
|
y_max = 30,
|
|
|
|
})
|
|
|
|
if mg_name ~= "v6" then
|
|
|
|
minetest.register_ore( -- Swamp
|
|
|
|
{
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = "default:swamp_water_source",
|
|
|
|
wherein = {"default:dirt_with_swamp_grass", "default:swamp_dirt"},
|
|
|
|
biomes = {"Swamp"},
|
|
|
|
clust_scarcity = 14*14*14,
|
|
|
|
clust_num_ores = 10,
|
|
|
|
clust_size = 4,
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = 31000,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Marsh
|
|
|
|
{
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = "default:swamp_water_source",
|
|
|
|
wherein = {"default:dirt_with_grass", "default:dirt"},
|
|
|
|
biomes = {"Marsh"},
|
|
|
|
clust_scarcity = 8*8*8,
|
|
|
|
clust_num_ores = 10,
|
|
|
|
clust_size = 6,
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = 31000,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Tree decorations
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2019-03-08 08:06:57 +01:00
|
|
|
if mg_name ~= "v6" then
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
2015-10-02 19:41:35 +02:00
|
|
|
fill_ratio = 0.004,
|
|
|
|
biomes = {"Forest"},
|
2015-09-01 17:15:24 +02:00
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
replacements = {
|
|
|
|
["default:leaves"] = "default:leaves_birch",
|
|
|
|
["default:tree"] = "default:tree_birch",
|
|
|
|
["default:apple"] = "air"
|
|
|
|
},
|
|
|
|
schematic = minetest.get_modpath("default")
|
|
|
|
.. "/schematics/default_squaretree.mts",
|
2015-09-01 17:15:24 +02:00
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
2015-09-01 23:29:41 +02:00
|
|
|
place_on = {"default:dirt_with_grass"},
|
2015-09-01 17:15:24 +02:00
|
|
|
sidelen = 16,
|
2015-10-20 23:59:51 +02:00
|
|
|
fill_ratio = 0.007,
|
2015-10-20 18:29:44 +02:00
|
|
|
biomes = {"Orchard"},
|
2015-09-01 17:15:24 +02:00
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
2019-09-04 16:30:40 +02:00
|
|
|
.. "/schematics/default_appletree.mts",
|
2015-10-02 19:41:35 +02:00
|
|
|
y_min = 10,
|
2015-09-01 23:29:41 +02:00
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 23:29:41 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 23:29:41 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
2015-10-02 19:41:35 +02:00
|
|
|
fill_ratio = 0.009,
|
|
|
|
biomes = {"Forest", "Deep Forest"},
|
2015-09-01 23:29:41 +02:00
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
2019-09-04 16:30:40 +02:00
|
|
|
.. "/schematics/default_appletree.mts",
|
2015-09-01 17:15:24 +02:00
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
2015-10-02 19:41:35 +02:00
|
|
|
fill_ratio = 0.008,
|
2015-09-01 17:15:24 +02:00
|
|
|
biomes = {"Forest"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
|
|
|
.. "/schematics/default_megatree.mts",
|
2015-09-01 17:15:24 +02:00
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2019-09-12 15:29:57 +02:00
|
|
|
name = "default:gigatree",
|
2015-09-01 17:15:24 +02:00
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
2015-10-05 20:25:11 +02:00
|
|
|
fill_ratio = 0.023,
|
2015-10-02 19:41:35 +02:00
|
|
|
biomes = {"Deep Forest"},
|
2015-09-01 17:15:24 +02:00
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
|
|
|
.. "/schematics/default_gigatree.mts",
|
2015-09-01 17:15:24 +02:00
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.004,
|
|
|
|
biomes = {"Wilderness"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
replacements = {
|
|
|
|
["default:apple"] = "air",
|
|
|
|
},
|
|
|
|
schematic = minetest.get_modpath("default")
|
2019-09-04 16:30:40 +02:00
|
|
|
.. "/schematics/default_appletree.mts",
|
2015-10-16 22:11:21 +02:00
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
2015-10-17 00:09:41 +02:00
|
|
|
fill_ratio = 0.004,
|
2015-10-16 22:11:21 +02:00
|
|
|
biomes = {"Wilderness"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
2019-09-04 16:30:40 +02:00
|
|
|
.. "/schematics/default_oaktree.mts",
|
2015-10-17 00:09:41 +02:00
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.004,
|
2015-10-17 00:09:41 +02:00
|
|
|
biomes = {"Grove"},
|
2015-10-16 22:11:21 +02:00
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
|
|
|
.. "/schematics/default_talltree.mts",
|
2015-10-17 00:09:41 +02:00
|
|
|
y_min = 0,
|
2015-10-16 22:11:21 +02:00
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2019-03-08 08:06:57 +01:00
|
|
|
end
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Papyrus decorations
|
2015-10-02 19:41:35 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
2015-09-24 00:49:08 +02:00
|
|
|
place_on = {"default:sand", "default:dirt", "default:dirt_with_grass"},
|
|
|
|
spawn_by = {"default:water_source", "default:water_flowing"},
|
|
|
|
num_spawn_by = 1,
|
2015-09-01 17:15:24 +02:00
|
|
|
sidelen = 16,
|
2015-09-24 00:49:08 +02:00
|
|
|
fill_ratio = 0.08,
|
2015-10-16 22:11:21 +02:00
|
|
|
biomes = {"Grassland Ocean", "Grassland", "Forest", "Deep Forest", "Wilderness"},
|
2015-09-24 00:49:08 +02:00
|
|
|
decoration = {"default:papyrus"},
|
|
|
|
height = 2,
|
2015-10-16 22:27:24 +02:00
|
|
|
y_max = 3,
|
2015-09-24 00:49:08 +02:00
|
|
|
y_min = 0,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-24 00:49:08 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Flower decorations
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-18 02:31:07 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.04,
|
2015-10-20 23:59:51 +02:00
|
|
|
biomes = {"Grassland", "Wilderness", "Orchard"},
|
2015-10-18 02:31:07 +02:00
|
|
|
decoration = {"default:flower"},
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-18 02:31:07 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Grass decorations
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2019-03-08 08:06:57 +01:00
|
|
|
if mg_name ~= "v6" then
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
2015-09-01 23:29:41 +02:00
|
|
|
fill_ratio = 0.18,
|
2015-10-20 23:59:51 +02:00
|
|
|
biomes = {"Grassland", "Orchard"},
|
2015-09-01 23:29:41 +02:00
|
|
|
decoration = {"default:grass"},
|
2015-10-20 23:59:51 +02:00
|
|
|
y_min = 10,
|
2015-09-01 23:29:41 +02:00
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2019-03-08 08:06:57 +01:00
|
|
|
end
|
2015-09-01 23:29:41 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-03 22:36:01 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_swamp_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.04,
|
|
|
|
biomes = {"Swamp"},
|
|
|
|
decoration = {"default:swamp_grass"},
|
|
|
|
y_min = 2,
|
|
|
|
y_max = 40,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-02 02:10:41 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_dry_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.07,
|
2015-10-03 20:57:35 +02:00
|
|
|
biomes = {"Desert", "Savanna", "Chaparral"},
|
2015-10-02 02:10:41 +02:00
|
|
|
decoration = {"default:dry_grass"},
|
2015-10-02 19:41:35 +02:00
|
|
|
y_min = 10,
|
|
|
|
y_max = 500,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-02 02:10:41 +02:00
|
|
|
|
2019-03-08 08:06:57 +01:00
|
|
|
if mg_name ~= "v6" then
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 23:29:41 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.08,
|
|
|
|
biomes = {"Forest", "Deep Forest"},
|
2015-09-01 17:15:24 +02:00
|
|
|
decoration = {"default:grass"},
|
|
|
|
y_min = 0,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.08,
|
2015-10-20 23:59:51 +02:00
|
|
|
biomes = {"Forest", "Marsh", "Grove"},
|
2015-09-01 17:15:24 +02:00
|
|
|
decoration = {"default:tall_grass"},
|
|
|
|
y_min = 0,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 23:29:41 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.15,
|
|
|
|
biomes = {"Deep Forest"},
|
|
|
|
decoration = {"default:tall_grass"},
|
|
|
|
y_min = 0,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2019-03-08 08:06:57 +01:00
|
|
|
end
|
2015-09-01 23:29:41 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.16,
|
|
|
|
biomes = {"Wilderness"},
|
|
|
|
decoration = {"default:grass"},
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.12,
|
|
|
|
biomes = {"Wilderness"},
|
|
|
|
decoration = {"default:tall_grass"},
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Thistle decorations
|
2015-10-20 18:29:44 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-20 18:29:44 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.024,
|
|
|
|
biomes = {"Wilderness"},
|
|
|
|
decoration = {"default:thistle"},
|
|
|
|
height = 2,
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-20 18:29:44 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Fern decorations
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dirt_with_grass",
|
|
|
|
sidelen = 16,
|
2015-10-17 00:09:41 +02:00
|
|
|
fill_ratio = 0.02,
|
|
|
|
biomes = {"Wilderness", "Grove"},
|
2015-10-16 22:11:21 +02:00
|
|
|
decoration = {"default:fern"},
|
|
|
|
y_min = -32000,
|
|
|
|
y_max = 32000,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Cactus decorations
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:sand"},
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.004,
|
|
|
|
biomes = {"Desert"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default") .. "/schematics/default_cactus.mts",
|
2015-10-02 19:41:35 +02:00
|
|
|
y_min = 10,
|
|
|
|
y_max = 500,
|
2015-09-01 17:15:24 +02:00
|
|
|
rotation = "random",
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Shrub decorations
|
2015-10-03 20:57:35 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-03 20:57:35 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.005,
|
|
|
|
biomes = {"Savanna", "Chaparral"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
replacements = {["default:leaves"] = "default:dry_leaves"},
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default") .. "/schematics/default_shrub.mts",
|
2015-10-03 20:57:35 +02:00
|
|
|
y_min = 3,
|
|
|
|
y_max = 32000,
|
|
|
|
rotation = "0",
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 20:57:35 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-03 20:57:35 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.06,
|
|
|
|
biomes = {"Chaparral"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
|
|
|
replacements = {["default:leaves"] = "default:dry_leaves"},
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default") .. "/schematics/default_bush.mts",
|
2017-05-17 23:48:21 +02:00
|
|
|
y_min = 0,
|
2015-10-03 20:57:35 +02:00
|
|
|
y_max = 32000,
|
|
|
|
rotation = "0",
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 20:57:35 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-16 22:11:21 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"default:dirt_with_grass"},
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.004,
|
2015-10-17 00:09:41 +02:00
|
|
|
biomes = {"Wilderness", "Grove"},
|
2015-10-16 22:11:21 +02:00
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default") .. "/schematics/default_bush.mts",
|
2015-10-16 22:11:21 +02:00
|
|
|
y_min = 3,
|
|
|
|
y_max = 32000,
|
|
|
|
rotation = "0",
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-16 22:11:21 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Rock decorations
|
2015-10-04 00:17:00 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-04 00:17:00 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
2015-10-05 21:14:47 +02:00
|
|
|
place_on = {"default:dry_dirt"},
|
2015-10-04 00:17:00 +02:00
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.006,
|
|
|
|
biomes = {"Wasteland"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
|
|
|
.. "/schematics/default_small_rock.mts",
|
2019-09-05 22:21:31 +02:00
|
|
|
replacements = {{ "default:dirt", "default:dry_dirt" }},
|
2019-08-28 22:03:19 +02:00
|
|
|
y_min = 1,
|
2015-10-04 00:17:00 +02:00
|
|
|
y_max = 32000,
|
|
|
|
rotation = "random",
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-04 00:17:00 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-04 00:17:00 +02:00
|
|
|
{
|
|
|
|
deco_type = "schematic",
|
2015-10-05 21:14:47 +02:00
|
|
|
place_on = {"default:dry_dirt"},
|
2015-10-04 00:17:00 +02:00
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.004,
|
|
|
|
biomes = {"Wasteland"},
|
|
|
|
flags = "place_center_x, place_center_z",
|
2017-05-17 17:57:14 +02:00
|
|
|
schematic = minetest.get_modpath("default")
|
|
|
|
.. "/schematics/default_large_rock.mts",
|
2019-09-05 22:21:31 +02:00
|
|
|
replacements = {{ "default:dirt", "default:dry_dirt" }},
|
2019-08-28 22:03:19 +02:00
|
|
|
y_min = 1,
|
2015-10-04 00:17:00 +02:00
|
|
|
y_max = 32000,
|
|
|
|
rotation = "random",
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-04 00:17:00 +02:00
|
|
|
|
2017-05-17 23:48:21 +02:00
|
|
|
-- Sulfur decorations
|
|
|
|
|
|
|
|
minetest.register_decoration(
|
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = "default:dry_dirt",
|
|
|
|
sidelen = 16,
|
|
|
|
fill_ratio = 0.005,
|
|
|
|
biomes = {"Wasteland"},
|
|
|
|
decoration = {"default:stone_with_sulfur"},
|
|
|
|
y_min = 2,
|
|
|
|
y_max = 14,
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Clam decorations
|
2015-10-05 21:14:47 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_decoration(
|
2015-10-05 21:14:47 +02:00
|
|
|
{
|
|
|
|
deco_type = "simple",
|
|
|
|
place_on = {"default:sand", "default:gravel"},
|
|
|
|
sidelen = 16,
|
2015-10-07 22:56:45 +02:00
|
|
|
fill_ratio = 0.02,
|
2015-10-05 21:14:47 +02:00
|
|
|
biomes = {"Grassland Ocean", "Gravel Beach"},
|
|
|
|
decoration = {"default:clam"},
|
2015-10-07 22:56:45 +02:00
|
|
|
y_min = 0,
|
2015-10-05 21:14:47 +02:00
|
|
|
y_max = 1,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-05 21:14:47 +02:00
|
|
|
|
2017-05-17 23:48:21 +02:00
|
|
|
-- Graphite ore
|
|
|
|
|
|
|
|
minetest.register_ore( -- Common above sea level mainly
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_graphite",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 9*9*9,
|
|
|
|
clust_num_ores = 8,
|
|
|
|
clust_size = 8,
|
|
|
|
y_min = -8,
|
|
|
|
y_max = 32,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Slight scattering deeper down
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_graphite",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 13*13*13,
|
|
|
|
clust_num_ores = 6,
|
|
|
|
clust_size = 8,
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = -32,
|
|
|
|
})
|
2015-10-05 21:14:47 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Coal ore
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_ore( -- Even distribution
|
2015-10-03 22:36:01 +02:00
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_coal",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 10*10*10,
|
2017-05-17 22:54:33 +02:00
|
|
|
clust_num_ores = 8,
|
2015-10-03 22:36:01 +02:00
|
|
|
clust_size = 4,
|
2015-10-16 22:27:24 +02:00
|
|
|
y_min = -31000,
|
|
|
|
y_max = 32,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_ore( -- Dense sheet
|
2015-10-03 22:36:01 +02:00
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_coal",
|
|
|
|
wherein = "default:stone",
|
2017-05-17 22:54:33 +02:00
|
|
|
clust_scarcity = 7*7*7,
|
|
|
|
clust_num_ores = 10,
|
|
|
|
clust_size = 8,
|
|
|
|
y_min = -40,
|
2015-10-16 22:27:24 +02:00
|
|
|
y_max = -32,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_ore( -- Deep ore sheet
|
2015-10-03 22:36:01 +02:00
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_coal",
|
|
|
|
wherein = "default:stone",
|
2017-05-17 22:54:33 +02:00
|
|
|
clust_scarcity = 6*6*6,
|
|
|
|
clust_num_ores = 26,
|
|
|
|
clust_size = 12,
|
|
|
|
y_min = -130,
|
|
|
|
y_max = -120,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Iron ore
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_ore( -- Even distribution
|
2015-10-03 22:36:01 +02:00
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_iron",
|
|
|
|
wherein = "default:stone",
|
2017-05-17 22:54:33 +02:00
|
|
|
clust_scarcity = 12*12*12,
|
|
|
|
clust_num_ores = 4,
|
|
|
|
clust_size = 3,
|
2015-10-16 22:27:24 +02:00
|
|
|
y_min = -31000,
|
2017-05-17 22:54:33 +02:00
|
|
|
y_max = -8,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_ore( -- Dense sheet
|
2015-10-03 22:36:01 +02:00
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_iron",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 8*8*8,
|
|
|
|
clust_num_ores = 20,
|
2017-05-17 22:54:33 +02:00
|
|
|
clust_size = 12,
|
|
|
|
y_min = -32,
|
|
|
|
y_max = -24,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Dense sheet
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_iron",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 7*7*7,
|
|
|
|
clust_num_ores = 17,
|
|
|
|
clust_size = 6,
|
|
|
|
y_min = -80,
|
|
|
|
y_max = -60,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Tin ore
|
|
|
|
|
|
|
|
minetest.register_ore( -- Even distribution
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_tin",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 14*14*14,
|
|
|
|
clust_num_ores = 8,
|
|
|
|
clust_size = 4,
|
2015-10-16 22:27:24 +02:00
|
|
|
y_min = -31000,
|
2017-05-17 22:54:33 +02:00
|
|
|
y_max = -100,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Dense sheet
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_tin",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 7*7*7,
|
|
|
|
clust_num_ores = 10,
|
|
|
|
clust_size = 6,
|
|
|
|
y_min = -150,
|
|
|
|
y_max = -140,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Copper ore
|
|
|
|
|
|
|
|
minetest.register_ore( -- Begin sheet
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_copper",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 6*6*6,
|
|
|
|
clust_num_ores = 12,
|
|
|
|
clust_size = 5,
|
|
|
|
y_min = -90,
|
|
|
|
y_max = -80,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Rare even distribution
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_copper",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 13*13*13,
|
|
|
|
clust_num_ores = 10,
|
|
|
|
clust_size = 5,
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = -90,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore( -- Large clusters
|
|
|
|
{
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_copper",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 8*8*8,
|
|
|
|
clust_num_ores = 22,
|
|
|
|
clust_size = 10,
|
|
|
|
y_min = -230,
|
|
|
|
y_max = -180,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
default.log("mapgen", "loaded")
|