Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local num=3
- local lim=100
- local count=0
- while 1==1 do
- for j=1,num do
- for i=1,num do
- turtle.dig()
- if i ~= num then
- turtle.up()
- end
- end
- for i=1,num-1 do
- turtle.down()
- end
- if j ~=num then
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- if j==num then
- turtle.turnLeft()
- for i=1,num-1 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- end
- end
- count = count+1
- end
Advertisement
Add Comment
Please, Sign In to add comment