2019-03-23 22:30:59 -04:00
|
|
|
local modname = "ruins"
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
|
|
|
-- internationalization boilerplate
|
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
name = "ruins:ruin",
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"ws_core:dirt_dry"},
|
2019-03-27 13:26:50 -04:00
|
|
|
sidelen = 1,
|
2019-03-23 22:30:59 -04:00
|
|
|
noise_params = {
|
|
|
|
offset = 0.0001,
|
|
|
|
scale = 0.00004,
|
|
|
|
spread = {x = 200000, y = 200000, z = 200000},
|
|
|
|
seed = 2,
|
|
|
|
octaves = 3,
|
2019-03-27 13:26:50 -04:00
|
|
|
persist = 5
|
2019-03-23 22:30:59 -04:00
|
|
|
},
|
|
|
|
biomes = {"dirtland"},
|
|
|
|
y_min = 2,
|
|
|
|
y_max = 80,
|
|
|
|
schematic = modpath.."/schematics/ruin1.mts",
|
|
|
|
flags = "place_center_x, place_center_z, force_placement",
|
|
|
|
rotation = "random",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_decoration({
|
|
|
|
name = "ruins:ruin1",
|
|
|
|
deco_type = "schematic",
|
|
|
|
place_on = {"ws_core:sandy_dirt"},
|
|
|
|
sidelen = 2,
|
|
|
|
noise_params = {
|
|
|
|
offset = 0.0001,
|
|
|
|
scale = 0.00004,
|
|
|
|
spread = {x = 300000, y = 300000, z = 300000},
|
|
|
|
seed = 2,
|
|
|
|
octaves = 3,
|
|
|
|
persist = 0.66
|
|
|
|
},
|
|
|
|
biomes = {"desert"},
|
|
|
|
y_min = 4,
|
|
|
|
y_max = 5,
|
|
|
|
schematic = modpath.."/schematics/ruin1_sand.mts",
|
|
|
|
flags = "place_center_x, place_center_z, force_placement",
|
|
|
|
rotation = "random",
|
|
|
|
})
|