sorcery  Diff

Differences From Artifact [e98976a563]:

To Artifact [26f773677c]:


    30     30   						n.param1 = 1
    31     31   						minetest.swap_node(pointed.above, n)
    32     32   						-- end
    33     33   					end
    34     34   				end })
    35     35   			end
    36     36   		end
           37  +
           38  +		sorcery.lathe.register {
           39  +			input = t.node;
           40  +			tech = 'cut';
           41  +			output = 'default:stick 18';
           42  +			cost = 1;
           43  +		}
           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  +					}
           59  +				end
           60  +			end end
           61  +		end end
    37     62   	end
    38     63   
    39     64   	if t.sap == false then return end
    40     65   	if not t.sapliq then
    41     66   		t.sapliq = string.format('sorcery:sap_%s', id)
    42     67   		local sapdesc = t.sap or (t.desc .. ' Tree Sap')
    43     68   		sorcery.liquid.register {