Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Harvest Reeds 35 x 3
- --MrKarp
- function GetReedsA()
- for a=1, 36 do
- turtle.forward()
- turtle.dig()
- turtle.suck()
- end
- end
- function GetReedsB()
- for a=1, 36 do
- turtle.forward()
- turtle.dig()
- turtle.suck()
- end
- end
- function TurnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function TurnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- function TurnAround()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function GoDown()
- turtle.down()
- end
- function GoUp()
- turtle.up()
- end
- function GetFuel()
- local valid = turtle.refuel(0)
- print(valid)
- if valid then do
- local success = turtle.refuel(4)
- print(success)
- end
- end
- end
- local firstItem,lastItem = 2,16
- --This will drop everything into a chest
- function putAwayInventory()
- for i=firstItem,lastItem do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- --And this will pick it up in the same order!
- function pickUpInventory()
- for i=firstItem,lastItem do
- turtle.select(i)
- turtle.suckDown()
- end
- end
- --Run
- function Harvest()
- GetReedsA()
- sleep(1)
- TurnLeft()
- sleep(1)
- GetReedsB()
- sleep(1)
- TurnAround()
- sleep(1)
- GoDown()
- sleep(1)
- GetReedsA()
- sleep(1)
- TurnRight()
- sleep(1)
- GetReedsB()
- sleep(1)
- turtle.turnRight()
- putAwayInventory()
- sleep(1)
- turtle.turnRight()
- end
- Harvest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement