695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
...
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
|
local register_station = function(water)
local tilebase = {
"default_aspen_wood.png";
"sorcery_wandworking_station_side.png";
}
local base = {
description = "Wandworking station";
groups = {
choppy = 2;
};
paramtype2 = 'facedir';
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
................................................................................
elseif list == 'wandparts' then
if wwi:is_empty('preview') then update_wand(wwi)
else update_preview(wwi) end
elseif list == 'tank' then
minetest.get_node_timer(pos):start(1)
end
end;
}
local id
if water then
id = 'sorcery:wandworking_station_water'
base = u.tbl.merge(base, {
description = "Wandworking station (full)";
tiles = u.tbl.append({"sorcery_wandworking_station_top_water.png"}, tilebase)
})
else
id = 'sorcery:wandworking_station'
base = u.tbl.merge(base, {
description = "Wandworking station";
drop = "sorcery:wandworking_station";
tiles = u.tbl.append({"sorcery_wandworking_station_top.png"}, tilebase)
})
end
minetest.register_node(id, base)
end
|
|
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
...
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
|
local register_station = function(water)
local tilebase = {
"default_aspen_wood.png";
"sorcery_wandworking_station_side.png";
}
local base = {
description = "Wandworking Station";
groups = {
choppy = 2;
};
paramtype2 = 'facedir';
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
................................................................................
elseif list == 'wandparts' then
if wwi:is_empty('preview') then update_wand(wwi)
else update_preview(wwi) end
elseif list == 'tank' then
minetest.get_node_timer(pos):start(1)
end
end;
_sorcery = {
recipe = {
note = 'Construct wands from tree blocks and gems; fill with water and soak wands with philters to enchant them';
};
};
}
local id
if water then
id = 'sorcery:wandworking_station_water'
base = u.tbl.merge(base, {
description = "Wandworking Station (full)";
tiles = u.tbl.append({"sorcery_wandworking_station_top_water.png"}, tilebase)
})
else
id = 'sorcery:wandworking_station'
base = u.tbl.merge(base, {
description = "Wandworking Station";
drop = "sorcery:wandworking_station";
tiles = u.tbl.append({"sorcery_wandworking_station_top.png"}, tilebase)
})
end
minetest.register_node(id, base)
end
|