120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
local fullname = n .. ' Potion'
sorcery.liquid.register{
id = 'sorcery:'..id;
name = fullname;
color = v.color;
proto = v;
kind = 'sorcery:potion';
measure = function(amt) return string.format('%s draughts', amt / 3) end;
containers = {
['vessels:glass_bottle'] = 'sorcery:' .. id;
};
}
v.kind = kind_potion;
sorcery.register_potion(id, fullname, desc, color, kind, glow, {
groups = {
................................................................................
sorcery.liquid.register {
id = liqid;
name = desc;
kind = 'sorcery:extract';
proto = v;
color = v[2];
containers = {
['vessels:glass_bottle'] = liqid;
};
}
local add_alcohol = function(booze)
minetest.register_craft {
|
|
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
...
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
|
local fullname = n .. ' Potion'
sorcery.liquid.register{
id = 'sorcery:'..id;
name = fullname;
color = v.color;
proto = v;
kind = 'sorcery:potion';
measure = sorcery.liquid.units.draught;
containers = {
['vessels:glass_bottle'] = 'sorcery:' .. id;
};
}
v.kind = kind_potion;
sorcery.register_potion(id, fullname, desc, color, kind, glow, {
groups = {
................................................................................
sorcery.liquid.register {
id = liqid;
name = desc;
kind = 'sorcery:extract';
proto = v;
color = v[2];
measure = sorcery.liquid.units.pint;
containers = {
['vessels:glass_bottle'] = liqid;
};
}
local add_alcohol = function(booze)
minetest.register_craft {
|