Advertisement
100Toby1

Untitled

Mar 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. local p = peripheral.wrap("right")
  2. print("What is the Y value of this turtle?")
  3. local height = tonumber(read())
  4.  
  5. while height > 6 do
  6. p.dig()
  7. p.digUp()
  8. turtle.forward()
  9. p.digUp()
  10. turtle.down()
  11. height = height - 1;
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement