Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("Enter length")
- local input = read()
- local length = input
- print ("Enter width (right) ")
- local input = read()
- local width = input
- print ("Enter number of block stacks ")
- local input = read()
- local stacks = input
- local answer= "y"
- print ("floor y/n")
- local input = read()
- local turn = false
- local z = 0
- local block = 1
- if input == answer
- then
- for x = 0,width,1
- do
- for y = 0,length,1
- do
- turtle.digDown()
- turtle.placeDown()
- z = z + 1
- if z == 64
- then
- block = block + 1
- if block == stacks + 1
- then
- print ("Insert more blocks")
- local input = read()
- block = 1
- end
- turtle.select(block)
- z = 0
- end
- turtle.forward()
- end
- if turn == false
- then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turn = true
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turn = false
- end
- end
- else
- print("No floor")
- end
Advertisement
Add Comment
Please, Sign In to add comment