Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sslot = 1
- while true do
- if turtle.getFuelLevel() > 0 then
- turtle.select(sslot)
- if turtle.getItemCount() > 0 then
- local details = turtle.getItemDetail()
- if details.name == "Railcraft:track" then
- if turtle.forward() then
- print ("Turtle moved forward.")
- turtle.digDown()
- turtle.placeDown()
- turtle.select(15)
- turtle.drop(1)
- else
- print ("Turtle didn't move forward.")
- end
- else
- sslot = (sslot%13)+1
- turtle.select(sslot)
- end
- else
- sslot = (sslot%13)+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