Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

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)])

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.