Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local torch = 1
- function Header()
- fuel = turtle.getFuelLevel()
- print("=======================================")
- print("Miningprogram")
- print("Slot 16 Fackeln")
- write("Tank: ")
- print(fuel)
- write("Wie lange soll der Gang werden? ")
- lang = tonumber(read())
- while not tonumber(lang)do
- print("Bitte Zahl eingeben")
- lang = io.read()
- end
- end
- function Dig()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- while turtle.detectUp() do -- prueft ob ueber ihm noch etwas ist
- turtle.digUp() -- haut den block ueber sich ab
- sleep(0.5) -- wartet, funktioniert nur wen der block direck nachfaellt ist ein block
- end
- while not turtle.detectDown() do -- prueft ob ueber ihm noch etwas ist
- turtle.select(1)
- turtle.placeDown()
- sleep(0.25) -- wartet, funktioniert nur wen der block direck nachfaellt ist ein block
- end
- turtle.forward()
- end
- function Gangmitte()
- for i = 1,3 do
- Dig()
- lang = lang -1
- end
- Left()
- Gangseite()
- Gangseite()
- Right()
- end
- function Torch()
- Left()
- Left()
- turtle.select(16)
- turtle.place()
- Left()
- Left()
- end
- function Torch2()
- turtle.select(16)
- turtle.place()
- end
- function Back()
- turtle.back()
- Torch2()
- for z = 1,9 do
- turtle.back()
- end
- Left()
- Torch2()
- Left()
- end
- function Left()
- turtle.turnLeft()
- end
- function Right()
- turtle.turnRight()
- end
- function Gangseite()
- for u = 1,10 do
- Dig()
- end
- Back()
- end
- Header()
- while lang > 0 do
- Gangmitte()
- end
Advertisement