Skip to content

Commit 1400bfa

Browse files
committed
docs: expand nametag management documentation with usage examples and options
1 parent 865e2ba commit 1400bfa

File tree

1 file changed

+51
-0
lines changed
  • content/docs/characters/manage

1 file changed

+51
-0
lines changed

content/docs/characters/manage/tag.mdx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,54 @@
22
title: Nametags
33
description: Manage your character's name tags.
44
---
5+
6+
You can customize your character's nametag using the `/character tag` command.
7+
8+
## Usage
9+
10+
```
11+
/character tag [reset|set] <option> [<value>]
12+
```
13+
14+
- `reset` will reset the specified option to its default value.
15+
- `set` will set the specified option to the provided value.
16+
17+
## Options
18+
19+
| Option | Type / Values | Description |
20+
| ------------------ | ----------------------------------------------------- | ------------------------------ |
21+
| alignment | center, left, right | Text alignment |
22+
| background-color | Color name or hex (no #, supports alpha) | Background color |
23+
| billboard | fixed, vertical, horizontal, center | Billboard mode |
24+
| brightness | Block light (0-15), Sky light (0-15) | Nametag brightness |
25+
| default-background | Boolean | Use default background |
26+
| left-rotation | Quaternion (float) (x, y, z, w) | Left rotation |
27+
| line-width | Integer (non-negative) | Line width |
28+
| offset | Vector (float) (x, y, z) | Offset position |
29+
| right-rotation | Quaternion (float) (x, y, z, w) | Right rotation |
30+
| scale | Float (0.05 - 10) | Scale of nametag |
31+
| see-through | Boolean | Whether nametag is see-through |
32+
| text | String (MiniMessage supported) | Nametag text |
33+
| text-opacity | Float (percentage, 100% = invisible, 0% = no opacity) | Text opacity |
34+
| text-shadow | Boolean | Enable text shadow |
35+
| visibility | Boolean | Nametag visibility |
36+
37+
## Examples [!toc]
38+
39+
Set the nametag text:
40+
41+
```
42+
/character tag set text <rainbow>Hello there!</rainbow><newline><blue>Welcome to the game!</blue>
43+
```
44+
45+
Change the background color to red:
46+
47+
```
48+
/character tag set background-color red
49+
```
50+
51+
Reset the scale to default:
52+
53+
```
54+
/character tag reset scale
55+
```

0 commit comments

Comments
 (0)