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

spool / Cutscene

Class: Cutscene โ€‹

Defined in: plugins/clip/cutscene.ts:20

Constructors โ€‹

Constructor โ€‹

new Cutscene(dp, label): Cutscene

Defined in: plugins/clip/cutscene.ts:27

Parameters โ€‹

dp โ€‹

Datapack

label โ€‹

string

Returns โ€‹

Cutscene

Methods โ€‹

add() โ€‹

add(clip, opts?): this

Defined in: plugins/clip/cutscene.ts:35

Place clip on the master timeline starting at tick at (default 0).

Parameters โ€‹

clip โ€‹

Clip

opts? โ€‹
at? โ€‹

number

Returns โ€‹

this


at() โ€‹

at(tick, cb): this

Defined in: plugins/clip/cutscene.ts:42

Run cb's commands at master tick tick (sound, title, anything).

Parameters โ€‹

tick โ€‹

number

cb โ€‹

Emit

Returns โ€‹

this


camera() โ€‹

camera(viewer, keys, opts?): this

Defined in: plugins/clip/cutscene.ts:52

Moves viewer along a path from tick at, as a tp clip. Assumes a spectator-style camera.

Parameters โ€‹

viewer โ€‹

Selector

keys โ€‹

readonly Keyframe<Vec3>[]

opts? โ€‹
at? โ€‹

number

Returns โ€‹

this


play() โ€‹

play(ctx): void

Defined in: plugins/clip/cutscene.ts:65

Emit the master schedule that drives the whole sequence.

Parameters โ€‹

ctx โ€‹

FunctionContext

Returns โ€‹

void

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