sorcery  Diff

Differences From Artifact [26f773677c]:

To Artifact [e1ffea05f2]:


38
39
40
41
42
43
44
45
46
47
48








49
50
51
52
53
54
55
56
57
58
59
60
61


62
63
64
65
66
67
68
		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
		t.sapliq = string.format('sorcery:sap_%s', id)
		local sapdesc = t.sap or (t.desc .. ' Tree Sap')
		sorcery.liquid.register {







<
<
|
|
>
>
>
>
>
>
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>







38
39
40
41
42
43
44


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
		sorcery.lathe.register {
			input = t.node;
			tech = 'cut';
			output = 'default:stick 18';
			cost = 1;
		}



		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

	if t.sap == false then return end
	if not t.sapliq then
		t.sapliq = string.format('sorcery:sap_%s', id)
		local sapdesc = t.sap or (t.desc .. ' Tree Sap')
		sorcery.liquid.register {