Skip to content

Commit 1e9dd4d

Browse files
authored
Add text color formatting section (#145)
Signed-off-by: TimtyG <36088127+TimtyG@users.noreply.github.com>
1 parent da6a370 commit 1e9dd4d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/content/docs/en-US/events/eventcommands.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,41 @@ Allows you to display a textbox that will pop up for the player.
1616
- *Text*: This is the text to be displayed. Allows the use of Chat commands.
1717
- *Face*: This allows you to select a face that will appear in the chatbox. These are in your "\resources\faces\" folder. You can see a preview of the face in the box to the side.
1818

19+
#### **Text Formatting**
20+
The **Show Text** and **Show Options** commands allow you to format text using special commands. One of the supported formatting options is **colorizing text**.
21+
22+
##### **Text Color**
23+
You can change the color of displayed text using the `\c{}` tag. This supports:
24+
25+
- **Named colors:**
26+
- `black`
27+
- `red`
28+
- `green`
29+
- `blue`
30+
- `yellow`
31+
- `orange`
32+
- `gray`
33+
- `cyan`
34+
- `pink`
35+
- `magenta`
36+
- `lightcoral`
37+
- `forestgreen`
38+
- `orangered`
39+
40+
**Example:**
41+
`\c{red}This is red text\c{}`
42+
43+
- **Hex color codes:**
44+
45+
**Example:**
46+
`\c{#87CEEB}This is sky blue text\c{}`
47+
48+
**Example usage:**
49+
50+
![image](https://github.com/user-attachments/assets/511d5389-befb-43fa-b029-8fbbdd76122f)
51+
52+
53+
1954
### Show Options
2055
Allows you to give options to the player.
2156

0 commit comments

Comments
 (0)