Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Blocks = 0
- Blocks1 = 0
- function Main()
- MovePattern()
- DropCane()
- if 20 > turtle.getFuelLevel() then
- turtle.select(1)
- if 1 > turtle.getItemCount(1) then
- turtle.suckUp()
- end
- turtle.refuel(1)
- end
- sleep(180)
- Blocks = 0
- Blocks1 = 0
- Main()
- end
- function DropCane()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.select(4)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.select(8)
- turtle.drop()
- turtle.select(9)
- turtle.drop()
- turtle.select(10)
- turtle.drop()
- turtle.select(11)
- turtle.drop()
- turtle.select(12)
- turtle.drop()
- turtle.select(13)
- turtle.drop()
- turtle.select(14)
- turtle.drop()
- turtle.select(15)
- turtle.drop()
- turtle.select(16)
- turtle.drop()
- end
- function MovePattern()
- turtle.turnRight()
- turtle.turnRight()
- TurtleForward(8)
- turtle.turnRight()
- turtle.turnRight()
- TurtleForwardN(7)
- turtle.forward()
- end
- function TurtleForward(a)
- if Blocks < a then
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- turtle.turnRight()
- turtle.turnRight()
- turtle.dig()
- turtle.turnLeft()
- Blocks = Blocks + 1
- TurtleForward(a)
- end
- end
- function TurtleForwardN(a)
- if Blocks1 < a then
- turtle.forward()
- Blocks1 = Blocks1 + 1
- TurtleForwardN(a)
- end
- end
- Main()
Add Comment
Please, Sign In to add comment