68 lines
1.3 KiB
Lua
68 lines
1.3 KiB
Lua
local modname = minetest.get_current_modname()
|
|
local modpath = minetest.get_modpath(modname)
|
|
local S = minetest.get_translator(modname)
|
|
|
|
local schem_path = modpath.."/schematics/"
|
|
|
|
local coralpalace = {
|
|
name = "coralpalace",
|
|
schematic = dofile(schem_path.."coral_palace.lua"),
|
|
buffer = 2,
|
|
max_num = 0.1,
|
|
platform_clear_above = false,
|
|
}
|
|
|
|
|
|
local mer_settlements = {
|
|
description = S("coral village"),
|
|
|
|
surface_materials = {
|
|
"default:sand",
|
|
"default:dirt",
|
|
},
|
|
|
|
platform_shallow = "default:sand",
|
|
platform_deep = "default:stone",
|
|
platform_air = "default:water_source",
|
|
|
|
building_count_min = 3,
|
|
building_count_max = 12,
|
|
|
|
altitude_min = -50,
|
|
altitude_max = -10,
|
|
|
|
replacements = {
|
|
["default:coral_orange"] = {
|
|
"default:coral_orange",
|
|
"default:coral_brown",
|
|
},
|
|
},
|
|
|
|
central_schematics = {
|
|
coralpalace,
|
|
},
|
|
|
|
schematics = {
|
|
coralpalace,
|
|
{
|
|
name = "coralhut",
|
|
schematic = dofile(schem_path.."coral_hut.lua"),
|
|
buffer = 1,
|
|
max_num = 1,
|
|
platform_clear_above = false,
|
|
},
|
|
},
|
|
|
|
generate_name = function(pos)
|
|
if minetest.get_modpath("name_generator") then
|
|
return name_generator.generate("mer_settlements")
|
|
end
|
|
return S("Mer camp")
|
|
end,
|
|
}
|
|
|
|
if minetest.get_modpath("name_generator") then
|
|
name_generator.parse_lines(io.lines(modpath.."/namegen_mer.cfg"))
|
|
end
|
|
settlements.register_settlement("mer", mer_settlements)
|