BillBodkin

floorFromWall

Sep 19th, 2021 (edited)
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Topup()
  2.     function Fuel()
  3.         while turtle.getFuelLevel() < 5000 do
  4.             turtle.select(16)
  5.             while turtle.placeUp() == false do
  6.                 turtle.digUp()
  7.                 turtle.attackUp()
  8.             end
  9.             turtle.select(15)
  10.             turtle.suck(64)
  11.             turtle.refuel(64)
  12.             turtle.select(16)
  13.         end
  14.     end
  15.     --Fuel()
  16.     while turtle.getFuelLevel() < 100 do
  17.         print("GIMME FUEL")
  18.         turtle.select(15)
  19.         turtle.refuel(64)
  20.         sleep(1)
  21.     end
  22.     turtle.select(1)
  23.     while turtle.getItemCount() <= 1 do
  24.         turtle.select(16)
  25.         while turtle.placeUp() == false do
  26.             turtle.digUp()
  27.             turtle.attackUp()
  28.         end
  29.         turtle.select(1)
  30.         turtle.suckUp(63)
  31.         turtle.select(16)
  32.         turtle.digUp()
  33.         turtle.select(1)
  34.     end    
  35. end
  36.  
  37. local sslt = 0
  38. while true do
  39.     Topup()
  40.     turtle.place()
  41.     if turtle.back() == false then
  42.         turtle.turnLeft()
  43.         if sslt == 0 then
  44.             turtle.up()
  45.             turtle.placeDown()
  46.             break
  47.         end
  48.         sslt = 0
  49.     else
  50.         sslt = sslt + 1
  51.     end
  52. end
Add Comment
Please, Sign In to add comment