coconut_collection/mods/main/mapgen.lua

76 lines
1.7 KiB
Lua
Raw Normal View History

2021-12-22 00:09:12 +01:00
minetest.register_alias("mapgen_stone", "main:stone")
minetest.register_alias("mapgen_dirt", "main:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "main:grass")
minetest.register_alias("mapgen_sand", "main:sand")
minetest.register_alias("mapgen_water_source", "main:water_source")
--Beach
minetest.register_biome(
{
name = "Beach",
node_top = "main:sand",
node_filler = "main:sand",
depth_top = 1,
depth_filler = 3,
y_min = -20,
y_max = 32000,
heat_point = 70,
humidity_point = 55,
})
--Small Rock
minetest.register_decoration(
{
deco_type = "schematic",
2021-12-22 01:55:39 +01:00
place_on = {"main:grass", "main:sand"},
2021-12-22 00:09:12 +01:00
rotation = "random",
sidelen = 16,
fill_ratio = 0.004,
2021-12-22 01:55:39 +01:00
biomes = {"Beach"},
2021-12-22 00:09:12 +01:00
flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("main")
.. "/schematics/main_rock_cobble_small.mts",
y_min = -32000,
y_max = 32000,
})
2021-12-22 01:55:39 +01:00
--Tree
minetest.register_decoration(
{
deco_type = "schematic",
place_on = {"main:sand"},
rotation = "random",
sidelen = 32,
fill_ratio = 0.003,
biomes = {"Beach"},
flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("main")
.. "/schematics/main_tree.mts",
2021-12-22 02:09:01 +01:00
y_min = 7,
2021-12-22 01:55:39 +01:00
y_max = 32000,
})
--Payphone
minetest.register_decoration(
{
deco_type = "schematic",
place_on = {"main:sand"},
rotation = "random",
sidelen = 256,
fill_ratio = 0.001,
biomes = {"Beach"},
flags = "place_center_x, place_center_z",
schematic = minetest.get_modpath("main")
.. "/schematics/main_payphone.mts",
2021-12-22 02:09:01 +01:00
y_min = 3,
2021-12-22 01:55:39 +01:00
y_max = 32000,
})