2012-04-06 14:09:23 -04:00
|
|
|
--
|
|
|
|
-- Aliases for map generator outputs
|
|
|
|
--
|
|
|
|
|
2015-06-07 00:36:40 -04:00
|
|
|
|
2012-04-06 14:09:23 -04:00
|
|
|
minetest.register_alias("mapgen_stone", "default:stone")
|
|
|
|
minetest.register_alias("mapgen_dirt", "default:dirt")
|
2015-06-07 00:36:40 -04:00
|
|
|
minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
|
2012-04-06 14:09:23 -04:00
|
|
|
minetest.register_alias("mapgen_sand", "default:sand")
|
2015-06-07 00:36:40 -04:00
|
|
|
minetest.register_alias("mapgen_water_source", "default:water_source")
|
2012-04-06 14:09:23 -04:00
|
|
|
minetest.register_alias("mapgen_lava_source", "default:lava_source")
|
2015-06-07 00:36:40 -04:00
|
|
|
minetest.register_alias("mapgen_gravel", "default:gravel")
|
|
|
|
|
|
|
|
minetest.register_alias("mapgen_tree", "default:tree")
|
|
|
|
minetest.register_alias("mapgen_leaves", "default:leaves")
|
|
|
|
minetest.register_alias("mapgen_apple", "default:apple")
|
2012-04-06 14:09:23 -04:00
|
|
|
minetest.register_alias("mapgen_junglegrass", "default:junglegrass")
|
2015-06-07 00:36:40 -04:00
|
|
|
|
|
|
|
minetest.register_alias("mapgen_cobble", "default:cobble")
|
2013-09-06 15:46:22 -04:00
|
|
|
minetest.register_alias("mapgen_stair_cobble", "stairs:stair_cobble")
|
2015-06-07 00:36:40 -04:00
|
|
|
minetest.register_alias("mapgen_mossycobble", "default:mossycobble")
|
|
|
|
|
2012-04-06 14:09:23 -04:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Ore generation
|
|
|
|
--
|
|
|
|
|
2015-06-07 00:36:40 -04:00
|
|
|
|
|
|
|
-- Blob ore first to avoid other ores inside blobs
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "blob",
|
|
|
|
ore = "default:clay",
|
|
|
|
wherein = {"default:sand"},
|
|
|
|
clust_scarcity = 24*24*24,
|
|
|
|
clust_size = 7,
|
|
|
|
y_min = -15,
|
|
|
|
y_max = 0,
|
2015-12-05 08:00:11 -05:00
|
|
|
noise_threshold = 0,
|
2015-06-07 00:36:40 -04:00
|
|
|
noise_params = {
|
|
|
|
offset=0.35,
|
|
|
|
scale=0.2,
|
|
|
|
spread={x=5, y=5, z=5},
|
|
|
|
seed=-316,
|
|
|
|
octaves=1,
|
|
|
|
persist=0.5
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-03-24 16:20:36 -04:00
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_coal",
|
|
|
|
wherein = "default:stone",
|
|
|
|
clust_scarcity = 8*8*8,
|
2015-06-07 00:36:40 -04:00
|
|
|
clust_num_ores = 8,
|
2013-03-24 16:20:36 -04:00
|
|
|
clust_size = 3,
|
2015-06-07 00:36:40 -04:00
|
|
|
y_min = -31000,
|
|
|
|
y_max = 64,
|
2013-03-24 16:20:36 -04:00
|
|
|
})
|
2012-04-06 14:09:23 -04:00
|
|
|
|
2013-03-24 16:20:36 -04:00
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_iron",
|
|
|
|
wherein = "default:stone",
|
2015-06-07 00:36:40 -04:00
|
|
|
clust_scarcity = 12*12*12,
|
|
|
|
clust_num_ores = 3,
|
|
|
|
clust_size = 2,
|
|
|
|
y_min = -15,
|
|
|
|
y_max = 2,
|
2013-03-24 16:20:36 -04:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_iron",
|
|
|
|
wherein = "default:stone",
|
2015-06-07 00:36:40 -04:00
|
|
|
clust_scarcity = 9*9*9,
|
2013-03-24 16:20:36 -04:00
|
|
|
clust_num_ores = 5,
|
|
|
|
clust_size = 3,
|
2015-06-07 00:36:40 -04:00
|
|
|
y_min = -63,
|
|
|
|
y_max = -16,
|
2013-03-24 16:20:36 -04:00
|
|
|
})
|
2013-03-12 17:18:45 -04:00
|
|
|
|
2013-03-24 16:20:36 -04:00
|
|
|
minetest.register_ore({
|
|
|
|
ore_type = "scatter",
|
|
|
|
ore = "default:stone_with_iron",
|
|
|
|
wherein = "default:stone",
|
2015-06-07 00:36:40 -04:00
|
|
|
clust_scarcity = 7*7*7,
|
2013-03-24 16:20:36 -04:00
|
|
|
clust_num_ores = 5,
|
|
|
|
clust_size = 3,
|
2015-06-07 00:36:40 -04:00
|
|
|
y_min = -31000,
|
|
|
|
y_max = -64,
|
2013-03-24 16:20:36 -04:00
|
|
|
})
|
2013-03-23 19:40:15 -04:00
|
|
|
|
2012-04-06 14:09:23 -04:00
|
|
|
|
2015-01-01 01:47:07 -05:00
|
|
|
--
|
2015-06-07 00:36:40 -04:00
|
|
|
-- Register biomes for biome API
|
2015-01-01 01:47:07 -05:00
|
|
|
--
|
|
|
|
|
2015-06-07 00:36:40 -04:00
|
|
|
|
|
|
|
minetest.clear_registered_biomes()
|
2015-07-13 15:25:22 -04:00
|
|
|
minetest.clear_registered_decorations()
|
2015-06-07 00:36:40 -04:00
|
|
|
|
2015-01-01 01:47:07 -05:00
|
|
|
minetest.register_biome({
|
2015-06-07 00:36:40 -04:00
|
|
|
name = "default:grassland",
|
|
|
|
--node_dust = "",
|
|
|
|
node_top = "default:dirt_with_grass",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:dirt",
|
|
|
|
depth_filler = 1,
|
|
|
|
--node_stone = "",
|
|
|
|
--node_water_top = "",
|
|
|
|
--depth_water_top = ,
|
|
|
|
--node_water = "",
|
|
|
|
y_min = 5,
|
|
|
|
y_max = 31000,
|
|
|
|
heat_point = 50,
|
|
|
|
humidity_point = 50,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_biome({
|
|
|
|
name = "default:grassland_ocean",
|
|
|
|
--node_dust = "",
|
|
|
|
node_top = "default:sand",
|
|
|
|
depth_top = 1,
|
|
|
|
node_filler = "default:sand",
|
|
|
|
depth_filler = 2,
|
|
|
|
--node_stone = "",
|
|
|
|
--node_water_top = "",
|
|
|
|
--depth_water_top = ,
|
|
|
|
--node_water = "",
|
|
|
|
y_min = -31000,
|
|
|
|
y_max = 4,
|
|
|
|
heat_point = 50,
|
2015-01-01 01:47:07 -05:00
|
|
|
humidity_point = 50,
|
|
|
|
})
|
|
|
|
|