PlayerInventory & PlayerInventoryUI: You can now specify groups as materials for primitive crafting in your inventory. #34

This commit is contained in:
Van
2026-04-04 18:00:24 +03:00
parent d5c6101c0f
commit bddcb4e36c
4 changed files with 49 additions and 5 deletions

View File

@@ -97,3 +97,11 @@ storageFactory:registerItems({
},
})
local PrimitiveCraftHandler = Smc.requireCraftSystemPrimitiveCraftHandler()
PrimitiveCraftHandler:registerCraft('storages:case_closed', {
recipe = {
'group:log 4'
},
output = 'storages:case_closed',
})

View File

@@ -88,6 +88,7 @@ local function registerWood(name, x, def)
tiles = getLogTiles(x, 2),
paramtype2 = 'facedir',
_rarity = def.rarity,
groups = {log = 1}
},
callbacks = {
on_place = core.rotate_node