reverted dante authored by Lxlp's avatar Lxlp
====================== ## Deescription
Sends a json-format chat message to the target player(s). JSON-messages Sends a json-format chat message to the target player(s). JSON-messages
are capeable of hover-events, click events and some other perks that are are capeable of hover-events, click events and some other perks that are
unavailable in the other message mechanics. They also support [color unavailable in the other message mechanics. They also support [color
...@@ -12,24 +11,20 @@ anything about writing JSONs, you can visit [this ...@@ -12,24 +11,20 @@ anything about writing JSONs, you can visit [this
page](https://www.minecraftjson.com/) or [this page](https://www.minecraftjson.com/) or [this
one](http://minecraft.tools/en/tellraw.php) for help. one](http://minecraft.tools/en/tellraw.php) for help.
**Note that double quotes must be replaced with single quotes in > Note that double quotes must be replaced with single quotes in
JSON-message mechanics.** JSON-message mechanics
Please do not post issues relating to this mechanic in the bug-report Please do not post issues relating to this mechanic in the bug-report
subforums unless you're certain that your syntax is correct. subforums unless you're certain that your syntax is correct.
Attributes
----------
## Attributes
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|-----------|---------|----------------------------------------------------------------|---------| |-----------|-----------|----------------------------------------------------------------------|---------|
| message | m | The json-message to send. Must be surrounded by double-quotes. | | | message | m | The json-message to send. Must be surrounded by double-quotes | |
Examples ## Examples
--------
You can use both bukkit color codes or json color formatting: You can use both bukkit color codes or json color formatting:
![](http://fs5.directupload.net/images/160309/u3fdf5cx.jpg) ![](http://fs5.directupload.net/images/160309/u3fdf5cx.jpg)
...@@ -39,7 +34,7 @@ Skills: ...@@ -39,7 +34,7 @@ Skills:
- jsonmessage{m="[{'text':'Hey, i am a red JSON message!','color':'red'}]"} @trigger ~onInteract - jsonmessage{m="[{'text':'Hey, i am a red JSON message!','color':'red'}]"} @trigger ~onInteract
``` ```
------------------------------------------------------------------------ ##
Here's an example of how to make use of hover-events: Here's an example of how to make use of hover-events:
...@@ -50,7 +45,8 @@ Skills: ...@@ -50,7 +45,8 @@ Skills:
- jsonmessage{m="[{'text':'&7With me, you can create hover events','hoverEvent':{'action':'show_text','value':{'text':'&aI am a hover event :)'}}}]"} @trigger ~onInteract - jsonmessage{m="[{'text':'&7With me, you can create hover events','hoverEvent':{'action':'show_text','value':{'text':'&aI am a hover event :)'}}}]"} @trigger ~onInteract
``` ```
------------------------------------------------------------------------
##
And click events can be created like this. This is especially useful for And click events can be created like this. This is especially useful for
the /mm signal command to create interactive quest mobs. This example the /mm signal command to create interactive quest mobs. This example
... ...
......