Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --StripMine Nuaoa 0.1
- local targs = { ... }
- local width = 1
- local t = 16 --TorchSlot
- local tl = 10 -- Torch Length
- function fuelcheck()
- for i=1,16 do
- if turtle.getFuelLevel() > 80 then
- break
- end
- turtle.select(i)
- turtle.refuel(1)
- end
- end
- function torchplace()
- turtle.select(t)
- turtle.digDown()
- return turtle.placeDown()
- end
- function tunnel(len,bool)
- for i =1,len do
- fuelcheck()
- while turtle.detect() do
- turtle.dig()
- sleep(0.4)
- end
- while turtle.detectDown() do
- turtle.digDown()
- sleep(0.4)
- end
- if ( i%tl == 0 or i==1 or i==len) and bool then
- if not torchplace() then
- error("No Torches Left")
- end
- end
- turtle.forward()
- end
- end
- function scanAndDrop()
- for i =1,14 do
- turtle.select(i)
- if turtle.compareTo(15) then
- turtle.drop()
- end
- end
- end
- if targs[2] ~= nil then
- width = targs[2]
- end
- local right = false
- for j=1,width do
- if j%8 == 0 or j==1 or j==width then
- tunnel(targs[1],true)
- else
- tunnel(targs[1],false)
- end
- if right then
- turtle.turnRight()
- tunnel(1,false)
- turtle.turnRight()
- else
- turtle.turnLeft()
- tunnel(1,false)
- turtle.turnLeft()
- end
- right = not right
- scanAndDrop()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement