Advertisement
sha256sum

funcraft farmer

Dec 13th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 KB | None | 0 0
  1. --[[
  2.     funcraft burger crafting
  3.     DONT USE 4, 8, 12, FOR CRAFTING
  4.     os.sleep([seconds])
  5.     STILL NEEDS CRAFT FUNCTION
  6. --]]
  7.  
  8.  function forwardNum(blocks)
  9.   for i= 1, blocks do
  10.     turtle.forward()
  11.   end
  12. end
  13.  
  14. local minimumFuel = 17
  15. local minimumGrowth = 16
  16.  
  17. while true do
  18.     turtle.select(2)
  19.     if turtle.getFuelLevel() < minimumFuel
  20.         then if turtle.suckUp(1) == false then
  21.             print("No fuel available")
  22.             return
  23.         end
  24.         turtle.refuel(1)
  25.     end
  26.     turtle.turnLeft()
  27.     turtle.turnLeft()
  28.     if turtle.getItemCount(1) < minimumGrowth
  29.         then if turtle.suckDown() == false then
  30.             print("Out of growth item")
  31.             turtle.turnLeft()
  32.             turtle.turnLeft()
  33.             return
  34.         end
  35.     end
  36.     turtle.turnLeft()
  37.     turtle.turnLeft()
  38.     turtle.select(1)
  39.     turtle.turnRight()
  40.     forwardNum(4)
  41.     turtle.turnRight()
  42.     turtle.place()
  43.     turtle.place()
  44.     turtle.turnRight()
  45.     forwardNum(1)
  46.     turtle.turnLeft()
  47.     turtle.place()
  48.     turtle.place()
  49.     turtle.turnRight()
  50.     forwardNum(1)
  51.     turtle.turnLeft()
  52.     turtle.place()
  53.     turtle.place()
  54.     turtle.turnRight()
  55.     forwardNum(1)
  56.     turtle.turnLeft()
  57.     turtle.place()
  58.     turtle.place()
  59.     turtle.turnRight()
  60.     forwardNum(2)
  61.     turtle.turnLeft()
  62.     turtle.place()
  63.     turtle.place()
  64.     turtle.turnRight()
  65.     forwardNum(1)
  66.     turtle.turnLeft()
  67.     turtle.place()
  68.     turtle.place()
  69.     turtle.turnRight()
  70.     forwardNum(1)
  71.     turtle.turnLeft()
  72.     turtle.place()
  73.     turtle.place()
  74.     turtle.turnRight()
  75.     forwardNum(1)
  76.     turtle.turnLeft()
  77.     turtle.place()
  78.     turtle.place()
  79.     turtle.turnLeft()
  80.     forwardNum(4)
  81.     turtle.turnLeft()
  82.     os.sleep(20)
  83.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement