PlayerInventory & PlayerInventoryUI: You can now specify groups as materials for primitive crafting in your inventory. #34
This commit is contained in:
@@ -97,3 +97,11 @@ storageFactory:registerItems({
|
||||
},
|
||||
})
|
||||
|
||||
local PrimitiveCraftHandler = Smc.requireCraftSystemPrimitiveCraftHandler()
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('storages:case_closed', {
|
||||
recipe = {
|
||||
'group:log 4'
|
||||
},
|
||||
output = 'storages:case_closed',
|
||||
})
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user