BillBodkin

witherKiller9000

Oct 17th, 2021 (edited)
1,014
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CheckFuel()
  2.     turtle.select(1)
  3.     while turtle.getFuelLevel() < 1000 do
  4.         turtle.suckDown(32)
  5.         turtle.refuel(64)
  6.     end
  7. end
  8.  
  9. function GetMats()
  10.     turtle.turnLeft()
  11.     turtle.select(2)
  12.     while turtle.getItemCount() < 3 do
  13.         turtle.suck(1)
  14.     end
  15.     turtle.turnLeft()
  16.     turtle.turnLeft()
  17.     turtle.select(3)
  18.     while turtle.getItemCount() < 4 do
  19.         turtle.suck(1)
  20.     end
  21.     turtle.turnLeft()
  22. end
  23.  
  24. function PlaceWither()
  25.     for i = 1, 5 do
  26.         turtle.forward()
  27.     end
  28.     turtle.select(3)
  29.     turtle.place()
  30.     turtle.turnLeft()
  31.     turtle.place()
  32.     turtle.turnLeft()
  33.     turtle.turnLeft()
  34.     turtle.place()
  35.     turtle.turnLeft()
  36.     turtle.back()
  37.     turtle.place()
  38.     turtle.select(2)
  39.     turtle.turnLeft()
  40.     turtle.place()
  41.     turtle.turnLeft()
  42.     turtle.turnLeft()
  43.     turtle.place()
  44.     turtle.turnLeft()
  45.     turtle.back()
  46.     turtle.place()
  47.     for i = 1, 10 do
  48.         turtle.back()
  49.     end
  50.     sleep(6)
  51.     for i = 1, 7 do
  52.         turtle.forward()
  53.     end
  54. end
  55.  
  56. function KilWither()
  57.     turtle.select(16)
  58.     for i = 1, 4 do
  59.         turtle.forward()
  60.     end
  61.     for i = 1, 110 do
  62.         turtle.attack()
  63.         print(i)
  64.     end
  65.     sleep(1)
  66.     for i = 1, 4 do
  67.         turtle.back()
  68.     end
  69.     while turtle.getItemCount() > 0 do
  70.         turtle.dropUp()
  71.     end
  72. end
  73.  
  74. function Cycle()
  75.     CheckFuel()
  76.     GetMats()
  77.     PlaceWither()
  78.     KilWither()
  79. end
  80.  
  81. while true do
  82.     Cycle()
  83. end
RAW Paste Data