Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- cf = turtle.getFuelLevel()
- mf = turtle.getFuelLimit()
- fp = math.floor(cf/mf)*100
- if fp <= 50 then
- repeat
- turtle.select(2)
- turtle.refuel()
- until fp >=70
- end end
- function TR()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function TL()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function keep()
- turtle.select(1)
- while turtle.detectDown() do
- for i = 3, 16 do
- turtle.select(i)
- turtle.dropDown()
- end end end
- function farm()
- refuel()
- index = 5
- index2 = 5
- while true do
- while index > 0 do
- turtle.forward()
- index = index-1
- while index == 0 and index2 == 5 do
- TL()
- index2 = index2-1
- while index == 0 and index2 ==4 do
- TR()
- index = 5
- end end end end end
- farm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement