tellraw
| Nivel de permiso requerido |
|
|---|---|
| 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[]
| Comando | Provoca | Java Edition | Bedrock Edition |
|---|---|---|---|
| cualquiera | los 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[]
| Comando | Edición | Situación | Contador de éxitos | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| cualquiera | Java Edition | En caso de fallo | 0 | 0 | 0 |
| Sobre el éxito | 1 | 1 | el número de jugadores objetivo | ||
| Bedrock Edition | En caso de fallo | 0 | N/A | N/A | |
| Sobre el éxito | 1 | N/A | N/A |
Ejemplos[]
- Para enviar el mensaje "Hola" en el chat:
/tellraw @a "Hola"[Solo Java Edition]/tellraw @a {"rawtext":[{"text":"Hola"}]}[Solo Bedrock Edition]
- 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:
/tellraw @a "Text1\nText2"[Solo Java Edition]/tellraw @a {"rawtext":[{"text":"Text1\nText2"}]}[Solo Bedrock Edition]
- 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.2 | 13w37a | Se agregó /tellraw. | |||
| 1.18 | 21w37a | Se agregó Plantilla:Font. | |||
| Bedrock Edition | |||||
| 1.9.0 | beta 1.9.0.0 | Se 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