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

helix / textJson

Function: textJson() โ€‹

textJson(part, ctx?): any

Defined in: core/ir/lower/text-json.ts:31

A text span as vanilla JSON, for tellraw, signs, books, item names and lore.

ctx is needed for parts that reference a selector, NBT holder or command; without it they throw.

Parameters โ€‹

part โ€‹

TellrawPart

ctx? โ€‹

TextContext

Returns โ€‹

any

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