Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[FarmFox farming robot]--
- --[Start of the executable part of program]--
- local FoSize = 0
- print("Note: You can put a chest to the Left side of the turtle form collected items")
- print()
- print("Specify area size to be harvested!")
- print("[^] Area size Forward: ")
- local FoSize = tostring( read() )
- print("[>] Area size Right: ")
- local RiSize = tostring( read() )
- print("Area size is: "..FoSize.." x "..RiSize)
- for i=1,RiSize do
- print("Advancing")
- for i=1,FoSize do
- turtle.dig()
- turtle.forward()
- end
- print("Reversing "..FoSize.." blocks")
- for i=1,FoSize do
- turtle.back(FoSize)
- end
- print("Next row")
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- print("Going home")
- turtle.turnLeft()
- for i=1,RiSize do
- turtle.forward()
- end
- print("Unloading")
- for i=1,15 do
- turtle.select(i)
- turtle.drop()
- end
- print("Repositioning")
- turtle.turnRight()
- turtle.select(1)
- print("Harvesting completed, standing by.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement