MCStacker/tips/en/written_book.hoverEvent.txt

8 lines
1.3 KiB
Plaintext

The type of tooltip to show. Valid values are "show_text" (shows raw JSON text), "show_item" (shows the tooltip of an item which can have NBT tags), <del>"show_achievement" (shows formatted text describing an achievement or statistic. Normal achievement names are green, final achievement names are dark_purple, and statistic names are gray. In addition, a description is given for achievements),</del> and "show_entity" (shows an entity's name, possibly its type, and its UUID).<br><br>
<b>show_text</b>: Can be either a raw String of text, or an Object with the same formatting as this base object. Note that clickEvent and hoverEvent do not function within the tooltip, but the formatting and extra tags still work.
<br><br>
<b>show_item</b>: A string formatted like item NBT data. Contains the "id" tag, and optionally the "Damage" tag and "tag" tag (which is the same compound used as "dataTag" in the /give command).
<br><br>
Deprecated from 1.14+<del><b>show_achievement</b>: The achievement or statistic's name. This uses the same format as achievement and statistic Scoreboard objective criteria and the /achievement command.</del>
<br><br>
<b>show_entity</b>: A string formatted like a compound with the string values "type" (such as "Zombie"), "name", and "id" (should be an entity UUID, but can actually be any string).