Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("how high:")
- height = io.read()
- size = 0
- c = 1
- function check()
- checkerfalg = true
- checkercount = 0
- for x = 1, 16 do
- if turtle.getItemCount(x) == 0 then
- checkercount = checkercount + 1
- else
- turtle.select(x)
- end
- end
- if checkercount == 16 then
- checkerfalg == false
- end
- if checkerfalg == false then
- turtle.turnRight()
- turtle.back()
- repeat
- turtle.down()
- until turtle.detectDown() == true
- repeat
- shell.run("clear")
- print("ready? restalked?")
- answer = io.read()
- until answer == "yes"
- repeat
- turtle.up()
- until turtle.detect() == false
- turtle.up()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- repeat
- turtle.forward()
- size = size + 1
- until turtle.detectDown() == false
- size = size - 1
- for i = 0, size do
- turtle.back()
- end
- for u = 1, height do
- for p = 1, 5 do
- for u = 1, size do
- check()
- turtle.placeDown()
- turtle.forward()
- turtle.placeDown()
- end
- turtle.turnRight()
- end
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement