Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- a = args[1]
- b = 70
- function Item()
- turtle.digUp()
- sleep(1)
- while turtle.detectUp()==true do
- turtle.digUp()
- sleep(1)
- end
- turtle.select(1)
- turtle.placeUp()
- for i=2,16,1 do
- turtle.select(i)
- turtle.dropUp()
- end
- turtle.select(1)
- end
- --Startcheck: Chests und Fuel
- function Start()
- for o=2,16,1 do
- turtle.select(o)
- turtle.refuel()
- end
- while turtle.getFuelLevel()<(a*2*b+100) do
- f=(a*2*b+100)-turtle.getFuelLevel()
- print(" ")
- print("--------------------------------")
- print("Need more Fuel in Slot 2/16!")
- print(f)
- print("--------------------------------")
- sleep(10)
- for o=2,16,1 do
- turtle.select(o)
- turtle.refuel()
- end
- end
- while turtle.getItemSpace(1)>(64-a) do
- f=turtle.getItemSpace(1)-(64-a)
- print(" ")
- print("--------------------------------")
- print("Need more Chests in Slot 1!")
- print(f)
- print("--------------------------------")
- sleep(10)
- end
- turtle.select(1)
- print(" ")
- print("--------------------------------")
- print("Starting Quarry!")
- print("--------------------------------")
- end
- function Weiter()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- end
- function Mine()
- turtle.digDown()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- while turtle.detectDown()==false do
- turtle.down()
- turtle.digDown()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- end
- for u=1,b,1 do
- turtle.up()
- end
- end
- --Aktion zum ausführen
- Start()
- for w=1,a,1 do
- Mine()
- Item()
- Weiter()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement