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

twine / FactoryOptions

Interface: FactoryOptions โ€‹

Defined in: twine/src/core/factory/options.ts:6

Options for DatapackFactory.create.

Properties โ€‹

debug? โ€‹

optional debug?: DebugOptions

Defined in: twine/src/core/factory/options.ts:23

Debug-only build settings, off by default. sources maps commands to source lines; comments also writes them into the pack.


env? โ€‹

optional env?: BuildEnv

Defined in: twine/src/core/factory/options.ts:12

Build environment. Modules for other envs are pruned. Default: buildEnv.


name โ€‹

name: string

Defined in: twine/src/core/factory/options.ts:8

Datapack name (also the output namespace).


only? โ€‹

optional only?: string[]

Defined in: twine/src/core/factory/options.ts:14

Module names to build, with their imports and ancestors. Omit to build all.


target? โ€‹

optional target?: RuntimeTarget

Defined in: twine/src/core/factory/options.ts:18

Runtime target ("vanilla" | "paper"), for ctx.native(...). Default "vanilla".


version? โ€‹

optional version?: VersionProfile

Defined in: twine/src/core/factory/options.ts:10

Target version profile. Default v1_20_4.

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