Appearance
helix / TextComponent
Type Alias: TextComponent
TextComponent =
string|Record<string,unknown>
Defined in: core/values/item.ts:37
A text component for an item's name/lore lines: a plain string (rendered as {"text":"..."}) or a raw text-component object for styling - color, a suppressed italic, click/hover, nested extra, etc. Keeps "typed concepts not strings": authors build the component, the same object lowers to both the SNBT stack form and the predicate JSON form.
item.named("Excalibur") item.named({ text: "Time Lantern", color: "aqua", italic: false })