Tommo5261

placeWither()

Nov 15th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function placeWither()
  2.     turtle.turnRight()
  3.     turtle.place()
  4.     turtle.turnLeft()
  5.     turtle.forward()
  6.     turtle.turnRight()
  7.     turtle.place()
  8.     turtle.turnLeft()
  9.     turtle.forward()
  10.     turtle.turnRight()
  11.     turtle.place()
  12.     turtle.turnRight()
  13.     turtle.place()
  14.     turtle.turnRight()
  15.     turtle.turnRight()
  16.     turtle.forward()
  17. end
  18.  
  19. function moveForward(d)
  20.     d = d or 1
  21.     for a = 1, d do
  22.         turtle.forward()
  23.     end
  24. end
  25.  
  26. turtle.forward()
  27.  
  28. while true do
  29.     moveForward(4)
  30.     if turtle.refuel(0) then
  31.         turtle.select(1)
  32.         turtle.refuel(1)
  33.         local i = 0
  34.         while i < 10 do
  35.             turtle.select(2)
  36.             placeWither()
  37.             i = i + 1
  38.         end
  39.  
  40.         turtle.down()
  41.         turtle.down()
  42.         turtle.turnRight()
  43.         turtle.turnRight()
  44.         moveForward(35)
  45.         turtle.up()
  46.         turtle.up()
  47.         turtle.turnRight()
  48.         turtle.turnRight()
  49.         turtle.forward()
  50.         sleep(300)
  51.     end
  52. end
Add Comment
Please, Sign In to add comment