You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/adventure/minimessage/format.mdx
+8-30Lines changed: 8 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,38 +237,16 @@ Arguments
237
237
*`_action_`, the type of hover event, one of this [list](https://jd.advntr.dev/api/latest/net/kyori/adventure/text/event/HoverEvent.Action.html#field.summary)
238
238
*`_value_`, argument(s) specific to each event action:
239
239
240
-
[//]: #(Starlight's padding doesn't apply for a spanned cell, so a manual padding is added)
<td>a `Key` for the item's type, optionally followed by count (an integer) and a list of <ahref="https://minecraft.wiki/w/Data_component_format"target="_blank">data component</a> key value pairs</td>
<td>a `Key` for the item's type, optionally followed by count (an integer) and tag (a <ahref="https://minecraft.wiki/w/NBT_format#SNBT_format"target="_blank">SNBT</a> string)</td>
261
-
</tr>
262
-
<tr>
263
-
<td>`show_entity`</td>
264
-
<td>`_type_:_uuid_[:_name_]`</td>
265
-
<td>a `Key` ID of the entity type, the entity's UUID, and an optional custom name</td>
266
-
</tr>
267
-
</tbody>
268
-
</table>
240
+
[//]: #(FIXME: Starlight's padding doesn't apply for a spanned cell, so a manual padding is added)
|`show_item`|`_type_[:_count_[(:_componentKey_:_componentValue_)...]]`| a `Key` for the item's type, optionally followed by count (an integer) and a list of [data component](https://minecraft.wiki/w/Data_component_format) key value pairs |
245
+
| ^ | <spanstyle="padding-left: 1rem"><Badgevariant="caution"text="Legacy" /> `_type_[:_count_[:tag]]`</span> | a `Key` for the item's type, optionally followed by count (an integer) and tag (a [SNBT](https://minecraft.wiki/w/NBT_format#SNBT_format) string) |
246
+
|`show_entity`|`_type_:_uuid_[:_name_]`| a `Key` ID of the entity type, the entity's UUID, and an optional custom name |
269
247
270
248
:::caution
271
-
`_type_[:_count_[:tag]]` value format for `show_item` action is considered legacy and support for it may eventually be removed.
249
+
The `_type_[:_count_[:tag]]` value format for the`show_item` action is considered legacy and support for it may eventually be removed.
272
250
The recommended format is `_type_[:_count_[(:_componentKey_:_componentValue_)...]]`.
0 commit comments