Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- sides = {"top","left","right","front","top","back"}
- for k = 1, #sides do
- if peripheral.isPresent(sides[k]) then
- side = sides[k]
- end
- end
- if side == nil then
- error("Bitte Modem anschliessen",5)
- end
- rednet.open(side)
- print("Zum stoppen [S] druecken")
- while true do
- evt, key = os.pullEvent("char")
- if key == "s" or key == "S" then
- rednet.broadcast("stop")
- shell.run("clear")
- print("Zum stoppen [S] druecken")
- print("Alle Turtles angehalten")
- sleep(2)
- term.clearLine(2)
- end
- end
Add Comment
Please, Sign In to add comment