Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by Drunkmonkey1186 you can use each Function to customize your turtles farm dimensions!--
- --Please note this is for craftOS 1.6--
- function checkFuel() --Turtle Checks fuel and returns the proper response--
- if turtle.getFuel() < 10 then
- print("Refueling...")
- turtle.select(1)
- turtle.refuel(1)
- sleep(0.8)
- print("Refueled!")
- else if turtle.getFuel() > 10 then
- print("No Fuel Needed!")
- end
- end
- end
- function moveA() --Turtle moves forward 5 blocks and harvests all 5 blocks under it--
- checkFuel()
- sleep(0.5)
- turtle.forward()
- sleep(0.5)
- turtle.digDown()
- sleep(0.5)
- checkFuel()
- sleep(0.5)
- turtle.forward()
- sleep(0.5)
- turtle.digDown()
- sleep(0.5)checkFuel()
- sleep(0.5)
- turtle.forward()
- sleep(0.5)
- turtle.digDown()
- sleep(0.5)checkFuel()
- sleep(0.5)
- turtle.forward()
- sleep(0.5)
- turtle.digDown()
- sleep(0.5)checkFuel()
- sleep(0.5)
- turtle.forward()
- sleep(0.5)
- turtle.digDown()
- sleep(0.5)
- end
- function moveB() --Turtle moves forward once and breaks block underneath--
- checkFuel()
- sleep(0.5)
- turtle.forward()
- sleep(0.5)
- turtle.digDown()
- sleep(0.5)
- end
- function back() --turtle moves backwards one block--
- turtle.back()
- end
- function turnL() --Turtle turns left one turn--
- turtle.turnLeft()
- end
- function turnR() --Turtle turns right one turn--
- turtle.turnRight()
- end
- function turnA() --Turtle turns 180 degrees to the left--
- turnL()
- turnL()
- end
- function store() --Turtle stores all items in chest and returns response--
- print("Storing your crops...")
- sleep(0.5)
- turtle.select(2)
- sleep(0.5)
- turtle.select(3)
- sleep(0.5)
- turtle.select(4)
- sleep(0.5)
- turtle.select(5)
- sleep(0.5)
- turtle.select(6)
- sleep(0.5)
- turtle.select(7)
- sleep(0.5)
- turtle.select(8)
- sleep(0.5)
- turtle.select(9)
- sleep(0.5)
- turtle.select(10)
- sleep(0.5)
- print("Crops Stored!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement