if load+1<9 then
minetest.env:add_node(pointed_thing.under, {name="air"})
load=load+1;
- load=set_RE_item_load(load,water_can_max_load)
+ load=set_RE_item_load(load,lava_can_max_load)
item["wear"]=tostring(load)
itemstack:replace(item)
end
item=itemstack:to_table()
load=tonumber((item["wear"]))
if load==0 then load =65535 end
- load=get_RE_item_load(load,water_can_max_load)
+ load=get_RE_item_load(load,lava_can_max_load)
if load==0 then return end
if n.name == "default:lava_flowing" then
minetest.env:add_node(pointed_thing.under, {name="default:lava_source"})
load=load-1;
- load=set_RE_item_load(load,water_can_max_load)
+ load=set_RE_item_load(load,lava_can_max_load)
item["wear"]=tostring(load)
itemstack:replace(item)
return itemstack
if n.name == "air" then
minetest.env:add_node(pointed_thing.above, {name="default:lava_source"})
load=load-1;
- load=set_RE_item_load(load,water_can_max_load)
+ load=set_RE_item_load(load,lava_can_max_load)
item["wear"]=tostring(load)
itemstack:replace(item)
return itemstack