Create draft biome

This commit is contained in:
Van
2025-12-30 19:11:32 +03:00
parent efeb5c75cd
commit 47dc024b6c
4 changed files with 36 additions and 6 deletions

View File

@@ -27,10 +27,26 @@ core.register_ore({
core.register_decoration({ core.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = "soils:clay_soil_baren", place_on = "soils:turf_swamp",
sidelen = 8, sidelen = 8,
fill_ratio = 0.1, fill_ratio = 0.4,
decoration = "plants:plants", decoration = "plants:plants",
}) })
core.register_decoration({
deco_type = "simple",
place_on = "soils:turf_swamp",
sidelen = 8,
fill_ratio = 0.05,
decoration = "plants:plant0",
})
core.register_decoration({
deco_type = "simple",
place_on = "soils:turf_swamp",
sidelen = 8,
fill_ratio = 0.01,
decoration = "plants:plant2",
})
return mapGenerator return mapGenerator

View File

@@ -204,14 +204,14 @@ mapGenerator:registerBiome('midgard', 'swamp', {
minY = 100, minY = 100,
maxY = 0, maxY = 0,
groundNodes = { groundNodes = {
soil = 'soils:clay_soil_baren', soil = 'soils:rocky_soil_baren',
turf = 'soils:clay_soil_baren', turf = 'soils:turf_swamp',
rock = 'rocks:sylite', rock = 'rocks:sylite',
bottom = 'soils:rocky_soil_baren', bottom = 'soils:rocky_soil_baren',
}, },
soilHeight = 3, soilHeight = 3,
generateRock = generateRock, generateRock = generateRock,
generateSoil = generateSoil, --generateSoil = generateSoil,
}) })
return mapGenerator return mapGenerator

View File

@@ -236,4 +236,18 @@ soilFactory:registerItems({
}, },
}, },
}, true) }, true)
---@type TileSheet
local tsT = TileSheet:new("soils_turfs_sheet.png", 16, 16)
Node:new({
settings = {
name = 'soils:turf_swamp',
tiles = {tsT:t(0,0), ts:t(6, 0), ts:t(6,0)..'^'..tsT:t(0,1)},
groups = {
dig_immediate = 2,
soil_fertiliry = 100, -- Soil fertility for agriculture
}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB