Skip to content

Interface Element

🏷️ Properties

faces optional

ts
faces: { down?: Face; east?: Face; north?: Face; south?: Face; up?: Face; west?: Face }

Defined in: packages/resourcepack/format.ts:194

from

ts
from: Vec3

Start point of a cube according to the scheme [x, y, z]. Values must be between -16 and 32.

Defined in: packages/resourcepack/format.ts:164

rotation optional

ts
rotation: { angle: number; axis: "x" | "y" | "z"; origin: Vec3; rescale: boolean }

Defines the rotation of an element.

Defined in: packages/resourcepack/format.ts:172

shade optional

ts
shade: boolean

Defines if shadows are rendered (true - default), not (false).

Defined in: packages/resourcepack/format.ts:193

to

ts
to: Vec3

Stop point of a cube according to the scheme [x, y, z]. Values must be between -16 and 32.

Defined in: packages/resourcepack/format.ts:168