mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add base:flat_grass world generator
This commit is contained in:
parent
35d2ea4c86
commit
afac85f7ae
3 changed files with 17 additions and 0 deletions
11
res/content/base/generators/flat_grass.files/biomes.toml
Normal file
11
res/content/base/generators/flat_grass.files/biomes.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[flat]
|
||||||
|
parameters = []
|
||||||
|
layers = [
|
||||||
|
{height=1, block="base:grass_block"},
|
||||||
|
{height=5, block="base:dirt"},
|
||||||
|
{height=-1, block="base:stone"},
|
||||||
|
{height=1, block="base:bazalt"}
|
||||||
|
]
|
||||||
|
sea-layers = [
|
||||||
|
{height=-1, block="base:grass_block"}
|
||||||
|
]
|
||||||
5
res/content/base/generators/flat_grass.files/script.lua
Normal file
5
res/content/base/generators/flat_grass.files/script.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
function generate_heightmap(x, y, w, h, s, inputs)
|
||||||
|
local map = Heightmap(w, h)
|
||||||
|
map:add(0.1)
|
||||||
|
return map
|
||||||
|
end
|
||||||
1
res/content/base/generators/flat_grass.toml
Normal file
1
res/content/base/generators/flat_grass.toml
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
biome-parameters = 0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue