Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = {...}
- direct = input[1]
- -- direction :
- quant = input[2]
- -- SLOT ASSIGNMENT
- -- Remote 1
- -- Dynamite 15
- -- Extra fuel 16
- function refuel()
- distfuel = quant * 2 + 1000
- if turtle.getFuelLevel() <= distfuel then
- turlle.select(16)
- turtle.refuel()
- end
- end
- function walkForward()
- while turtle.forward() == false do
- turtle.dig()
- end
- end
- function triwalkForward()
- for go = 1, 3 do
- walkForward()
- turtle.digUp()
- end
- end
- function walkDown()
- while turtle.down == false do
- turtle.digDown()
- end
- end
- function placeDyn()
- turtle.select(1)
- turtle.placeUp()
- turtle.select(15)
- turtle.placeUp()
- end
- function tunnelForward()
- walkForward()
- turtle.digUp()
- walkForward()
- turtle.digUp()
- for cycle = 1, quant - 1 do
- placeDyn()
- triwalkForward()
- end
- placeDyn()
- end
- if direct == "forward" then
- tunnelForward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement