Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit ea9f751

Browse files
committed
update readme with new stuff
and remove `<rainbow>`
1 parent 3f7caba commit ea9f751

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,28 @@ The following tags are valid:
113113
- `<underline>`
114114
- `<strikethrough>`
115115
- Events
116-
- `<hover:'text''>` for hover-able text. Formatting applies to inner text as well
116+
- `<hover:action:'text'>` for hover-able text. Formatting applies to inner text as well. Actions:
117+
- `show_text`: 1 text argument
118+
- `show_item`: item id and optional item count
119+
- `show_entity`: entity type id, entity uuid, and optional name (text component)
120+
- *you can skip type, in this case `show_text` will be used as default.* Like this: `<hover:'text'>Hover!`
117121
- `<click:action:'text'>` for clickable text. Actions are following
118122
- `open_url` - following text needs to start with "https://"
119123
- `run_command` - following text needs to start with "/"
120124
- `suggest_command` - following text needs to start with "/"
121125
- `copy_to_clipboard`
126+
- `show_dialog`
127+
- `custom` - send custom click action. two arguments: `id` and `payload`
122128
- Other
123129
- `<font:'file_name'>` to change font
124-
- `<rainbow>` to make the text after rainbow. (Resets when another color is applied or when <reset> is reached)
125130
- `<transition:#hex1:#hex2:step>` - Color Interpolation, step is float between 0 and 1
126131
- `<reset>` to reset formatting
127132

133+
Some tags (like `<click:custom...>`) have multiple arguments. Those are separated by `:`.
134+
Like this:
135+
- `<click:custom:'my_id':'my_payload'>Click for custom click!!!`
136+
- `<hover:show_item:'minecraft:book':'1'>Hover to see a book (not really)`
137+
128138
In some cases (format and reset) you can use shortened versions
129139
- `<b>` is short of `<bold>`
130140
- `<i>` is short of `<italic>`

0 commit comments

Comments
 (0)