CraftSystem: return alt recipes, add player crafts cache, support learned recipes

This commit is contained in:
Van
2026-07-03 22:44:35 +03:00
parent a41817cc3d
commit b40b8c97c0
12 changed files with 220 additions and 65 deletions

View File

@@ -271,6 +271,14 @@ local function registerWood(name, x, def)
group = 'wood:logs_stripped',
})
InventoryCraftHandler:registerCraft('wood:'..name..'_log_stripped_2', {
recipe = {
'wood:'..name..'_log 2'
},
output = 'wood:'..name..'_log_stripped 2',
group = 'wood:logs_stripped',
})
InventoryCraftHandler:registerCraft('wood:'..name..'_bar', {
recipe = {
'wood:'..name..'_log'