Is there a way to /tellraw the output of a command?

Is there a way to /tellraw the output of a command? - Red Stop Sign on Gray Asphalt Road

I want to /tellraw everyone the result of /team list teamA, which by itself would list the team members on teamA.

is there a way I can broadcast that to all players with a command block?

execute as @a at @s run team list blue

doesn't work, it only says the result in the command block's previous output bar

Using /say or /tellraw instead of /execute doesn't help either

There also isn't any NBT data with a player's team, or I am just unable to find it

I am fine if any type of command works as long as it says the /team list output in chat.






Pictures about "Is there a way to /tellraw the output of a command?"

Is there a way to /tellraw the output of a command? - Back view of unrecognizable traveler with stylish dreadlocks spinning steering wheel while driving car and reflecting in small mirror
Is there a way to /tellraw the output of a command? - Faceless person driving contemporary cab in city
Is there a way to /tellraw the output of a command? - Side view of crop unrecognizable young female driver in denim jacket driving modern car on road near typical residential houses on sunny day



How do you make a Tellraw command?

How to Enter the Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we will send a private message to the player called DigMinecraft with the following command: /tellraw DigMinecraft {"text":"Herobrine joined the game","color":"yellow"}


  • How does Tellraw command work?

    Examples
  • To send the message "Hello" in chat: /tellraw @a "Hello" \u200c ...
  • To send the message "I am blue" colored red in chat: /tellraw @a {"text":"I am blue","color":"blue"} \u200c ...
  • To send the message "Hover me!" in chat, which displays the text "Hi!" when hovered over: ...
  • Use '\\n' to insert a new line:




  • Minecraft Tellraw Command [1.19] Tutorial




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Milada Vigerova, Rachel Claire, Tim Samuel, Maria Orlova