Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PORT = 112233
- function checkFuel()
- if turtle.getFuelLevel() < 100 then
- turtle.select(2)
- turtle.suckDown()
- turtle.refuel()
- end
- end
- barrelNum = input()
- turtle.select(1)
- turtle.suckUp()
- turtle.down()
- turtle.down()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- if barrelNum % 2 == 0 then
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- turtle.turnRight()
- if barrelNum == 1 or barrelNum == 2 then
- turtle.forward()
- turtle.forward()
- turtle.up()
- turtle.dropUp()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.down()
- turtle.forward()
- turtle.forward()
- end
- if barrelNum == 3 or barrelNum == 4 then
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.up()
- turtle.dropUp()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.down()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- if barrelNum == 5 or barrelNum == 6 then
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.up()
- turtle.dropUp()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.down()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- turtle.turnLeft()
- if barrelNum % 2 == 0 then
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- checkFuel()
- turtle.up()
- turtle.up()
Add Comment
Please, Sign In to add comment