Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("If you want to dig more than 1 square you should have an ender chest 0 blocks away from the left side of the turtle, otherwise you can have any inventory at any distance from the left side of the turtle. If you are digging only one square then the first 2 slots are used for diamonds and one other important item, put one item in each slot (Diamond is not a most). How many squares you wanna dig? (Size and the depth can be decided next)")
- zek=read()
- mumu=zek
- mumu=mumu+0
- print("Type 1 to turn on automatic refueling (using the coal instead of banking it), and 0 to have it off.(Recommended to have it on if digging more than one square)")
- zex=read()
- jogo=zex
- jogo=jogo+0
- local p=0
- function mustrefuel()
- for i=1,16 do
- turtle.select(i)
- turtle.refuel()
- turtle.select(1)
- end
- end
- function home()
- turtle.turnLeft()
- turtle.select(3)
- turtle.dig()
- os.sleep(0)
- for tp=1,mumu do
- turtle.select(4)
- turtle.digUp()
- function walk1()
- for i=1,gf do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- end
- walk1()
- turtle.select(4)
- turtle.placeUp()
- turtle.turnRight()
- turtle.turnRight()
- walk1()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- walk1()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- end
- os.shutdown()
- end
- function refuel()
- if jogo==1 then
- mustrefuel()
- end
- end
- v=turtle.getFuelLevel()
- print("The fuel level is "..v.." (4000 is a safe fuel level for mid sized digging -5*5*60- ) , if u want to refuel place fuel in the turtle during the next 20 secs.")
- sleep(20)
- mustrefuel()
- os.sleep(1)
- print("What is the wedth of the minning area u want to mine? (This quarry will mine only squares)")
- x=read()
- gf=x
- gf=gf-0
- v=x
- v=v-0
- while v>0 do
- v=v-2
- if v==0 then
- c=0
- end
- if v<0 then
- c=1
- end
- end
- print("What is the Y ?")
- y=read()
- y=y-5
- print("How far is the chest from the left side of the turtle?")
- g=read()
- print("Remember to put 1 chunk loader if you are going to be away from the turtle, and two if you are digging more than one square. Put one behind its starting point and another above it.How many layers do you want to skip?")
- s=read()
- for jhg=1,zek do
- for i=1,s do
- while not turtle.down() do
- turtle.digDown()
- turtle.attackDown()
- end
- end
- m=x/2
- t=x-1
- function bank()
- refuel()
- turtle.select(16)
- w=turtle.getItemCount(16)
- kl=turtle.getFuelLevel()
- if w>0 or kl<500 then
- refuel()
- for z=1,p+s do
- while not turtle.up() do
- turtle.digUp()
- turtle.attackUp()
- end
- end
- turtle.turnLeft()
- for i=1,g do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- for l=3,16 do
- turtle.select(l)
- turtle.drop()
- end
- turtle.select(1)
- turtle.turnRight()
- if kl<500 then
- home()
- end
- turtle.turnRight()
- for i=1,g do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- turtle.turnLeft()
- for k=1,p+s do
- while not turtle.down() do
- turtle.digDown()
- turtle.attackDown()
- end
- end
- end
- turtle.select(1)
- end
- function start()
- while not turtle.down() do
- turtle.digDown()
- turtle.attackDown()
- end
- end
- function dig()
- for i=1,t do
- os.sleep(0)
- while not turtle.forward() do
- os.sleep(0)
- turtle.dig()
- turtle.attack()
- end
- end
- end
- function turnR()
- turtle.turnRight()
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- turtle.turnRight()
- end
- function turnL()
- turtle.turnLeft()
- os.sleep(0)
- while not turtle.forward() do
- os.sleep(0)
- turtle.dig()
- os.sleep(0)
- turtle.attack()
- os.sleep(0)
- end
- os.sleep(0)
- turtle.turnLeft()
- end
- for z=1,y-s do
- os.sleep(0)
- start()
- for i=1,m do
- dig()
- turnR()
- dig()
- turnL()
- end
- if c==1 then
- for i=2,x do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i=2,x do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- turtle.turnLeft()
- turtle.turnLeft()
- end
- turtle.turnLeft()
- for v=1,x-c do
- while not turtle.forward() do
- turtle.attack()
- turtle.dig()
- end
- end
- turtle.turnRight()
- p=p+1
- bank()
- end
- for i=1,y do
- while not turtle.up() do
- turtle.digUp()
- turtle.attackUp()
- end
- end
- turtle.turnLeft()
- for i=1,16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.select(1)
- turtle.dig()
- turtle.select(2)
- turtle.turnLeft()
- turtle.dig()
- turtle.turnLeft()
- function walk()
- for i=1,gf do
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- end
- walk()
- turtle.turnRight()
- turtle.select(2)
- function place()
- while not turtle.place() do
- turtle.dig()
- turtle.attack()
- end
- end
- place()
- function placeUp()
- while not turtle.placeUp() do
- turtle.digUp()
- turtle.attackUp()
- end
- end
- turtle.turnRight()
- walk()
- turtle.digUp()
- turtle.turnRight()
- turtle.turnRight()
- walk()
- turtle.turnLeft()
- turtle.select(2)
- placeUp()
- turtle.turnLeft()
- turtle.select(1)
- turtle.place()
- turtle.turnRight()
- end
- home()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement