Advertisement
Ubidibity

Nethermark

Aug 5th, 2014
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | None | 0 0
  1. -- Revision history
  2. -- 20140805 initial draft, untested
  3.  
  4. -- Goal:
  5. -- Turtle program to stair up to 54, drop a quarry plus marker,
  6. -- go 200 blocks (dig forward, dig up), drop a quarry plus marker
  7. -- turn right, go 200 blocks, drop the last marker,
  8. -- turn right, turn right, go 200 blocks, turn left, go 200 blocks
  9. -- this should allow me to come up (lava permitting) activate the markers, install the tesseract,
  10. -- and start a nether quarry
  11.  
  12. -- Caveats:
  13. -- For now I'm going to hard code the start y position, yeah, I know, but it's easy.
  14.  
  15. -- It also will go badly if any of the marker drop points happen to be in a lava flow.
  16. -- be prepared to have extra markers.
  17. -- It could also be a drag if the stair way floods with lava.
  18.  
  19. -- Put marker pluses in slot 2
  20.  
  21. -- SET THIS TO THE REAL Y COORD
  22. startY=32
  23. qWidth=200
  24.  
  25. for x=1, 54-startY do
  26.   turtle.digDown()
  27.   if turtle.detect() then
  28.     turtle.dig()
  29.   end
  30.   if turtle.detectUp() then
  31.     turtle.digUp()
  32.   end
  33.   turtle.up()
  34.   if turtle.detect() then
  35.     turtle.dig()
  36.   end
  37.   turtle.forward()
  38.  
  39.   -- drop steps if we hit a pocket of air.
  40.   if not turtle.detectDown() then
  41.     turtle.select(3)
  42.     turtle.placeDown()
  43.   end
  44. end
  45.  
  46. turtle.select(2)
  47. turtle.place()
  48.  
  49. for x=1, qWidth do
  50.   if turtle.detect() then
  51.     turtle.dig()
  52.   end
  53.   if turtle.detectUp() then
  54.     turtle.digUp()
  55.   end
  56.   turtle.forward()
  57. end
  58.  
  59. turtle.turnRight()
  60. turtle.place()
  61.  
  62. for x=1, qWidth do
  63.   if turtle.detect() then
  64.     turtle.dig()
  65.   end
  66.   if turtle.detectUp() then
  67.     turtle.digUp()
  68.   end
  69.   turtle.forward()
  70. end
  71.  
  72. turtle.place()
  73.  
  74. turtle.turnRight()
  75. turtle.turnRight()
  76.  
  77. for x=1, qWidth do
  78.   turtle.forward()
  79. end
  80.  
  81. turtle.turnLeft()
  82.  
  83. for x=1, qWidth do
  84.   turtle.forward()
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement