Appearance
helix / TextComponent
Type Alias: TextComponent โ
TextComponent =
string|TellrawPart|TellrawPart[] |Record<string,unknown>
Defined in: core/values/item/state.ts:88
Text for item names and lore: a string or a styled text component object.
item.named("Excalibur") item.named(text("Time Lantern").color(Color.AQUA).italic(false)) item.named({ text: "Time Lantern", color: "aqua", italic: false }) item.named([text("Time "), text("Lantern").color(Color.AQUA)])