Advertisement
King-Skyline

ChunkLoader Follow

Sep 11th, 2023 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. local arguments = {...}
  2.  
  3. if pcall(os.loadAPI, 'turtlebasefunctionality') then
  4. -- print('turtlebasefunctionality found, loading...')
  5. else
  6. print('turtlebasefunctionality not found, downloading from pastebin...')
  7. shell.run('pastebin', 'get', 'dw4vqLdf', 'turtlebasefunctionality')
  8. end
  9.  
  10. loadfile('turtlebasefunctionality')()
  11. dofile('turtlebasefunctionality')
  12.  
  13. if #arguments ~= 1 then
  14. print('Usage: tunnel1x3 <distance>')
  15. return
  16. end
  17.  
  18. local distance = tonumber(arguments[1])
  19.  
  20. if distance < 0 then
  21. print('Distance must be positive')
  22. return
  23. end
  24.  
  25. local function calculate_ultimate_fuel_requirements()
  26. local fuel_requirements = distance
  27. return fuel_requirements
  28. end
  29.  
  30. activate_discard_excess_fuel()
  31.  
  32. change_ultimate_fuel_requirements_to(calculate_ultimate_fuel_requirements())
  33.  
  34. term.clear()
  35. print('The turtle will move forward for as much as the distance without digging.')
  36. print('')
  37. print('Place the turtle in the middle of 1x3 (width x height) span.')
  38. print('')
  39. press_enter_to_continue()
  40. check_if_fuel_level_is_sufficient()
  41.  
  42. for i = 1, distance do
  43. go() -- This is the only command left for moving forward
  44. end
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement