Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Farmin' Carrots/Potatos")
- function plant()
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown(1)
- turtle.forward()
- end
- function refuel()
- turtle.select(2)
- turtle.refuel(1)
- end
- function needsFuel()
- if turtle.getFuelLevel() < 10 then
- return true
- else
- return false
- end
- end
- function a()
- turtle.transferTo(1)
- end
- function moveSeeds()
- turtle.select(2)
- a()
- turtle.select(3)
- a()
- turtle.select(4)
- a()
- turtle.select(5)
- a()
- turtle.select(6)
- a()
- end
- function bankRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function bankLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function pootis()
- turtle.select(2)
- turtle.dropDown()
- turtle.select(3)
- turtle.dropDown()
- turtle.select(4)
- turtle.dropDown()
- turtle.select(5)
- turtle.dropDown()
- turtle.select(6)
- turtle.dropDown()
- turtle.select(7)
- turtle.dropDown()
- turtle.select(8)
- turtle.dropDown()
- turtle.select(9)
- turtle.dropDown()
- turtle.select(10)
- turtle.dropDown()
- turtle.select(11)
- turtle.dropDown()
- turtle.select(12)
- turtle.dropDown()
- end
- function jobDone()
- turtle.turnLeft()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.back()
- pootis()
- turtle.back()
- turtle.turnRight()
- turtle.back()
- turtle.turnLeft()
- turtle.select(1)
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- "plant()= true"
- for row = 1, 9 do
- plant()
- end
- bankRight()
- for row = 1, 9 do
- plant()
- end
- bankLeft()
- for row = 1, 9 do
- plant()
- end
- bankRight()
- for row = 1, 9 do
- plant()
- end
- bankLeft()
- for row = 1, 9 do
- plant()
- end
- bankRight()
- for row = 1, 9 do
- plant()
- end
- getrdy()
- print("Standing by for carrots/potato growth")
- sleep(4550)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement