Differences From
Artifact [26f773677c]:
38 38 sorcery.lathe.register {
39 39 input = t.node;
40 40 tech = 'cut';
41 41 output = 'default:stick 18';
42 42 cost = 1;
43 43 }
44 44
45 - if t.lathe then for tech, items in pairs(t.lathe) do
46 - for _, i in pairs(items) do
47 - for _, n in pairs(nodes) do
48 - if minetest.registered_items[n]
49 - and minetest.registered_items[i[1]] then
50 - sorcery.lathe.register {
51 - input = n;
52 - tech = tech;
53 - output = {
54 - name = i[1];
55 - count = i[2];
56 - };
57 - cost = i[3];
58 - }
45 + for _, n in pairs(nodes) do
46 + if minetest.registered_items[n] then
47 + sorcery.lathe.register {
48 + input = n, tech = 'cut';
49 + output = 'xdecor:table 2';
50 + cost = 2;
51 + }
52 + if t.lathe then
53 + for tech, items in pairs(t.lathe) do
54 + for _, i in pairs(items) do
55 + if minetest.registered_items[i[1]] then
56 + sorcery.lathe.register {
57 + input = n;
58 + tech = tech;
59 + output = {
60 + name = i[1];
61 + count = i[2];
62 + };
63 + cost = i[3];
64 + }
65 + end
66 + end end
59 67 end
60 - end end
61 - end end
68 + end
69 + end
62 70 end
63 71
64 72 if t.sap == false then return end
65 73 if not t.sapliq then
66 74 t.sapliq = string.format('sorcery:sap_%s', id)
67 75 local sapdesc = t.sap or (t.desc .. ' Tree Sap')
68 76 sorcery.liquid.register {