Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("how Long?")
- a=tonumber(read())
- term.setCursorPos(1,3)
- term.clearLine()
- print("how Wide?")
- b=tonumber(read())
- turtle.placeDown()
- x=1
- y=0
- s=1
- print("using slot " ..s)
- while y<b do
- y=y+1
- while x<a do
- x=x+1
- turtle.forward()
- turtle.placeDown()
- if turtle.getItemCount(s)==0 then
- s=s+1
- print("now using slot " ..s)
- turtle.select(s)
- end
- end
- x=1
- q=tonumber(y)
- if q%2==1 then
- turtle.turnRight()
- turtle.forward()
- turtle.placeDown()
- turtle.turnRight()
- elseif q%2==0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("done")
Add Comment
Please, Sign In to add comment