2016-02-25 17:12:42 +01:00

415 lines
8.8 KiB
Lua

minetest.register_alias("mapgen_dirt", "default:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "default:grass")
minetest.register_alias("mapgen_water_source", "default:water_source")
minetest.register_alias("mapgen_river_water_source", "default:water_source")
minetest.register_alias("mapgen_desert_stone", "default:desert_stone")
minetest.register_alias("mapgen_sand", "default:sand")
minetest.register_alias("mapgen_desert_sand", "default:sand")
minetest.register_alias("mapgen_tree", "default:log_1")
minetest.register_alias("mapgen_leaves", "default:leaves_1")
minetest.register_alias("mapgen_dirt_with_snow", "default:dirt_with_snow")
minetest.register_alias("mapgen_snowblock", "default:snow")
minetest.register_alias("mapgen_snow", "default:snow")
minetest.register_alias("mapgen_ice", "default:ice")
minetest.register_alias("mapgen_sandstone", "default:desert_stone")
minetest.register_alias("mapgen_gravel", "default:gravel")
minetest.register_alias("mapgen_stone", "default:stone")
minetest.register_alias("mapgen_cobble", "default:stonebrick")
minetest.register_alias("mapgen_stair_cobble", "default:stonebrick")
minetest.register_alias("mapgen_mossycobble", "default:mossy_stonebrick")
minetest.register_alias("mapgen_sandstonebrick", "default:stonebrick")
minetest.register_alias("mapgen_stair_sandstonebrick", "default:stonebrick")
minetest.register_biome({
name = "tundra",
node_top = "default:dirt_with_snow",
node_filler = "default:dirt",
depth_filler = 2,
depth_top = 1,
y_min = 1,
y_max = 55,
heat_point = 15,
humidity_point = 35,
})
minetest.register_biome({
name = "jungle",
node_top = "default:wet_grass",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 0,
y_min = 6,
y_max = 31000,
heat_point = 20,
humidity_point = 40,
})
minetest.register_biome({
name = "grassland",
node_top = "default:grass",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 0,
y_min = 6,
y_max = 31000,
heat_point = 45,
humidity_point = 30,
})
minetest.register_biome({
name = "forest",
node_top = "default:grass",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 0,
y_min = 6,
y_max = 31000,
heat_point = 25,
humidity_point = 35,
})
minetest.register_biome({
name = "beach",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 2,
y_min = -112,
y_max = 5,
heat_point = 45,
humidity_point = 30,
})
minetest.register_biome({
name = "swamp",
node_top = "default:dirt",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 2,
node_stone = "default:wet_stone",
y_min = -3,
y_max = 4,
heat_point = 95,
humidity_point = 90,
})
minetest.register_biome({
name = "savanna",
node_top = "default:dry_grass",
node_filler = "default:dirt",
depth_filler = 2,
depth_top = 1,
y_min = 1,
y_max = 55,
heat_point = 60,
humidity_point = 25,
})
minetest.register_biome({
name = "desert",
node_top = "default:sand",
node_filler = "default:desert_stone",
depth_filler = 2,
depth_top = 1,
y_min = 1,
y_max = 256,
heat_point = 80,
humidity_point = 20,
})
-- deco
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.07,
biomes = {
"grassland", "forest"
},
y_min = 0,
y_max = 31000,
decoration = "default:plant_grass",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.07,
biomes = {
"grassland", "forest"
},
y_min = 0,
y_max = 31000,
decoration = "default:plant_grass_2",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.06,
biomes = {
"grassland", "forest"
},
y_min = 0,
y_max = 31000,
decoration = "default:plant_grass_3",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.04,
biomes = {
"grassland"
},
y_min = 0,
y_max = 31000,
decoration = "default:plant_grass_4",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:grass"},
sidelen = 16,
fill_ratio = 0.04,
biomes = {
"grassland"
},
y_min = 0,
y_max = 31000,
decoration = "default:plant_grass_5",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 16,
noise_params = {
offset = -0.015,
scale = 0.05,
spread = {x=200, y=200, z=200},
seed = 329,
octaves = 3,
persist = 0.6
},
biomes = {
"beach"
},
y_min = 0,
y_max = 31000,
decoration = "default:plant_grass",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dry_grass", "default:grass", "default:sand"},
sidelen = 16,
noise_params = {
offset = -0.015,
scale = 0.03,
spread = {x=200, y=200, z=200},
seed = 333,
octaves = 3,
persist = 0.6
},
biomes = {
"beach", "grassland", "forest", "savanna"
},
y_min = 0,
y_max = 31000,
decoration = "default:stones_on_floor",
})
--trees
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.02,
spread = {x = 250, y = 250, z = 250},
seed = 22,
octaves = 3,
persist = 0.66
},
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree1.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"forest"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/tree2.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dirt_with_snow"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"tundra"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/pinetree1.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dry_grass"},
sidelen = 16,
noise_params = {
offset = 0.04,
scale = 0.01,
spread = {x = 250, y = 250, z = 250},
seed = 21,
octaves = 3,
persist = 0.66
},
biomes = {"savanna"},
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/drytree2.mts",
flags = "place_center_x, place_center_z",
})
-- jungle
minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:wet_grass"},
sidelen = 16,
biomes = {"jungle"},
fill_ratio = 0.02,
y_min = 1,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/jungletree.mts",
flags = "place_center_x, place_center_z",
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:wet_grass"},
sidelen = 16,
fill_ratio = 0.03,
biomes = {
"jungle"
},
y_min = 0,
y_max = 31000,
decoration = "default:flower_1",
})
-- ores
minetest.register_ore({
ore_type = "blob",
ore = "default:gravel",
wherein = {"default:stone"},
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_min = -31000,
y_max = 31000,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
scale = 0.2,
spread = {x = 5, y = 5, z = 5},
seed = 766,
octaves = 1,
persist = 0.0
},
})
minetest.register_ore({
ore_type = "scatter",
ore = "default:stone_with_coal",
wherein = "default:stone",
clust_scarcity = 24 * 24 * 24,
clust_num_ores = 27,
clust_size = 6,
y_min = -31000,
y_max = 30,
})
minetest.register_ore({
ore_type = "scatter",
ore = "default:stone_with_iron",
wherein = "default:stone",
clust_scarcity = 9*9*9,
clust_num_ores = 5,
clust_size = 3,
y_min = -31000,
y_max = 2,
})
minetest.register_ore({
ore_type = "scatter",
ore = "default:stone_with_gold",
wherein = "default:stone",
clust_scarcity = 9*9*9,
clust_num_ores = 5,
clust_size = 3,
y_min = -31000,
y_max = -256,
})
minetest.register_ore({
ore_type = "scatter",
ore = "default:stone_with_diamond",
wherein = "default:stone",
clust_scarcity = 36 * 36 * 36,
clust_num_ores = 3,
clust_size = 2,
y_min = -31000,
y_max = -256,
})
minetest.register_ore({
ore_type = "scatter",
ore = "default:stone_with_ruby",
wherein = "default:stone",
clust_scarcity = 17*17*17,
clust_num_ores = 4,
clust_size = 5,
y_min = -31000,
y_max = -256,
})