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()
- local index = 0
- local index2 = 0
- while true do
- refuel()
- index = 0
- while (index < 5)
- do
- turtle.forward()
- index = index + 1
- end
- if (index2 % 2 == 0)
- then
- TL()
- else
- TR()
- end
- index2 = index2 + 1
- end
- end
- farm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement