Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tArgs = { ... }
- togo = tonumber(tArgs[1])
- function compare()
- for c=1,4 do
- turtle.select(c)
- if not turtle.compare(c) then
- turtle.dig()
- sleep(.2)
- end
- end
- end
- function spin()
- for s=1,4 do
- compare()
- sleep(.2)
- turtle.turnRight()
- end
- end
- function home()
- while not turtle.detectUp() do
- turtle.up()
- end
- end
- for i=1,togo do
- turtle.digDown()
- spin()
- turtle.down()
- end
- home()
- turtle.back()
Advertisement
Add Comment
Please, Sign In to add comment