Skip to content

The Chat Functions

RedSponge edited this page Sep 26, 2018 · 5 revisions

The Chat Functions

Below are listed all the commands that deal with chat interaction!

Say

Arguably the simplest one, makes the executor "say" something (though distinguishable from regular chat messages).

Syntax

In Code: Say(string message)

Compiles To: say message

For example: Say("Hello")

Tellraw

As oppose to the say command, tellraw prints the info it gets straight to the chat, no modifications! It is a lot more powerful than the say command, as it is able to feature colored text, selectors, hover and click events etc.

Syntax

Tellraw doesn't use regular strings as arguments, it uses [Text Components].

In Code: TellRaw(TextComponent component)

Compiles To: tellraw [target] <component compilation>

For example: TellRaw(new TextComponent(Segment.Text("Hello").Color(Color.Yellow)))

Example compiles to: tellraw [target] {"text":"Hello","color":"yellow"}

Clone this wiki locally