Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- -- -- -- -- -- GLAS
- -- FUNKTION VORNE
- function v()
- if not turtle.select() then
- turtle.select(13)
- turtle.place()
- end
- end
- -- FUNKTION OBEN
- function o()
- if not turtle.selectUp() then
- turtle.select(13)
- turtle.placeUp()
- end
- end
- -- FUNKTION UNTEN
- function u()
- if not turtle.selectDown() then
- turtle.select(14)
- turtle.placeUp()
- end
- end
- -- -- -- -- -- -- FUNKTION LINKS & RECHTS
- function lr()
- turtle.turnLeft()
- if not turtle.select() then
- turtle.select(15)
- turtle.place()
- end
- turtle.turnRight()
- turtle.turnRight()
- if not turtle.select() then
- turtle.select(15)
- turtle.place()
- end
- turtle.turnLeft()
- end
- -- -- -- -- -- -- FUNKTION DIG
- function dig()
- if turtle.select() then
- turtle.dig()
- os.sleep(0.5)
- end
- end
- -- -- -- -- -- -- FUNKTION EINGANG
- function eingang()
- turtle.up()
- dig()
- turtle.forward()
- lr()
- o()
- dig()
- turtle.forward()
- lr()
- o()
- turtle.digDown()
- turtle.down()
- lr()
- u()
- end
- -- -- -- -- -- -- ########### PROGRAMM
- eingang()
Advertisement
Add Comment
Please, Sign In to add comment