13
14
15
16
17
18
19
20
21
22
23
24
25
26
..
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
sorcery.lib.ui.tooltip {
title = label;
desc = desc;
color = color:readable();
}
-- label .. (desc and ("\n" .. color:readable():fmt(desc)) or '')
);
drawtype = "plantlike";
tiles = {image};
inventory_image = image;
paramtype = "light";
is_ground_content = false;
light_source = glow or 0;
drop = 'sorcery:' .. name;
................................................................................
sorcery.register.residue.link('sorcery:' .. name, 'xdecor:bowl')
extra.description = label;
extra.inventory_image = image;
if not extra.groups then extra.groups = {} end
minetest.register_craftitem('sorcery:' .. name, extra)
end
sorcery.register_potion('blood', 'Blood', 'A bottle of sacrificial blood, imbued\nwith stolen life force', u.color(219,19,14))
sorcery.register_potion('potion_water', 'Water Bottle', 'A bottle of plain water', u.color(43,90,162))
sorcery.register_potion('holy_water', 'Holy Water','A bottle of consecrated water',u.color(94,138,206),'sparkle',6)
local create_infusion_recipe = function(id,potion,default_basis,proto)
if potion.infusion then
sorcery.register.infusions.link {
infuse = potion.infusion;
|
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
..
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
sorcery.lib.ui.tooltip {
title = label;
desc = desc;
color = color:readable();
}
-- label .. (desc and ("\n" .. color:readable():fmt(desc)) or '')
);
short_description = label;
drawtype = "plantlike";
tiles = {image};
inventory_image = image;
paramtype = "light";
is_ground_content = false;
light_source = glow or 0;
drop = 'sorcery:' .. name;
................................................................................
sorcery.register.residue.link('sorcery:' .. name, 'xdecor:bowl')
extra.description = label;
extra.inventory_image = image;
if not extra.groups then extra.groups = {} end
minetest.register_craftitem('sorcery:' .. name, extra)
end
sorcery.register_potion('blood', 'Blood', 'A bottle of sacrificial blood, imbued with stolen (or perhaps donated) life force', u.color(219,19,14), nil, nil, {
sorcery_life_store = 4;
})
sorcery.register_potion('potion_water', 'Water Bottle', 'A bottle of plain water', u.color(43,90,162))
sorcery.register_potion('holy_water', 'Holy Water','A bottle of consecrated water',u.color(94,138,206),'sparkle',6)
local create_infusion_recipe = function(id,potion,default_basis,proto)
if potion.infusion then
sorcery.register.infusions.link {
infuse = potion.infusion;
|