687
688
689
690
691
692
693
694
695
696
697
698
699
700
|
-- meta:set_string('formspec',wandwork_form(false))
end;
on_timer = function(...)
if water then return wandwork_soak(...);
else return false end
end;
on_rightclick = wandwork_rightclick;
allow_metadata_inventory_put = function(pos, list, index, stack, user)
local meta = minetest.get_meta(pos)
local wwi = meta:get_inventory()
if list == 'preview' then return 0
elseif list == 'wandparts' then
if (not wwi:is_empty('preview')) and
find_core(stack) then return 1
|
|
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
|
-- meta:set_string('formspec',wandwork_form(false))
end;
on_timer = function(...)
if water then return wandwork_soak(...);
else return false end
end;
on_rightclick = wandwork_rightclick;
after_dig_node = sorcery.lib.node.purge_container;
allow_metadata_inventory_put = function(pos, list, index, stack, user)
local meta = minetest.get_meta(pos)
local wwi = meta:get_inventory()
if list == 'preview' then return 0
elseif list == 'wandparts' then
if (not wwi:is_empty('preview')) and
find_core(stack) then return 1
|