Skip to content

API reference / @jsprismarine/prismarine / content/settings

content/settings ​

Interfaces ​

ContentSettings ​

Defined in: prismarine/src/content/settings.ts:27

What the content settings say.

Properties ​

datapacks ​

readonly datapacks: readonly string[]

Defined in: prismarine/src/content/settings.ts:33

Java datapack directories the world adds to the stack.

strict ​

readonly strict: boolean

Defined in: prismarine/src/content/settings.ts:29

Whether a pack error stops the server.

worldPacks ​

readonly worldPacks: readonly string[]

Defined in: prismarine/src/content/settings.ts:31

Behavior pack directories the world adds to the stack.

Functions ​

readContentSettings() ​

readContentSettings(): ContentSettings

Defined in: prismarine/src/content/settings.ts:37

Reads the content settings, writing any key the file lacks.

Returns ​

ContentSettings