Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("mapi")
- dir = true
- count = 1
- while true do
- turtle.select(2)
- while not turtle.compare() do
- turtle.select(4)
- turtle.place()
- turtle.select(2)
- end
- if turtle.getFuelLevel() < 2000 then
- turtle.select(1)
- if turtle.getItemCount() < 64 then
- for i=5,16 do
- turtle.select(i)
- turtle.transferTo(1)
- end
- for i=5,16 do
- turtle.select(i)
- turtle.transferTo(3)
- end
- end
- turtle.select(1)
- turtle.refuel(turtle.getItemCount()-1)
- end
- turtle.select(5)
- mapi.forward(1,true)
- up = mapi.clearUp()
- mapi.down(up)
- mapi.suck()
- while not turtle.back() do end
- turtle.select(3)
- turtle.place()
- if dir then
- mapi.turnRight()
- mapi.forward(6)
- mapi.turnLeft()
- else
- mapi.turnLeft()
- mapi.forward(6)
- mapi.turnRight()
- end
- count = count + 1
- if count % 3 == 0 then
- dir = not dir
- count = 1
- end
- if count == 1 and dir then
- while not turtle.back() do end
- mapi.turnRight(2)
- for i=5,16 do
- turtle.transferTo(1)
- end
- mapi.empty(4)
- mapi.turnRight(2)
- mapi.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement