-- place and dig node - stop when it has all been converted to something else -- dirt to bones -- gravel to flint if not m then b="default:dirt" -- block to place and dig (must be placed in storage) -- b="default:gravel" m=0 if read_node.forward()==b then m=1 end elseif m==0 then if not place.forward(b) then self.remove() end ; m=1 else if not dig.forward() then self.remove() end ; m=0 end