Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

entities.TextOptions

A text display.

Fields

textOptions.at: vector
#

where it stands

textOptions.background: (boolean | number)?
#

true for the vanilla grey panel, or a colour 0xAARRGGBB; default none

textOptions.billboard: entities.Billboard?
#

default "center"

textOptions.hitbox: entities.Hitbox?
#

makes it clickable

textOptions.lineWidth: number?
#

in pixels before wrapping; default 200

textOptions.look: types.Look?
#

which way it faces

textOptions.offset: vector?
#

shifts the drawing from at without moving the entity or its hitbox; default none

textOptions.scale: number?
#

default 1

textOptions.shadow: boolean?
#

draws the text with a shadow; default false

textOptions.text: entities.Shared<types.MiniMessage>
#

the MiniMessage text drawn

textOptions.viewRange: number?
#

in blocks; default 64