111
112
113
114
115
116
117
118
119
120
121
122
123
124
...
125
126
127
128
129
130
131
132
133
134
135
136
137
138
...
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
return { gem = true, id = iname }
end
end
end;
};
fuel = {
groups = {'fuel','flammable'};
predicate = function(name)
local c,di = minetest.get_craft_result {
method = 'fuel';
width = 1;
items = { ItemStack(name) };
}
if c.time and c.time > 0 then
................................................................................
return {
burntime = c.time;
leftover = di and di[1];
}
end
end;
};
vessel = {
compat = 'vessels';
finagle = { type = 'vessel'; charge = 3; hold = 'liquid' };
predicate = function(name)
local item = minetest.registered_items[name]
if item and item._sorcery and item._sorcery.container then
local ct = item._sorcery.container
................................................................................
end
if c.subclass then
for _,s in pairs(c.subclass) do
o = sorcery.itemclass.get(name,s)
if o then
if c.conform and c.conform[s] then
return c.conform[s](o)
else return o end
end
end
end
if c.groups then
for _,g in pairs(c.groups) do
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
...
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
...
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
return { gem = true, id = iname }
end
end
end;
};
fuel = {
groups = {'fuel','flammable'};
subclass = {'alcohol'};
conform = {
alcohol = function(a,name)
if a and a.kind == 'pure' then
return {
burntime = 15;
leftover = sorcery.data.residue[name];
}
end
end;
};
predicate = function(name)
local c,di = minetest.get_craft_result {
method = 'fuel';
width = 1;
items = { ItemStack(name) };
}
if c.time and c.time > 0 then
................................................................................
return {
burntime = c.time;
leftover = di and di[1];
}
end
end;
};
alcohol = {
compat = 'alcohols';
};
vessel = {
compat = 'vessels';
finagle = { type = 'vessel'; charge = 3; hold = 'liquid' };
predicate = function(name)
local item = minetest.registered_items[name]
if item and item._sorcery and item._sorcery.container then
local ct = item._sorcery.container
................................................................................
end
if c.subclass then
for _,s in pairs(c.subclass) do
o = sorcery.itemclass.get(name,s)
if o then
if c.conform and c.conform[s] then
return c.conform[s](o,name)
else return o end
end
end
end
if c.groups then
for _,g in pairs(c.groups) do
|