Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for k,v in pairs({"right","left","top","bottom","front","back"}) do
- if peripheral.getType(v)=="modem" then
- rednet.open(v)
- isOpen=true
- end
- end
- print("Computercraft Turtle Control Client")
- print("-----------------------------------")
- print(" W E T Y")
- print(" A S D Q G H")
- print(" U I O P B N")
- while true do
- local event, key = os.pullEvent("char")
- rednet.broadcast(key)
- if key == "x" then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement