@@ -41,25 +41,33 @@ output = 'default:stick 18'; cost = 1; } - if t.lathe then for tech, items in pairs(t.lathe) do - for _, i in pairs(items) do - for _, n in pairs(nodes) do - if minetest.registered_items[n] - and minetest.registered_items[i[1]] then - sorcery.lathe.register { - input = n; - tech = tech; - output = { - name = i[1]; - count = i[2]; - }; - cost = i[3]; - } + for _, n in pairs(nodes) do + if minetest.registered_items[n] then + sorcery.lathe.register { + input = n, tech = 'cut'; + output = 'xdecor:table 2'; + cost = 2; + } + if t.lathe then + for tech, items in pairs(t.lathe) do + for _, i in pairs(items) do + if minetest.registered_items[i[1]] then + sorcery.lathe.register { + input = n; + tech = tech; + output = { + name = i[1]; + count = i[2]; + }; + cost = i[3]; + } + end + end end end - end end - end end + end + end end if t.sap == false then return end if not t.sapliq then