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

helix / FireworkValue

Class: FireworkValue โ€‹

Defined in: core/values/firework.ts:41

The minecraft:fireworks component: bursts and flight duration.

A rocket with no explosions does no damage.

Item.FIREWORK_ROCKET.firework( Firework({ flight: 1, explosions: [{ shape: FireworkShape.SMALL_BALL, colors: [0xff0000] }] }), )

Extends โ€‹

Constructors โ€‹

Constructor โ€‹

new FireworkValue(input): FireworkValue

Defined in: core/values/firework.ts:42

Parameters โ€‹

input โ€‹

FireworkInput

Returns โ€‹

FireworkValue

Overrides โ€‹

NbtValue.constructor

Properties โ€‹

lowered โ€‹

protected readonly lowered: true = true

Defined in: core/values/value.ts:14

Tells lowered values apart from plain objects (e.g. NBT compounds).

Inherited from โ€‹

NbtValue.lowered


value โ€‹

readonly value: NbtInput

Defined in: core/values/nbt/snbt.ts:27

Inherited from โ€‹

NbtValue.value

Methods โ€‹

keys() โ€‹

keys(): string[] | undefined

Defined in: core/values/nbt/snbt.ts:32

The top-level keys of a compound, or undefined for raw SNBT or anything else.

Returns โ€‹

string[] | undefined

Inherited from โ€‹

NbtValue.keys

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