Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Created by FuQu2---
- term.clear()
- term.setCursorPos(1,1)
- ----------------------------------------------------------------
- print("----------Strip-Mining-----------")
- print()
- print("Lege Fackeln in den unteren rechten Slot!")
- print()
- print("---------------------------------")
- ----------------------------------------------------------------
- print("In 10 Sekunden gehts los!!!")
- sleep(10)
- ----------------------------------------------------------------
- term.clear()
- term.setCursorPos(1,1)
- print("---------------------------------")
- print()
- textutils.slowPrint("Anzahl der Nebengaenge:") a = io.read()
- a = tonumber(a)
- print()
- textutils.slowPrint("Laenge der Seitengaenge:") b = io.read()
- print()
- b = tonumber(b)
- print("---------------------------------")
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowWrite("Mining...")
- --------Functions start HERE-----------
- function AbbV()
- while turtle.detect() do
- turtle.dig()
- sleep(0.5)
- end
- end
- function AbbO()
- while turtle.detectUp() do
- turtle.digUp()
- sleep(0.5)
- end
- end
- function Lava()
- while not turtle.detectDown() do
- turtle.selectSlot(1)
- turtle.placeDown()
- end
- end
- function abb()
- AbbV()
- sleep(0.5)
- turtle.forward()
- Lava()
- AbbO()
- end
- function fackel()
- turtle.Up()
- turtle.select(16)
- turtle.placeDown()
- turtle.back()
- turtle.down()
- end
- function mg()
- abb()
- turtle.turnRight()
- AbbV()
- turtle.up()
- AbbV()
- turtle.turnLeft()
- turtle.turnLeft()
- AbbV()
- turtle.down()
- AbbV()
- turtle.turnRight()
- end
- function sgw()
- local c = 0
- while c <= b do
- abb()
- c = c + 1
- end
- fackel()
- turtle.turnRight()
- turtle.turnRight()
- while c == 1 do
- abb()
- c = c - 1
- end
- end
- -------------I Main-Script I------------------
- local d = 1
- while d <= a do
- mg()
- mg()
- mg()
- turtle.turnRight()
- sgw()
- sgw()
- turtle.turnLeft()
- d = d + 1
- end
- print("Fertig!!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement