Advertisement
Guest User

turtle test7

a guest
Apr 6th, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function ss(s) turtle.select(s)   end
  2.  
  3. local chestSpot = 16
  4. local sapplinSpot = 1
  5. local logSpot = 2
  6. local enderchestSpot = 15
  7.  
  8. term.clear() term.setCursorPos(1,1)
  9. print("----------------------------------")
  10. print("------ChromaLTS's treefarm--------")
  11. print("-> Slot " ..         chestSpot   ..  ": Chest(1)")
  12. print("-> Saplin=" ..       sapplinSpot     )
  13. print("-> Log=" ..          logSpot         )
  14. print("-> Enderchest=" ..   enderchestSpot  )
  15. print("----------------------------------")
  16.  
  17. --empty into chest
  18. ss(chestSpot)
  19.  
  20. print("detect")
  21. print(turtle.detect())
  22.  
  23.  
  24.  
  25. --place enderchest
  26. --takeout 1 stack coal
  27. --refuel
  28.  
  29.  
  30. local function Refuel()
  31.     for i=1,16,1 do
  32.          ss(i)
  33.         turtle.refuel()
  34.     end
  35. end
  36.  
  37.  
  38. --get stuff back
  39.  
  40.  
  41.  
  42.  
  43. print("New fuel level -> " .. turtle.getFuelLevel())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement