Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local distance = 32
- local stop = false
- while not stop do
- local success, data = turtle.inspectDown()
- if success then
- if data.name == "minecraft:rail" then
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- turtle.turnLeft()
- forward = turtle.forward()
- if not forward then
- turtle.dig()
- turtle.forward()
- end
- turtle.select(3)
- if turtle.detectDown() then
- turtle.digDown()
- end
- turtle.placeDown()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- if turtle.getItemCount(2) > 0 then
- for i = 1, distance do
- canForward = turtle.forward()
- if not canForward then
- stop = true
- break
- end
- local success = turtle.inspectDown()
- if not success then
- turtle.select(4)
- turtle.placeDown()
- if turtle.getItemCount(4) == 0 then
- for i = 5, 16 do
- data = turtle.getItemDetail(i)
- if data then
- if data.name == "minecraft:rail" then
- turtle.select(i)
- turtle.transferTo(4, 64)
- break
- end
- end
- end
- if turtle.getItemCount(4) == 0 then
- stop = true
- end
- end
- end
- end
- else
- stop = true
- end
- end
- else
- stop = true
- end
- end
- print ("The End of the World!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement