Cambios

Saltar a: navegación, buscar

Comandos

383 bytes añadidos, 12:35 19 jul 2014
Raw JSON Text
* [[attribute]]s
== Raw Texto JSON Text sin formato ==
The El comando {{cmd|tellraw}} command uses a specific utiliza un formato específico de [https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient%28boolean%29 lenient] [[wikipedia:JSON|JSON]] format for raw para los mensajes de chat messagessin formato. Similar to the Al igual que el formato de notación NBT format notation aboveanteriormente expuestos, concepts such as conceptos tales como cadenas (Strings), objetos ((Objects (Compounds) compuestos)), and Lists are used to represent the various properties of raw y listas se utilizan para representar las diversas propiedades de del chatsin formato.
For a direct Para ver un tutorial to directo de comandos tellraw commands, see consulte [http://www.minecraftforum.net/topic/1975697-174-tellraw-formatting-examples-updated-to-14w02c this threadeste hilo]. For a tool to easily create Para una herramienta que cree fácilmente los comandos tellraw commands, [http://ezekielelin.com/tellraw see thisconsulta esto]. Note that both links are external to the Hay que tener en cuenta que ambos enlaces son externos al Minecraft Wiki and may be outdatedy pueden estar obsoletos <!--Then againPor otra parte, the la Wiki usually is toopor lo general es demasiado. ButPero, at the time of this writingen el momento de escribir esto, the la Wiki is a step aheades un paso adelante -->.
The format of El formato de "<''raw JSON message''>" is a es un ''JSON Object which supports the following '' que soporta los siguientes elementos (mostly optionalen su mayoría opcionales) elements:
<div class="treeview">
* {{nbt|compound}} The base chat component Object
</div>
Due to the Debido a la etiqueta '''extra''' tag, the above format may be recursively nested to produce very complex and functional text stringsel formato anterior puede estar anidado de forma recursiva para producir cadenas de texto muy complejas y funcionales. HoweverSin embargo, a raw una cadena json string doesn't have to be complicated at allsin formato no tiene por qué ser complicado en absoluto: virtually all properties are optional and may be left outprácticamente todas las propiedades son opcionales y pueden ser dejados de lado.
To be validPara que sea válida, each object must have at least either cada objeto debe tener al menos '''text''', '''translate''', or o '''score''' (everything else is optionaltodo lo demás es opcional). As a matter of shorthandComo cuestión de taquigrafía, howeversin embargo, the entire Object may be substituted for a Stringtodo el objeto puede ser sustituido por una cadena (string). In this caseEn este caso, that string will be considered the value of the esa cadena se considerará el valor de la propiedad de '''text''' property. For examplePor ejemplo, <code>"This is raw textEsto es texto sin formato"</code> is equivalent to es equivalente a <code>{text:"This is raw textEsto es texto sin formato"}</code>. This shorthand substitution is valid anywhere a raw text object is required Esta sustitución taquigrafía es válida en cualquier lugar requiere de un objeto de texto sin formato (including the incluida la base <''raw mensaje json messagesin formato''> argument of argumento de {{cmd|tellraw}}, the elements of the los elementos de la lista '''extra''' list, and the y el '''valuevalor''' of a de un "show_text" '''hover_event''').
FinallyPor último, unlike other commands using a diferencia de otros comandos que utilizan JSON, las cadenas de {{cmd|tellraw}} Strings support soportan Unicode via the notation <a través de la notación code>\u####</code>, where donde #### is the es el número hexadecimal Unicode hexadecimal number for the desired characterpara el carácter deseado.
== Historia ==
Colaborador, Bots, Administradores
10 223
ediciones

Menú de navegación