@@ -33,8 +33,33 @@ end end }) end end + + sorcery.lathe.register { + input = t.node; + tech = 'cut'; + 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]; + } + end + end end + end end end if t.sap == false then return end if not t.sapliq then