Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local actualSlotNumber = 1
- local running = true
- function placeTracks()
- while (turtle.getItemCount(actualSlotNumber) == 0) do
- actualSlotNumber = actualSlotNumber + 1
- if not turtle.select(actualSlotNumber) then
- return false
- end
- end
- if turtle.compareDown() then
- return false
- end
- turtle.digDown()
- turtle.placeDown()
- return turtle.forward()
- end
- turtle.select(actualSlotNumber)
- while running do
- for i=1,4 do
- running = turtle.forward()
- end
- for i=1,4 do
- running = placeTracks()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment