sorcery  Diff

Differences From Artifact [e98976a563]:

To Artifact [26f773677c]:


30
31
32
33
34
35
36

























37
38
39
40
41
42
43
						n.param1 = 1
						minetest.swap_node(pointed.above, n)
						-- 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 {







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







30
31
32
33
34
35
36
37
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
						n.param1 = 1
						minetest.swap_node(pointed.above, n)
						-- end
					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
		t.sapliq = string.format('sorcery:sap_%s', id)
		local sapdesc = t.sap or (t.desc .. ' Tree Sap')
		sorcery.liquid.register {