699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
|
]], math.floor(burnprog * 100)) .. lamps)
end
for _,active in pairs{true,false} do
local id = 'sorcery:generator' .. (active and '_active' or '')
minetest.register_node(id, {
description = 'Generator';
paramtype2 = 'facedir';
groups = { cracky = 2; sorcery_ley_device = 1; sorcery_device_generator = active and 1 or 2};
drop = 'sorcery:generator';
tiles = {
'sorcery_ley_generator_top.png';
'sorcery_ley_generator_bottom.png';
'sorcery_ley_generator_side.png';
'sorcery_ley_generator_side.png';
'sorcery_ley_generator_back.png';
|
|
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
|
]], math.floor(burnprog * 100)) .. lamps)
end
for _,active in pairs{true,false} do
local id = 'sorcery:generator' .. (active and '_active' or '')
minetest.register_node(id, {
description = 'Generator';
paramtype2 = 'facedir';
groups = {
cracky = 2;
sorcery_ley_device = 1;
sorcery_device_generator = active and 1 or 2;
not_in_creative_inventory = active and nil or 1;
};
drop = 'sorcery:generator';
tiles = {
'sorcery_ley_generator_top.png';
'sorcery_ley_generator_bottom.png';
'sorcery_ley_generator_side.png';
'sorcery_ley_generator_side.png';
'sorcery_ley_generator_back.png';
|