Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function vor ()
- while not turtle.forward() do
- turtle.dig()
- turtle.attack()
- end
- end
- function hoch ()
- while not turtle.up() do
- turtle.digUp()
- turtle.attackUp()
- end
- end
- function runter ()
- while not turtle.down() do
- turtle.digDown()
- turtle.attackDown()
- end
- end
- eingabe = "x"
- print("v or")
- print("z urück")
- print("r echts")
- print("l inks")
- print("o ben")
- print("u nten")
- print("e nde")
- while eingabe ~= "e" do
- eingabe = read()
- if eingabe == "v" then
- vor()
- elseif eingabe == "z" then
- turtle.back()
- elseif eingabe == "r" then
- turtle.turnRight()
- elseif eingabe == "l" then
- turtle.turnLeft()
- elseif eingabe == "o" then
- hoch()
- elseif eingabe == "u" then
- runter()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement