Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- shell.run("clear")
- while true do
- print("Art der Bewegung")
- bewegung = io.read()
- if bewegung == "f" then
- print("Anzahl der Bewegungen")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"f")
- sleep(0.5)
- shell.run("clear")
- end
- end
- if bewegung == "r" then
- print("Anzahl der Bewegungen")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"r")
- sleep(0.5)
- shell.run("clear")
- end
- end
- if bewegung == "b" then
- print("Anzahl der Bewergungen")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"b")
- sleep(0.5)
- shell.run("clear")
- end
- end
- if bewegung == "l" then
- print("Anzahl der Bewegungen")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"l")
- sleep(0.5)
- shell.run("clear")
- end
- end
- if bewegung == "p" then
- print("Anzahl der zu platzierenden BlåB6cke")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"p")
- sleep(0.5)
- shell.run("clear")
- end
- end
- if bewegung == "u" then
- print("Anzahl der BlåB6cke")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"u")
- sleep(0.5)
- shell.run("clear")
- end
- end
- if bewegung == "d" then
- print("Anzahl der BlåB6cke")
- anzahl = io.read()
- shell.run("clear")
- for i=-anzahl,-1 do
- rednet.send(5221,"d")
- sleep(0.5)
- shell.run("clear")
- end
- end
- end
Add Comment
Please, Sign In to add comment