fantasy_biomes/mapgen.lua

189 lines
5.0 KiB
Lua

minetest.register_biome({
name = "lapis_forest",
node_top = "fantasy_biomes:lapis_dirt",
depth_top = 1,
node_filler = "fantasy_biomes:lapis_dirt",
depth_filler = 1,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 31000,
y_min = 6,
heat_point = 40,
humidity_point = 75,
})
minetest.register_biome({
name = "lapis_forest_dunes",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 2,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
vertical_blend = 1,
y_max = 5,
y_min = 4,
heat_point = 40,
humidity_point = 75,
})
minetest.register_biome({
name = "lapis_forest_ocean",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 3,
y_min = -255,
heat_point = 40,
humidity_point = 75,
})
minetest.register_biome({
name = "lapis_forest_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = -256,
y_min = -31000,
heat_point = 40,
humidity_point = 75,
})
minetest.register_biome({
name = "flower_forest",
node_top = "fantasy_biomes:dirt_with_grass_and_flowers",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 1,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 31000,
y_min = 6,
heat_point = 40,
humidity_point = 85,
})
minetest.register_biome({
name = "flower_forest_dunes",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 2,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
vertical_blend = 1,
y_max = 5,
y_min = 4,
heat_point = 40,
humidity_point = 85,
})
minetest.register_biome({
name = "flower_forest_ocean",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 3,
y_min = -255,
heat_point = 40,
humidity_point = 85,
})
minetest.register_biome({
name = "flower_forest_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = -256,
y_min = -31000,
heat_point = 40,
humidity_point = 85,
})
minetest.register_decoration({
deco_type = "schematic",
place_on = "fantasy_biomes:lapis_dirt",
sidelen = 4,
fill_ratio = 0.001,
biome = {"lapis_forest"},
height = 2,
y_min = 0,
y_max = 32000,
place_offset_y = 0,
schematic = "lapis_tree.mts",
flags = "place_center_x, place_center_z, force_placement",
rotation = "random",
})
minetest.register_decoration({
name = "fantasy_biomes:rafflesia",
deco_type = "simple",
place_on = {"default:dirt_with_rainforest_litter"},
sidelen = 80,
fill_ratio = 0.01,
biomes = {"rainforest"},
y_max = 31000,
y_min = 1,
decoration = "fantasy_biomes:rafflesia",
})
minetest.register_decoration({
name = "fantasy_biomes:anthill",
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
sidelen = 80,
fill_ratio = 0.0001,
biomes = {"grassland"},
y_max = 31000,
y_min = 1,
decoration = "fantasy_biomes:anthill",
})
minetest.register_decoration({
name = "fantasy_biomes:apple_tree",
deco_type = "schematic",
place_on = {"fantasy_biomes:dirt_with_grass_and_flowers"},
sidelen = 16,
noise_params = {
offset = 0.024,
scale = 0.015,
spread = {x = 250, y = 250, z = 250},
seed = 2,
octaves = 3,
persist = 0.42
},
biomes = {"flower_forest"},
y_max = 31000,
y_min = 1,
schematic = minetest.get_modpath("default") .. "/schematics/apple_tree.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})