Skip to content

@minecraft/server


@minecraft/server / TitleDisplayOptions

Interface: TitleDisplayOptions ​

Defined in: @minecraft/server/index.d.ts:25032

Contains additional options for displaying a title and optional subtitle.

Properties ​

fadeInDuration ​

fadeInDuration: number

Defined in: @minecraft/server/index.d.ts:25040

Remarks ​

Fade-in duration for the title and subtitle, in ticks. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds.


fadeOutDuration ​

fadeOutDuration: number

Defined in: @minecraft/server/index.d.ts:25048

Remarks ​

Fade-out time for the title and subtitle, in ticks. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds.


stayDuration ​

stayDuration: number

Defined in: @minecraft/server/index.d.ts:25057

Remarks ​

Amount of time for the title and subtitle to stay in place, in ticks. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds.


subtitle? ​

optional subtitle?: string | RawMessage | (string | RawMessage)[]

Defined in: @minecraft/server/index.d.ts:25063

Remarks ​

Optional subtitle text.