Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- local g=2
- if turtle.getItemCount(s)==0
- then
- s=s+1
- if s<17
- then
- turtle.select(s)
- else
- s=1
- turtle.select(s)
- while g == 2
- do
- print("Waiting for supplies. Type 1 to continue building.")
- g=read()
- end
- end
- end
- end
- -- main script the floor
- print("What are the side lengths of your floor?")
- x=read()
- s=1
- for i=1,x
- do
- for i=1,(x-1)
- do
- check()
- turtle.placeDown()
- sleep(.1)
- turtle.forward()
- end
- turtle.placeDown()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=1, (x-1)
- do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement