soils: add plowed soil

This commit is contained in:
Van
2026-04-23 15:44:22 +03:00
parent c6ec550ee4
commit 51394d1df6
2 changed files with 28 additions and 1 deletions

View File

@@ -32,12 +32,39 @@ local function registerSoil(name, x, def, turfs)
},
})
defaultSoil:new({
settings = {
name = name..'_plowed',
tiles = {
soilTileSheet:t(x, 1),
soilTexture,
},
drawtype = 'nodebox',
node_box = {
type = 'fixed',
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5625, 0.5},
},
},
selection_box = {
type = 'fixed',
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
}
},
})
if turfs ~= nil then
for turfName, turfX in pairs(turfs) do
defaultSoil:new({
settings = {
name = turfName,
tiles = {soilTileSheet:t(turfX,1), soilTexture, soilTexture..'^'..soilTileSheet:t(turfX,2)},
tiles = {
soilTileSheet:t(turfX,2),
soilTexture,
soilTexture..'^'..soilTileSheet:t(turfX,3)
},
},
})
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 35 KiB