Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- selectedSlot = 2
- function tanken()
- while turtle.getFuelLevel() <= 240 do
- turtle.select(1)
- turtle.refuel(1)
- turtle.select(selectedSlot)
- end
- end
- function items()
- if turtle.getItemCount(selectedSlot) <= 1 then
- selectedSlot = selectedSlot + 1
- if selectedSlot == 17 then
- selectedSlot = 2
- end
- turtle.select(selectedSlot)
- end
- end
- function checkup()
- turtle.turnRight()
- if turtle.detect() then
- turtle.up()
- turtle.placeDown()
- while turtle.back() do
- tanken()
- end
- turtle.turnRight()
- while turtle.back() do
- tanken()
- end
- turtle.turnRight()
- turtle.turnRight()
- else
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- while true do
- turtle.select(selectedSlot)
- while turtle.back() do
- tanken()
- items()
- turtle.place()
- end
- checkup()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement