Advertisement
MigasRocha

Cocoa

Jan 1st, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. function refuel()
  2.  
  3. turtle.select(2)
  4. turtle.placeDown()
  5. turtle.suckDown()
  6. turtle.refuel()
  7. turtle.dropDown()
  8. turtle.dig()
  9. turtle.select(1)
  10. end
  11.  
  12. function bonemeal()
  13.  
  14. if turtle.getFuelLevel() < 10 then
  15.    refuel()
  16.    end      
  17.                  
  18. if turtle.getItemCount(16) == 64 then
  19.     cocoa()
  20.       end
  21.    
  22.    turtle.place()
  23. if turtle.getItemCount(1) < 1 then
  24.    bonemeal2()
  25.    end
  26.  
  27.    
  28. end
  29.    
  30. function bonemeal2()  
  31.    
  32.    turtle.up()
  33.    turtle.forward()
  34.        
  35. if turtle.suck() == true then
  36.    turtle.back()
  37.    turtle.down()
  38.    turtle.select(1)
  39.    end
  40.  
  41. while turtle.suck == false do
  42.    turtle.suck()
  43.   end
  44.  end
  45.  
  46. function cocoa()
  47.   turtle.down()
  48.  for i = 3,16 do
  49.   turtle.select(i)
  50.   turtle.drop()
  51.   end
  52.   turtle.up()
  53.   turtle.select(1)
  54.  end
  55.  
  56. while true do
  57. bonemeal()
  58. end
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement