Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- if #tArgs ~= 2 then
- print("Usage: excarect <x> <y>")
- return
- end
- while(true) do
- for y=1,x<tonumber( tArgs[0] ) do
- for x=1,x<tonumber( tArgs[1] ) do
- if turtle.detect() then turtle.dig() end
- turtle.forward()
- end
- if y % 2 then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement