Minecraft Wiki
Advertisement
tellraw
Nivel de permiso
requerido
  • 2 ‌[Solo JE]
  • 1 ‌[Solo BE]
Restricciones

Ninguno

No confundir con Comandos/tell o Comandos/say.
Este artículo trata sobre el comando que envía mensajes JSON. Para el comando para susurrar, véase Comandos/msg.

Envía un mensaje JSON a los jugadores.

Sintaxis[]

  • Java Edition
tellraw <targets> <message>
  • Bedrock Edition
tellraw <target: target> <raw json message: json>

Argumentos[]

JE<targets>: entity
BE: target: target: CommandSelector<jugador>

Especifica los jugadores a los que enviar el mensaje.
Must be a player name, a target selector or a UUID[Solo Java Edition]. And the target selector must be of player type.

JE<message>: component
BE: raw json message: json: Json::Value

Especifica el mensaje a enviar.
Must be a raw JSON text.

Resultado[]

ComandoProvocaJava EditionBedrock Edition
cualquieralos argumentos no están especificados correctamente No es ejecutable unparseable
jugador: objetivo no está en tipo de jugador N/A Falla
<targets> o player: target no se resuelve en uno o más jugadores en línea Falla
éxito

Salida[]

ComandoEdiciónSituaciónContador de éxitos/execute store success .../execute store result ...
cualquieraJava EditionEn caso de fallo000
Sobre el éxito11el número de jugadores objetivo
Bedrock EditionEn caso de fallo0N/AN/A
Sobre el éxito1N/AN/A

Ejemplos[]

  • Para enviar el mensaje "Hola" en el chat:
  • Para enviar el mensaje "Soy azul" de color azul en el chat:
    • /tellraw @a {"text":"Soy azul","color":"blue"}[Solo Java Edition]
    • /tellraw @a {"rawtext":[{"text":"§bSoy azul"}]}[Solo Bedrock Edition]
  • Para enviar el mensaje "¡Pasa sobre mí!" en el chat, que muestra el texto "¡Hola!" cuando pasa el cursor sobre:
    • /tellraw @a {"text":"¡Pasa por mí!","hoverEvent":{"action":"show_text","value":"¡Hola!"}}[Solo Java Edition]
  • Utilice '\n' para insertar una nueva línea:
  • Mostra un mensaje en los glifos de la mesa de encantamientos:
    • /tellraw @a {"text":"Hola mundo","font":"alt"}[Solo Java Edition]
  • Mostra un mensaje en runas del maldeano:
    • /tellraw @a {"text":"Hola mundo","font":"illageralt"}[Solo Java Edition]

Historial[]

Para cambios en el texto JSON sin formato utilizado por este comando, véase Formato de texto JSON sin formato § Historial.
Java Edition
1.7.213w37aSe agregó /tellraw.
1.1821w37aSe agregó Plantilla:Font.
Bedrock Edition
1.9.0beta 1.9.0.0Se agregó /tellraw.

Ver también[]

  • /say — envía un mensaje de texto sin formato a todos los jugadores
  • /tell — envía un mensaje de texto privado sin formato a jugadores específicos
Advertisement