bump changes 25.12

This commit is contained in:
Van
2025-12-25 14:31:11 +03:00
parent 3646ec78cd
commit 3e9996e6a0
5 changed files with 76 additions and 49 deletions

View File

@@ -161,4 +161,47 @@ planksFactory:registerItems({
tiles = { logTileSheet:t(10, 4) },
},
},
})
-- сундучки
---@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.

After

Width:  |  Height:  |  Size: 4.2 KiB