Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local sslot = 1
- if turtle.getFuelLevel() > 0 then
- turtle.select(sslot)
- if turtle.getItemCount() > 0 then
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- else
- sslot = (sslot%16)+1
- turtle.select(sslot)
- end
- else
- turtle.select(16)
- turtle.refuel(1)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement