Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local miningwell=1
- local chest=2
- local conduit=3
- local args={...}
- local slp = 10
- local lx=30
- local ly=30
- local slot=3
- if args[1] ~= nil then slp = tonumber(args[1]) end
- if args[2] ~= nil then lx = tonumber(args[2]) end
- if args[3] ~= nil then ly = tonumber(args[3]) end
- for j=1,ly do
- slot=0
- for i=1,lx do
- while slot < 13 and turtle.getItemCount(conduit+slot)== 0 do slot=slot+1 end
- if slot==13 then break end
- turtle.select(miningwell)
- turtle.placeDown()
- turtle.back()
- turtle.select(chest)
- turtle.placeDown()
- turtle.select(conduit+slot)
- turtle.place()
- sleep(slp) --don't remember how long
- turtle.select(chest)
- turtle.digDown()
- turtle.down()
- turtle.select(miningwell)
- if turtle.getItemCount(miningwell)>0 then
- slp=slp+1
- turtle.drop()
- end
- turtle.dig()
- turtle.up()
- end
- turtle.select(conduit)
- --- retract the conduits
- while turtle.detect() do turtle.dig(); turtle.forward(); end;
- turtle.turnLeft()
- turtle.back()
- turtle.placeDown()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- end
Advertisement
Add Comment
Please, Sign In to add comment