Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg = {...}
- local dim = arg[1]
- turtle.select(1)
- for n=1,dim do
- for m=1,dim-1 do
- if turtle.getItemCount() == 0 then
- turtle.select(turtle.getSelectedSlot() + 1)
- end
- turtle.placeDown()
- turtle.forward()
- end
- turtle.placeDown()
- if math.fmod(n,2) == 0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- end
Add Comment
Please, Sign In to add comment