Hover event

Helpers that build a minecraft:hover_event object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

ShowEntity

ShowEntity
ShowEntity(id, uuid, name?)
id
entity_type id
uuid
string | list of int (exactly 4)
nameoptional
Text

ShowItem

ShowItem
ShowItem(id, components?, count?)
id
item id

ID of the item.

componentsoptional
DataComponentPatch
countoptional
int 1..99

Number of items in the stack. Defaults to 1.

ShowText

ShowText
ShowText(value)
value
Text