Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Farmin'")
- function refuel()
- turtle.suck(1)
- turtle.select(2)
- turtle.refuel(1)
- end
- function needsFuel()
- if turtle.getFuelLevel() < 100 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 plant()
- turtle.digDown()
- turtle.select(1)
- turtle.placeDown(1)
- 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()
- if needsFuel() == true then
- turtle.turnLeft()
- refuel()
- turtle.turnRight()
- end
- turtle.select(1)
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- for row = 1, 8 do
- plant()
- turtle.forward()
- end
- plant()
- bankRight()
- for row = 1, 8 do
- plant()
- turtle.forward()
- end
- plant()
- bankLeft()
- for row = 1, 8 do
- plant()
- turtle.forward()
- end
- plant()
- bankRight()
- for row = 1, 8 do
- plant()
- turtle.forward()
- end
- plant()
- bankLeft()
- for row = 1, 8 do
- plant()
- turtle.forward()
- end
- plant()
- bankRight()
- for row = 1, 8 do
- plant()
- turtle.forward()
- end
- plant()
- jobDone()
- print("Standing by for growth")
- sleep(4550)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement