2020-08-12 19:42:27 -07:00
|
|
|
local identifier = "zeus:world:plains"
|
|
|
|
|
2020-10-31 20:16:09 -07:00
|
|
|
local woo = "zeus:default:wood"
|
|
|
|
local lea = "zeus:default:leaves"
|
|
|
|
local inv = "invalid"
|
|
|
|
|
|
|
|
local shrub_layer_0 = {
|
|
|
|
{ inv, inv, inv },
|
|
|
|
{ inv, woo, inv },
|
|
|
|
{ inv, inv, inv }
|
|
|
|
}
|
|
|
|
|
|
|
|
local shrub_layer_1 = {
|
|
|
|
{ inv, lea, inv },
|
|
|
|
{ lea, woo, lea },
|
|
|
|
{ inv, lea, inv }
|
|
|
|
}
|
|
|
|
|
|
|
|
local shrub_layer_2 = {
|
|
|
|
{ inv, inv, inv },
|
|
|
|
{ inv, lea, inv },
|
|
|
|
{ inv, inv, inv }
|
|
|
|
}
|
|
|
|
|
|
|
|
local shrub = zepha.create_structure({
|
|
|
|
origin = V{1, 1, 1},
|
2020-11-28 15:13:49 -08:00
|
|
|
probability = 0.01,
|
2020-10-31 20:16:09 -07:00
|
|
|
schematic = {
|
|
|
|
shrub_layer_0,
|
|
|
|
shrub_layer_1,
|
|
|
|
shrub_layer_2,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2020-11-28 15:13:49 -08:00
|
|
|
local structures = { shrub }
|
|
|
|
|
|
|
|
for i = 1, 5 do
|
|
|
|
table.insert(structures, zepha.create_structure({
|
|
|
|
origin = V(),
|
|
|
|
probability = 0.1,
|
|
|
|
schematic = {{{ "zeus:default:tall_grass_" .. tostring(i) }}}
|
|
|
|
}))
|
|
|
|
end
|
|
|
|
|
2020-12-05 21:17:46 -08:00
|
|
|
table.insert(structures, zepha.create_structure({
|
|
|
|
origin = V(),
|
|
|
|
probability = 0.025,
|
|
|
|
schematic = {{{ "zeus:flowers:flower_geranium" }}}
|
|
|
|
}))
|
|
|
|
|
|
|
|
table.insert(structures, zepha.create_structure({
|
|
|
|
origin = V(),
|
|
|
|
probability = 0.025,
|
|
|
|
schematic = {{{ "zeus:flowers:flower_white_dandelion" }}}
|
|
|
|
}))
|
|
|
|
|
2020-06-21 18:01:35 -07:00
|
|
|
local noise = {
|
2020-11-28 15:13:49 -08:00
|
|
|
heightmap = {
|
|
|
|
module = "add",
|
|
|
|
sources = {{
|
|
|
|
module = "const",
|
|
|
|
value = -12
|
|
|
|
}, {
|
|
|
|
module = "add",
|
|
|
|
sources = {{
|
|
|
|
-- Elevation
|
|
|
|
module = "scale_bias",
|
|
|
|
source = {
|
|
|
|
module = "perlin",
|
|
|
|
frequency = 0.002,
|
|
|
|
octaves = 8
|
|
|
|
},
|
|
|
|
scale = 250,
|
|
|
|
bias = -32
|
|
|
|
}, {
|
|
|
|
-- Features
|
|
|
|
module = "scale_bias",
|
|
|
|
source = {
|
|
|
|
module = "perlin",
|
|
|
|
frequency = 0.2,
|
|
|
|
octaves = 3,
|
|
|
|
},
|
|
|
|
scale = 6,
|
|
|
|
bias = 6
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
}
|
2020-06-21 18:01:35 -07:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:42:27 -07:00
|
|
|
zepha.register_biome(identifier, {
|
2020-11-07 20:35:21 -08:00
|
|
|
environment = {
|
|
|
|
temperature = 15/100,
|
|
|
|
humidity = 60/100,
|
|
|
|
roughness = 20/100,
|
|
|
|
},
|
|
|
|
blocks = {
|
|
|
|
top = "zeus:default:grass",
|
|
|
|
soil = "zeus:default:dirt",
|
|
|
|
rock = "zeus:default:stone"
|
|
|
|
},
|
|
|
|
tags = { natural = 1, default = 1 },
|
2020-11-28 15:13:49 -08:00
|
|
|
structures = structures,
|
2020-11-07 20:35:21 -08:00
|
|
|
biome_tint = "#aaed45",
|
|
|
|
noise = noise
|
2020-08-12 19:42:27 -07:00
|
|
|
})
|
|
|
|
|
|
|
|
return identifier
|