add biomes.json
This commit is contained in:
parent
bca222afe5
commit
c987bbd34f
@ -4,74 +4,7 @@ sea_level = 64
|
|||||||
-- 2 - humidity
|
-- 2 - humidity
|
||||||
biome_parameters = 2
|
biome_parameters = 2
|
||||||
|
|
||||||
biomes = {
|
biomes = json.parse(file.read("core:generators/default/biomes.json"))
|
||||||
plains = {
|
|
||||||
parameters = {
|
|
||||||
{value=0.5, weight=0.6},
|
|
||||||
{value=0.5, weight=0.6},
|
|
||||||
},
|
|
||||||
sea_layers = {
|
|
||||||
{block="base:water", height=-1},
|
|
||||||
},
|
|
||||||
layers = {
|
|
||||||
{block="base:grass_block", height=1, below_sea_level=false},
|
|
||||||
{block="base:dirt", height=5, below_sea_level=false},
|
|
||||||
{block="base:stone", height=-1},
|
|
||||||
{block="base:bazalt", height=1},
|
|
||||||
},
|
|
||||||
plant_chance = 0.3,
|
|
||||||
plants = {
|
|
||||||
{block="base:grass", weight=1},
|
|
||||||
{block="base:flower", weight=0.03},
|
|
||||||
},
|
|
||||||
structure_chance = 0.0001,
|
|
||||||
structures = {
|
|
||||||
{name="tree0", weight=1},
|
|
||||||
{name="tree1", weight=1},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
desert = {
|
|
||||||
parameters = {
|
|
||||||
{value=0.0, weight=0.1},
|
|
||||||
{value=0.0, weight=0.1},
|
|
||||||
},
|
|
||||||
sea_layers = {
|
|
||||||
{block="base:water", height=-1},
|
|
||||||
},
|
|
||||||
layers = {
|
|
||||||
{block="base:sand", height=6},
|
|
||||||
{block="base:stone", height=-1},
|
|
||||||
{block="base:bazalt", height=1},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
forest = {
|
|
||||||
parameters = {
|
|
||||||
{value=1.0, weight=1.0},
|
|
||||||
{value=0.2, weight=0.5},
|
|
||||||
},
|
|
||||||
sea_layers = {
|
|
||||||
{block="base:water", height=-1},
|
|
||||||
},
|
|
||||||
layers = {
|
|
||||||
{block="base:grass_block", height=1, below_sea_level=false},
|
|
||||||
{block="base:dirt", height=7, below_sea_level=false},
|
|
||||||
{block="base:stone", height=-1},
|
|
||||||
{block="base:bazalt", height=1},
|
|
||||||
},
|
|
||||||
plant_chance = 0.4,
|
|
||||||
plants = {
|
|
||||||
{block="base:grass", weight=1},
|
|
||||||
{block="base:flower", weight=0.03},
|
|
||||||
},
|
|
||||||
structure_chance = 0.032,
|
|
||||||
structures = {
|
|
||||||
{name="tree0", weight=1},
|
|
||||||
{name="tree1", weight=1},
|
|
||||||
{name="tree2", weight=1},
|
|
||||||
{name="tower", weight=0.002},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function place_structures(x, z, w, d, seed, hmap)
|
function place_structures(x, z, w, d, seed, hmap)
|
||||||
local placements = {}
|
local placements = {}
|
||||||
|
|||||||
68
res/generators/default/biomes.json
Normal file
68
res/generators/default/biomes.json
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"forest": {
|
||||||
|
"parameters": [
|
||||||
|
{"weight": 1, "value": 1},
|
||||||
|
{"weight": 0.5, "value": 0.2}
|
||||||
|
],
|
||||||
|
"layers": [
|
||||||
|
{"below_sea_level": false, "height": 1, "block": "base:grass_block"},
|
||||||
|
{"below_sea_level": false, "height": 7, "block": "base:dirt"},
|
||||||
|
{"height": -1, "block": "base:stone"},
|
||||||
|
{"height": 1, "block": "base:bazalt"}
|
||||||
|
],
|
||||||
|
"sea_layers": [
|
||||||
|
{"height": -1, "block": "base:water"}
|
||||||
|
],
|
||||||
|
"plant_chance": 0.4,
|
||||||
|
"plants": [
|
||||||
|
{"weight": 1, "block": "base:grass"},
|
||||||
|
{"weight": 0.03, "block": "base:flower"}
|
||||||
|
],
|
||||||
|
"structure_chance": 0.032,
|
||||||
|
"structures": [
|
||||||
|
{"name": "tree0", "weight": 1},
|
||||||
|
{"name": "tree1", "weight": 1},
|
||||||
|
{"name": "tree2", "weight": 1},
|
||||||
|
{"name": "tower", "weight": 0.002}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"desert": {
|
||||||
|
"parameters": [
|
||||||
|
{"weight": 0.1, "value": 0},
|
||||||
|
{"weight": 0.1, "value": 0}
|
||||||
|
],
|
||||||
|
"layers": [
|
||||||
|
{"height": 6, "block": "base:sand"},
|
||||||
|
{"height": -1, "block": "base:stone"},
|
||||||
|
{"height": 1, "block": "base:bazalt"}
|
||||||
|
],
|
||||||
|
"sea_layers": [
|
||||||
|
{"height": -1, "block": "base:water"}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"plains": {
|
||||||
|
"parameters": [
|
||||||
|
{"weight": 0.6, "value": 0.5},
|
||||||
|
{"weight": 0.6, "value": 0.5}
|
||||||
|
],
|
||||||
|
"layers": [
|
||||||
|
{"below_sea_level": false, "height": 1, "block": "base:grass_block"},
|
||||||
|
{"below_sea_level": false, "height": 5, "block": "base:dirt"},
|
||||||
|
{"height": -1, "block": "base:stone"},
|
||||||
|
{"height": 1, "block": "base:bazalt"}
|
||||||
|
],
|
||||||
|
"sea_layers": [
|
||||||
|
{"height": -1, "block": "base:water"}
|
||||||
|
],
|
||||||
|
"plant_chance": 0.3,
|
||||||
|
"plants": [
|
||||||
|
{"weight": 1, "block": "base:grass"},
|
||||||
|
{"weight": 0.03, "block": "base:flower"}
|
||||||
|
],
|
||||||
|
"structure_chance": 0.0001,
|
||||||
|
"structures": [
|
||||||
|
{"name": "tree0", "weight": 1},
|
||||||
|
{"name": "tree1", "weight": 1}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user