Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arguments = {...}
- if pcall(os.loadAPI, 'turtlebasefunctionality') then
- -- print('turtlebasefunctionality found, loading...')
- else
- print('turtlebasefunctionality not found, downloading from pastebin...')
- shell.run('pastebin', 'get', 'dw4vqLdf', 'turtlebasefunctionality')
- end
- loadfile('turtlebasefunctionality')()
- dofile('turtlebasefunctionality')
- if #arguments ~= 1 then
- print('Usage: tunnel1x3 <distance>')
- return
- end
- local distance = tonumber(arguments[1])
- if distance < 0 then
- print('Distance must be positive')
- return
- end
- local function calculate_ultimate_fuel_requirements()
- local fuel_requirements = distance
- return fuel_requirements
- end
- activate_discard_excess_fuel()
- change_ultimate_fuel_requirements_to(calculate_ultimate_fuel_requirements())
- term.clear()
- print('The turtle will move forward for as much as the distance without digging.')
- print('')
- print('Place the turtle in the middle of 1x3 (width x height) span.')
- print('')
- press_enter_to_continue()
- check_if_fuel_level_is_sufficient()
- for i = 1, distance do
- go() -- This is the only command left for moving forward
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement