storages: create storages mod, move case wood -> storages, create draft chest

This commit is contained in:
Van
2026-03-05 19:47:27 +03:00
parent 2eede05436
commit 17413df9c4
7 changed files with 245 additions and 43 deletions

View File

@@ -184,46 +184,3 @@ registerWood('tammoy', 3)
registerWood('gi', 4)
registerWood('dallalia', 5)
registerWood('zuph', 6)
-- сундучки
---@type TileSheet
local caseTileSheet = TileSheet:new('cases_sheet.png', 16, 16)
local function getCaseTiles(x, y)
return {
caseTileSheet:t(x, y),
caseTileSheet:t(x, y),
caseTileSheet:t(x, y+1),
}
end
local t = getCaseTiles
planksFactory:registerItems({
---@type Node.NodeDefinition
{
settings = {
name = 'case_closed',
_title = 'Case',
--description = '',
tiles = t(0,0)
},
},
---@type Node.NodeDefinition
{
settings = {
name = 'case_open',
_title = 'Case',
--description = '',
tiles = t(1,0);
drawtype = 'nodebox';
node_box = {
type = 'fixed',
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.5 - 1/16*2, 0.5},
}
}
},
},
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB