axinitium/mapgen.lua

69 lines
1.8 KiB
Lua
Raw Normal View History

2017-07-16 17:55:51 +00:00
-- Axinite Biome
axinitium.mg = {}
axinitium.mg.path = minetest.get_modpath("axinitium")
2018-02-12 00:38:04 +00:00
-- Axinite Biome Mountains
2017-07-16 17:55:51 +00:00
minetest.register_biome({
2018-02-12 00:38:04 +00:00
name = "axinite_mountain",
node_top = "axinitium:dirt",
depth_top = 1,
node_filler = "default:stone",
depth_filler = 3,
y_min = 85,
y_max = 31000,
heat_point = 80.0,
humidity_point = 15.0,
})
-- Axinite Biome Lowland
minetest.register_biome({
name = "axinite_lowland",
2017-07-16 17:55:51 +00:00
node_top = "axinitium:dirt",
depth_top = 1,
node_filler = "default:dirt",
2018-02-12 00:38:04 +00:00
depth_filler = 3,
y_min = 1,
y_max = 5,
heat_point = 10.0, --45.0
humidity_point = 40.0, --55.0
2017-07-16 17:55:51 +00:00
})
-- Register Biome Decoration
local path = minetest.get_modpath("axinitium")
minetest.register_decoration({
deco_type = "simple",
place_on = "axinitium:dirt",
sidelen = 16,
fill_ratio = 0.0008,
2018-02-12 00:38:04 +00:00
biomes = {"axinite_mountain","axinite_lowland"},-- Spawn in both biomes
2017-07-16 17:55:51 +00:00
decoration = "axinitium:crystal_ore1",
-- height = 2,
height_max = 1,
})
2018-02-12 00:38:04 +00:00
-- axinitium tree, spawn in Axinite Mountains Biomes
2017-07-16 17:55:51 +00:00
minetest.register_decoration({
deco_type = "schematic",
place_on = "axinitium:dirt",
sidelen = 16,
fill_ratio = 0.01,
2018-02-12 00:38:04 +00:00
biomes = {"axinite_mountain"},
2017-07-16 17:55:51 +00:00
schematic = path.."/schematics/tree.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
2018-02-12 00:38:04 +00:00
-- Small Lava Crater -- from ethereal lava pits, spawn in Lowland Biomes
2017-07-16 17:55:51 +00:00
minetest.register_decoration({
deco_type = "schematic",
place_on = "axinitium:dirt",
sidelen = 16,
fill_ratio = 0.002,
2018-02-12 00:38:04 +00:00
biomes = {"axinite_lowland"},
2017-07-16 17:55:51 +00:00
schematic = path.."/schematics/volcan.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})