Advertisement
Guest User

mine

a guest
Nov 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. x = 0
  2. asks = ""
  3. ask = ""
  4. amount = ""
  5. function stairs()
  6.   turtle.dig()
  7.   turtle.digDown()
  8.   turtle.down()
  9.   turtle.dig()
  10.   turtle.forward()
  11. end
  12. function strip()
  13.   while x == 0 do
  14.     turtle.dig()
  15.     turtle.forward()
  16.     turtle.digUp()
  17.     if turtle.getItemCount(16) == 1 then
  18.       turtle.turnLeft()
  19.       turtle.turnLeft()
  20.       while turtle.detect() == false do
  21.         turtle.forward()
  22.       end
  23.       while turtle.detect() do
  24.         turtle.up()
  25.         turtle.forward()
  26.       end
  27.     break
  28.     end
  29.   end
  30. end
  31. term.write("are we going down or staying? ")
  32. ask = read()
  33. if ask ~= "staying" then
  34.   term.write("How many cords down? ")
  35.   amount = read()
  36.   amount = amount - 1
  37.   for i = 0, amount do
  38.     stairs()
  39.   end
  40.   strip()
  41. else
  42.   strip()
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement