Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sel=1
- turtle.select(sel)
- local curcount=turtle.getItemCount(sel)
- local prvcount=curcount
- local temp
- local toggle=true
- print("Follow floor miner by Niseg(for Nixaro)")
- print("turns right first; follow identical blocks")
- print("pre-refuel at least 1 per block not more")
- print("identify liquid,climbs mountains(careful!)")
- print("hold CTRL-T to stop")
- while true do
- if(turtle.digDown()) then
- temp=turtle.getItemCount(sel+1)
- curcount=turtle.getItemCount(sel)
- if temp~=0 then
- if turtle.compareTo(sel+1) then
- sel=sel+1
- turtle.select(sel)
- while not turtle.forward() do turtle.up() end
- else
- turtle.select(sel+1)
- turtle.drop()
- turtle.select(sel)
- turtle.back()
- if toggle then turtle.turnRight() else turtle.turnLeft() end
- while not turtle.forward() do turtle.up() end
- if toggle then turtle.turnRight() else turtle.turnLeft() end
- toggle=not toggle
- end
- else
- if prvcount==curcount then
- turtle.back()
- if toggle then turtle.turnRight() else turtle.turnLeft() end
- while not turtle.forward() do turtle.up() end
- if toggle then turtle.turnRight() else turtle.turnLeft() end
- toggle=not toggle
- else
- while not turtle.forward() do turtle.up() end
- end
- end
- prvcount=curcount
- else
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment