API reference / @jsprismarine/prismarine / config/JsonConfigTypes
config/JsonConfigTypes
Interfaces
BStatsConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:112
The stats.bstats section: whether the server reports to bStats, and what the reports log.
Properties
enabled?
optionalenabled?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:114
Whether the server sends pseudonymous usage data to bStats.
endpoint?
optionalendpoint?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:122
The URL reports are posted to: bStats' own by default, or a bStats instance of your own.
log-errors?
optionallog-errors?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:116
Whether a failed submit is logged.
log-response-status-text?
optionallog-response-status-text?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:120
Whether the text bStats answers a submit with is logged.
log-sent-data?
optionallog-sent-data?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:118
Whether each submitted payload is logged.
BannedPlayerEntry
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:530
One entry in banned-players.json. An entry with kind and id bans that one player; an entry with a name alone, as the file was written before kind and id existed, bans every player of that name until one logs in and the entry is written with their kind and id.
Extends
Partial<SubjectEntry>
Properties
id?
optionalid?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:503
The player's id on that platform: the XUID, the UUID or the name.
Inherited from
kind?
optionalkind?:"java"|"xbox"|"offline"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:501
Which platform id belongs to: xbox for an Xbox Live XUID, java for a Mojang profile UUID, offline for a name on an offline-mode server.
Inherited from
name
name:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:532
The player's exact name.
reason?
optionalreason?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:534
The reason shown to the player, if provided.
ConfigFile
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:147
Settings supported by the JSON configuration file.
Properties
account-linking?
optionalaccount-linking?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:218
Whether a Java Edition account and an Xbox account can be linked into one player.
allow-inbound-script-debugging?
optionalallow-inbound-script-debugging?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:295
Whether /script debugger listen and auto-attach's listen mode may open a port for the script debugger.
allow-list?
optionalallow-list?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:206
Whether only the players in allowlist.json may join.
allow-outbound-script-debugging?
optionalallow-outbound-script-debugging?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:297
Whether /script debugger connect and auto-attach's connect mode may connect to a script debugger.
bedrock-keep-alive-timeout?
optionalbedrock-keep-alive-timeout?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:200
Seconds a Bedrock client may leave a ping unanswered before it is disconnected, overriding keep-alive-timeout.
chunk-host?
optionalchunk-host?:"process"|"in-process"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:179
Where chunk generation workers run: a separate low-priority process, or threads in the server process.
chunk-send-budget-ms?
optionalchunk-send-budget-ms?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:182
How long each tick may spend sending chunks, out of its 50 ms.
chunk-workers?
optionalchunk-workers?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:177
How many worker threads to use for chunk generation. 0 keeps generation on the server thread.
content-datapacks?
optionalcontent-datapacks?:string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:315
Java datapack directories this world loads, after the vanilla one.
content-java-version?
optionalcontent-java-version?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:317
The pinned Java release whose data the server loads; empty for the default release.
content-strict?
optionalcontent-strict?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:311
Whether a pack that reports an error stops the server instead of loading short.
content-world-packs?
optionalcontent-world-packs?:string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:313
Extra behavior pack directories this world loads, after the vanilla ones.
crafting-recipe-limit?
optionalcrafting-recipe-limit?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:270
How many recipes to send: -1 for all, 0 for none, or a cap.
difficulty?
optionaldifficulty?:ConfigDifficulty
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:169
How dangerous the monsters are.
disable-client-vibrant-visuals?
optionaldisable-client-vibrant-visuals?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:274
Whether to tell joining Bedrock players to use another graphics setting than Vibrant Visuals, as Bedrock Dedicated Server's disable-client-vibrant-visuals.
education-features?
optionaleducation-features?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:188
Whether Bedrock clients join with Education Edition features on, as the Education toggle in world settings does.
enable-lan-visibility?
optionalenable-lan-visibility?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:250
Whether players on the local network see the server among their LAN games, as Bedrock Dedicated Server's enable-lan-visibility.
enable-nethernet?
optionalenable-nethernet?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:216
Whether to accept clients over NetherNet, the WebRTC transport Bedrock Dedicated Server defaults to.
enable-process-title?
optionalenable-process-title?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:264
Whether to show the tick rate in the process title.
enable-query?
optionalenable-query?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:260
Whether to answer the GameSpy4 query protocol that server lists and status tools use.
enable-raknet?
optionalenable-raknet?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:212
Whether to accept clients over RakNet, Bedrock's UDP transport before NetherNet.
enable-server-public-ip-lookup?
optionalenable-server-public-ip-lookup?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:248
Whether NetherNet looks up the public address to offer when server-public-ip is empty.
enable-ticking?
optionalenable-ticking?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:266
Whether the world ticks.
entity-tracking-hysteresis?
optionalentity-tracking-hysteresis?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:192
Chunks past view distance before an entity leaves a player's screen.
entity-tracking-interval?
optionalentity-tracking-interval?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:194
Ticks between entity visibility passes.
fluid-replacement?
optionalfluid-replacement?:"java"|"bedrock"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:190
Which edition decides what flowing water and lava wash away.
force-inbound-debug-port?
optionalforce-inbound-debug-port?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:299
The one port the script debugger listens on; /script debugger listen then takes none.
gamemode?
optionalgamemode?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:167
The default game mode for new players.
java-enabled?
optionaljava-enabled?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:220
Whether to answer Java Edition clients on java-port.
java-port?
optionaljava-port?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:222
The TCP port Java Edition clients connect to.
java-resource-pack-merge?
optionaljava-resource-pack-merge?: readonlyobject[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:278
Addons merged into one Java pack each, by glob patterns over their keys, with the pack's name, description and icon.
java-resource-pack-url?
optionaljava-resource-pack-url?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:276
The base URL Java clients download the converted resource pack from; empty for the server's own Java port.
java-secure-chat?
optionaljava-secure-chat?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:224
Whether a Java Edition player's signed chat reaches other Java players signed, as secure chat does.
keep-alive-interval?
optionalkeep-alive-interval?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:196
Seconds between the pings that check a client is still there, for both editions; 0 sends none.
keep-alive-timeout?
optionalkeep-alive-timeout?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:198
Seconds a client may leave a ping unanswered before it is disconnected, for both editions.
level-name?
optionallevel-name?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:159
Which entry of worlds players join.
log-excluded-packets?
optionallog-excluded-packets?:string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:268
Packet class names kept out of the traffic log at the silly level.
log-level?
optionallog-level?:"warn"|"error"|"info"|"verbose"|"debug"|"silly"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:151
How much the console and the log file say.
management-server-allowed-origins?
optionalmanagement-server-allowed-origins?:string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:234
The Origin values a browser may connect to the management server from.
management-server-enabled?
optionalmanagement-server-enabled?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:226
Whether to accept Server Management Protocol clients.
management-server-host?
optionalmanagement-server-host?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:228
The address the management server listens on.
management-server-port?
optionalmanagement-server-port?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:230
The TCP port the management server listens on; 0 for a free one.
management-server-secret?
optionalmanagement-server-secret?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:232
The secret management clients authenticate with: 40 letters and digits, or empty to generate one.
management-server-tls-enabled?
optionalmanagement-server-tls-enabled?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:236
Whether the management server serves TLS.
management-server-tls-keystore?
optionalmanagement-server-tls-keystore?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:238
The PKCS12 keystore the management server serves TLS with.
management-server-tls-keystore-password?
optionalmanagement-server-tls-keystore-password?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:240
The password of the management server's keystore.
max-players?
optionalmax-players?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:165
How many players may be online at once.
motd?
optionalmotd?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:171
The message shown in the server list.
online-mode?
optionalonline-mode?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:208
Whether players must be signed in: Bedrock players to Xbox Live, Java Edition players to Mojang's session server.
packet-compression-algorithm?
optionalpacket-compression-algorithm?:"none"|"zlib"|"snappy"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:254
The batch compression algorithm advertised in NetworkSettings.
packet-compression-level?
optionalpacket-compression-level?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:252
The zlib level for outgoing batches.
packet-compression-threshold?
optionalpacket-compression-threshold?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:256
The minimum batch-body size to compress, in bytes. Zero disables compression.
packet-full-flush-fragments?
optionalpacket-full-flush-fragments?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:258
Whether to use the unvalidated, experimental cached full-flush batch fragments.
player-data-groups?
optionalplayer-data-groups?:Record<string,PlayerDataGroupConfig>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:163
Groups of levels whose players share parts of their record, by group name.
preload-radius?
optionalpreload-radius?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:175
How many chunks around spawn to generate before accepting players. 0 skips it.
protocol-content?
optionalprotocol-content?:"oldest"|"newest"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:204
Which release in the protocol window the world's content comes from: the newest, or the oldest so every accepted client has all of it.
protocol-window?
optionalprotocol-window?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:202
How many Bedrock releases to accept, counted back from the newest this server supports.
proximity-broadcast?
optionalproximity-broadcast?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:184
Whether positional packets only go to nearby players.
query-port?
optionalquery-port?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:262
The UDP port the query protocol answers on; server-port, on the RakNet socket, when unset.
schemaVersion?
optionalschemaVersion?:1
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:149
The layout of this file. The server upgrades a file with an older one, or without one.
script-debugger-auto-attach?
optionalscript-debugger-auto-attach?:"connect"|"listen"|"disabled"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:303
Whether the script debugger attaches when the scripts load: disabled, connect or listen.
script-debugger-auto-attach-connect-address?
optionalscript-debugger-auto-attach-connect-address?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:305
Where auto-attach's connect mode finds the debugger, as host:port.
script-debugger-auto-attach-timeout?
optionalscript-debugger-auto-attach-timeout?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:307
How many seconds the server waits for an auto-attached debugger.
script-debugger-listen-address?
optionalscript-debugger-listen-address?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:301
The address the script debugger listens on; one other than loopback needs a passcode.
script-debugger-passcode?
optionalscript-debugger-passcode?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:309
The passcode the script debugger must send; empty for none.
script-watchdog-enable-shutdown?
optionalscript-watchdog-enable-shutdown?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:289
Whether a hang, a stack overflow or running out of memory in a script shuts the server down.
script-watchdog-hang-threshold?
optionalscript-watchdog-hang-threshold?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:291
How long one script callback may run before it is stopped, in milliseconds, converted to steps.
script-watchdog-memory-limit?
optionalscript-watchdog-memory-limit?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:293
How many megabytes the scripts of one world may allocate together; 0 for no limit.
server-authoritative-block-breaking?
optionalserver-authoritative-block-breaking?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:186
Whether the server times block breaking, as a Bedrock Dedicated Server does. Off leaves it to the client.
server-ip?
optionalserver-ip?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:157
The address to listen on. 0.0.0.0 accepts connections on every interface.
server-port?
optionalserver-port?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:153
The port the server listens on, as Bedrock Dedicated Server's server-port: TCP for NetherNet signaling, and UDP for RakNet and NetherNet.
server-portv6?
optionalserver-portv6?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:155
The UDP port RakNet listens on for IPv6 clients when server-ip is 0.0.0.0. Bedrock clients look for 19133.
server-public-ip?
optionalserver-public-ip?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:246
The address NetherNet advertises, as Bedrock Dedicated Server's server-public-ip: a raw IPv4, a raw or bracketed IPv6, or empty.
server-udp-ports?
optionalserver-udp-ports?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:244
The UDP ports NetherNet players use, as Bedrock Dedicated Server's server-udp-ports: a port or a range, each optionally a public:local mapping.
stats?
optionalstats?:StatsConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:285
The services the server reports pseudonymous usage statistics to.
status-heartbeat-interval?
optionalstatus-heartbeat-interval?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:242
Seconds between the management server's status notifications; 0 for none.
terrain-cache-size-mb?
optionalterrain-cache-size-mb?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:180
texturepack-required?
optionaltexturepack-required?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:272
Whether a player must take the installed addons' resource packs to join, as Bedrock Dedicated Server's texturepack-required.
updates?
optionalupdates?:UpdatesConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:287
Whether and how the server checks for a newer JSPrismarine.
use-raknet-worker?
optionaluse-raknet-worker?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:214
Whether RakNet UDP I/O and reliability updates run in a worker thread.
view-distance?
optionalview-distance?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:173
How far players see, in chunks.
worlds?
optionalworlds?:Record<string,WorldData>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:161
Every world the server loads, keyed by its name.
xbox-achievements?
optionalxbox-achievements?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:210
Whether Bedrock players can earn Xbox achievements. On, the server tells clients that cheats are off.
DimensionConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:60
What a world says about one of its dimensions, keyed under WorldData.dimensions by the Java dimension id such as minecraft:the_nether.
An entry for an id the preset has overrides that stem; an entry for a new id adds a dimension. A key left out comes from the preset's stem.
Properties
generator?
optionalgenerator?:GeneratorDefinitionJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:64
The level stem generator. Defaults to the preset's.
load?
optionalload?:"lazy"|"eager"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:66
eager builds the dimension's world at startup; lazy, the default, on first entry.
type?
optionaltype?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:62
The Java dimension_type id. Defaults to the preset's.
FlatGeneratorSettingsJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:21
The settings of a minecraft:flat generator, the same object a Java worldgen/flat_level_generator_preset document carries under settings.
Properties
biome?
optionalbiome?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:25
The one biome the whole dimension has. Defaults to minecraft:plains.
features?
optionalfeatures?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:29
Whether the biome's placed features generate. Defaults to false.
lakes?
optionallakes?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:27
Whether lava lakes generate. Defaults to false.
layers
layers:
FlatLayerJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:23
The layers, bottom first.
structure_overrides?
optionalstructure_overrides?:string|string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:31
The structure sets that place structures. Absent means every registered set, [] means none.
FlatLayerJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:10
One layer of a minecraft:flat generator's settings.layers, bottom first, in Java's spelling.
Properties
block
block:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:12
The block the layer is made of, as a Java identifier such as minecraft:stone.
height
height:
number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:14
How many blocks thick the layer is.
GeneratorDefinitionJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:41
A level stem's generator object, written as a Java dimension document writes it.
type is the generator kind. The other keys belong to the kind: minecraft:noise reads settings and biome_source, minecraft:flat reads settings as its layers and flags, and minecraft:debug has none.
Properties
biome_source?
optionalbiome_source?:Record<string,unknown>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:50
The biome layout of a minecraft:noise generator, as Java's biome_source object.
settings?
optionalsettings?:string|Record<string,unknown> |FlatGeneratorSettingsJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:48
The kind's settings: a worldgen/noise_settings id or inline document for minecraft:noise, the layers for minecraft:flat.
type
type:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:43
The generator kind, for example minecraft:noise or minecraft:flat.
LevelData
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:568
Legacy shape imported once from older worlds' level.json files.
Deprecated
World state is stored by the world provider.
Properties
entities?
optionalentities?:object[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:578
position
position:
object
position.headYaw?
optionalheadYaw?:number
position.pitch?
optionalpitch?:number
position.x
x:
number
position.y
y:
number
position.yaw?
optionalyaw?:number
position.z
z:
number
type
type:
string
gameRules?
optionalgameRules?: [string, [number|boolean,boolean]][]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:570
spawn?
optionalspawn?:object
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:569
x
x:
number
y
y:
number
z
z:
number
weather?
optionalweather?:unknown
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:577
Java's WeatherData: the three counters and the two flags.
Unknown rather than a record type, because what is in the file is whatever was last written there; savedWeatherOf is the check that turns it into a record.
OpEntry
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:507
One operator entry in ops.json.
Extends
Partial<SubjectEntry>
Properties
id?
optionalid?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:503
The player's id on that platform: the XUID, the UUID or the name.
Inherited from
kind?
optionalkind?:"java"|"xbox"|"offline"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:501
Which platform id belongs to: xbox for an Xbox Live XUID, java for a Mojang profile UUID, offline for a name on an offline-mode server.
Inherited from
level?
optionallevel?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:516
Informational operator level; an operator runs every command at level 4.
name
name:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:509
The player's name when the entry was written. kind and id decide who it is.
uuid?
optionaluuid?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:514
The login UUID an entry written before kind and id existed was keyed by. The entry waits for a login with this UUID, which writes kind and id and drops it.
PendingPermissionUserJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:472
A user migrated from a file that keyed players by login UUID, waiting for a login with that UUID.
Extends
Properties
groups
groups:
PermissionMembershipJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:464
The groups the user holds directly. Everyone holds default, and an operator operator.
Inherited from
legacyUuid
legacyUuid:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:474
The login UUID the entry was keyed by. The login that carries it files the user under its subject.
meta
meta:
Record<string,string>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:468
The user's own meta, which decides before any group's.
Inherited from
name
name:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:462
The player's name when last seen, for reading the file. The key decides who it is.
Inherited from
nodes
nodes:
PermissionNodeJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:466
The user's own nodes, which decide before any group's.
Inherited from
PermissionGroupJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:449
A group: what every member holds.
Properties
meta
meta:
Record<string,string>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:456
prefix, suffix, level (0 to 4, the command level) or anything else a pack reads.
nodes
nodes:
PermissionNodeJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:454
parents
parents:
string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:453
Groups this one inherits, visited depth first after its own nodes.
weight
weight:
number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:451
A heavier group decides before a lighter one. default is 0 and operator is 100 on a fresh file.
PermissionMembershipJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:441
A user's membership in a group.
Properties
expires?
optionalexpires?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:445
When the membership ends, as ISO 8601. Absent for never.
group
group:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:443
The group's name, a key of groups.
PermissionNodeJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:433
One node a group or a user holds.
Properties
expires?
optionalexpires?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:437
When the node stops applying, as ISO 8601. Absent for never.
node
node:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:435
scope.name, scope.* for a whole scope, * for everything; a leading - negates.
PermissionUserJson
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:460
A user: one subject's own memberships, nodes and meta.
Extended by
Properties
groups
groups:
PermissionMembershipJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:464
The groups the user holds directly. Everyone holds default, and an operator operator.
meta
meta:
Record<string,string>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:468
The user's own meta, which decides before any group's.
name
name:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:462
The player's name when last seen, for reading the file. The key decides who it is.
nodes
nodes:
PermissionNodeJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:466
The user's own nodes, which decide before any group's.
PermissionsFile
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:481
Groups and users, with users filed under one section per platform.
Properties
groups
groups:
Record<string,PermissionGroupJson>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:485
Every group by name. A fresh or migrated file writes default and operator; a file without one reads as if it had a fresh file's.
pending?
optionalpending?:PendingPermissionUserJson[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:489
Users still keyed by a login UUID, until the login with it claims each.
schemaVersion
schemaVersion:
3
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:483
The layout of this file. The server upgrades a file with an older one, or without one.
users
users:
Partial<Record<SubjectKind,Record<string,PermissionUserJson>>>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:487
Users by platform: xbox by XUID, java by Mojang profile UUID, offline by name.
PlayerDataGroupConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:70
One group of player-data-groups: its levels, and the parts of a player's record they share.
Properties
levels
levels:
string[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:72
The levels in the group, by name.
share
share: (
"position"|"armor"|"gamemode"|"hunger"|"health"|"offhand"|"spawnPoint"|"experience"|"inventory"|"abilities"|"enderChest")[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:74
The parts their players share; every other part stays per level.
StatsConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:138
The stats section: one entry per service the server reports usage statistics to.
Properties
bstats?
optionalbstats?:BStatsConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:140
bStats, at https://bstats.org.
StoredPlayerAttribute
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:746
The live definition and value of one player attribute at save time.
Properties
base
readonlybase:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:749
current
readonlycurrent:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:750
max
readonlymax:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:748
min
readonlymin:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:747
SubjectEntry
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:496
The fields that say which player an entry is about, as ops.json and banned-players.json spell a subject: the platform, and the player's id on it.
Extended by
Properties
id
id:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:503
The player's id on that platform: the XUID, the UUID or the name.
kind
kind:
"java"|"xbox"|"offline"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:501
Which platform id belongs to: xbox for an Xbox Live XUID, java for a Mojang profile UUID, offline for a name on an offline-mode server.
UpdatesConfig
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:126
The updates section: whether and how the server checks for a newer JSPrismarine. Unset keys follow the build.
Properties
channel?
optionalchannel?:"release"|"nightly"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:130
Which builds to hear about: release or nightly. Unset, the channel of the running build.
enabled?
optionalenabled?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:128
Whether the server checks for updates. Unset, it does unless it runs from a checkout.
interval?
optionalinterval?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:134
Minutes between checks; values under 60 read as 60.
source?
optionalsource?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:132
Where the feed is: owner/repo, or the https URL of a folder that holds the feed files.
UserCacheEntry
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:547
One account in usercache.json: the name it last joined with, the account's kind and id, and when the entry lapses.
Extends
Properties
expiresOn
expiresOn:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:553
When the entry lapses, as yyyy-MM-dd HH:mm:ss Z, a month after the account last joined.
id
id:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:503
The player's id on that platform: the XUID, the UUID or the name.
Inherited from
kind
kind:
"java"|"xbox"|"offline"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:501
Which platform id belongs to: xbox for an Xbox Live XUID, java for a Mojang profile UUID, offline for a name on an offline-mode server.
Inherited from
name
name:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:549
The name the account last joined with.
uuid
uuid:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:551
The login UUID the account last joined with.
WorldData
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:78
The configuration saved for one world.
Properties
dimensions?
optionaldimensions?:Record<string,DimensionConfig>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:96
Per-dimension overrides of the preset's stems, and dimensions the preset lacks.
experiments?
optionalexperiments?:"gametest"[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:102
Bedrock experiments to turn on, by the id level.dat keeps them under. gametest is Beta APIs, which a behavior pack script needs to declare a beta Script API version. An experiment the world's level.dat already has on stays on.
preset?
optionalpreset?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:94
The Java worldgen/world_preset id that supplies the dimensions and their generators.
Default
'minecraft:normal'provider?
optionalprovider?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:89
seed
seed:
string|number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:88
The world seed, read the way Java reads the text in its world creation box: a value that parses as a 64-bit integer is that integer, and anything else is its String.hashCode.
Spell it as a string. A Java seed is a 64-bit integer and a JSON or YAML number is a double, which is exact only below 2^53. Written as a number, 8475011743740320021 is read back as 8475011743740319744 and generates a different world. A number is still accepted for configs written before this, and is exact for seeds below 2^53.
WorldPlayerData
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:595
Player state saved by a world provider, or in a JSON fallback file.
Properties
advancements?
optionaladvancements?:Readonly<Record<string,AdvancementProgressJson>>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:627
Advancement progress: advancement id to the criteria the player has completed, each with the instant it was granted.
Stored here rather than in a file of its own so that whatever a provider does with player data - the LevelDB provider writes a player_server_ record, the file provider a JSON file - carries the progress with it.
attributes?
optionalattributes?:Readonly<Record<string,StoredPlayerAttribute>>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:695
Every live attribute, keyed by its namespaced identifier.
Keeping the definition beside the value lets the player record preserve attributes added by content without teaching the provider a new field for each one.
dimension?
optionaldimension?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:618
The Java id of the dimension the player was in, such as minecraft:the_nether.
The LevelDB provider also writes it as Bedrock's DimensionId integer. Absent on a record written before this field existed, which reads as the Overworld.
enchantmentSeed?
optionalenchantmentSeed?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:666
The player's enchantment seed.
Java drives all three rows of an enchanting table from one generator seeded with this, which is what keeps the rows still while a player puts an item in and takes it out again. Kept across a login for the same reason: a table that redrew on every join would be a different table.
experience?
optionalexperience?:object
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:685
Experience, as the two numbers Bedrock carries: whole levels, and how far along the current level the bar is.
level
level:
number
progress
progress:
number
flying?
optionalflying?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:603
Whether the player was flying when this record was saved.
food?
optionalfood?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:678
The food bar, out of twenty.
gamemode
gamemode:
string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:601
The saved game mode, normally Survival, Creative, Adventure, or Spectator.
health?
optionalhealth?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:676
Half-hearts, out of the player's maximum.
inventory?
optionalinventory?:StoredInventory
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:674
Everything the player was carrying: the 36 main slots, the hand slot, the four armor slots, the off hand and the 27 ender chest slots.
Absent until this was written, so a logout threw away every item a player held along with its durability, its name and its enchantments.
persistentNbt?
optionalpersistentNbt?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:711
The actor record tags this server does not model, as network NBT in base64: a script's DynamicProperties live there, as they do on the player's actor on Bedrock Dedicated Server. Absent when the player has none. The LevelDB provider writes the tags at the record's root, where the game keeps them; this form is the fallback JSON file's.
portalCooldown?
optionalportalCooldown?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:719
Ticks left before the player may enter a portal again, Bedrock's PortalCooldown.
Set when a player changes dimension, so logging out inside the arrival portal and back in does not send them straight back. Absent on a record written before this field existed, which reads as no cooldown.
position
position:
object
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:604
headYaw
headYaw:
number
pitch
pitch:
number
x
x:
number
y
y:
number
yaw
yaw:
number
z
z:
number
recipeBook?
optionalrecipeBook?: readonlystring[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:641
The Java ids of the recipes the player has unlocked, in the order they were unlocked.
Written on every save, empty or not, so that a record without it is one written before the book was saved, and the book of such a record is filled from the rewards of the advancements it completed.
recipeBookHighlight?
optionalrecipeBookHighlight?: readonlystring[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:657
The unlocked recipes the player has not looked at yet, which a Java client's book highlights, by Java id. Left out while there are none.
recipeBookSettings?
optionalrecipeBookSettings?:Readonly<Record<"crafting"|"furnace"|"smoker"|"blastFurnace", {filtering:boolean;open:boolean; }>>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:647
Each screen's recipe book as the player last left it: open beside the screen or not, and listing only what the player can make or not. Left out while every book is closed and unfiltered.
saturation?
optionalsaturation?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:680
The hidden buffer that is spent before food is.
savedAt?
optionalsavedAt?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:742
When this record was written, in milliseconds since the epoch.
Written so a tool or a later migration can tell two copies of a record apart. Absent on a record written before this field existed. Which world a returning player lands in is dimension's job: see lastPlayerRecord.
seenCredits?
optionalseenCredits?:boolean
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:727
Whether this player has watched the end credits, Bedrock's HasSeenCredits.
Set when the credits start rolling on a first exit through the End's portal, so a later exit transfers at once. Absent on a record written before this field existed, which reads as not seen.
spawn?
optionalspawn?:StoredSpawnPoint
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:704
Where this player comes back after a death, or absent for the world spawn.
Nothing modeled one before this: every respawn answered with the world spawn, which is also why /spawnpoint was left out of the command registry. See resolveRespawn for when a stored point stops being used.
statistics?
optionalstatistics?:Record<string,number>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:633
The player's statistics: each total by its criterion name, such as minecraft.custom:minecraft.play_time, which a Java client's statistics screen shows. Left out while the player has none.
timeSinceRest?
optionaltimeSinceRest?:number
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:734
Ticks since this player last slept or died, Java's Stats.TIME_SINCE_REST and Bedrock's TimeSinceRest. Absent on a record written before this field existed, which reads as 0.
Java See
Stats.TIME_SINCE_REST
username?
optionalusername?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:599
Written for the same reason as uuid.
uuid?
optionaluuid?:string
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:597
Written so the file says who it belongs to; the file is found by key, not by this.
Type Aliases
BannedPlayersFile
BannedPlayersFile =
BannedPlayerEntry[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:541
Players prevented from joining the server.
ConfigDifficulty
ConfigDifficulty =
"peaceful"|"easy"|"normal"|"hard"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:109
A difficulty name accepted in config.json.
ContentConfigKey
ContentConfigKey =
"protocol-window"|"protocol-content"|"content-strict"|"content-world-packs"|"content-datapacks"|"content-java-version"
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:324
The keys the content build reads before Config.enable runs. The protocol keys are among them because protocol-content: oldest decides which vanilla content the build leaves out.
OpsFile
OpsFile =
OpEntry[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:523
Players allowed to use operator commands.
UserCacheFile
UserCacheFile =
UserCacheEntry[]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:561
The accounts that have joined the server, most recently used first. The server writes this file; a command that names a player who is offline looks the name up here.
WorldConfig
WorldConfig =
Partial<WorldData>
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:106
The subset of world settings read by a generator or provider.
Variables
CONFIG_KEY_ORDER
constCONFIG_KEY_ORDER: readonly ["$schema","schemaVersion","log-level","server-port","server-portv6","server-ip","level-name","worlds","player-data-groups","max-players","gamemode","difficulty","motd","view-distance","preload-radius","chunk-workers","chunk-host","terrain-cache-size-mb","chunk-send-budget-ms","proximity-broadcast","server-authoritative-block-breaking","education-features","fluid-replacement","entity-tracking-hysteresis","entity-tracking-interval","keep-alive-interval","keep-alive-timeout","bedrock-keep-alive-timeout","protocol-window","protocol-content","allow-list","online-mode","xbox-achievements","enable-raknet","use-raknet-worker","enable-nethernet","java-enabled","java-port","java-secure-chat","management-server-enabled","management-server-host","management-server-port","management-server-secret","management-server-allowed-origins","management-server-tls-enabled","management-server-tls-keystore","management-server-tls-keystore-password","status-heartbeat-interval","account-linking","server-udp-ports","server-public-ip","enable-server-public-ip-lookup","enable-lan-visibility","packet-compression-level","packet-compression-algorithm","packet-compression-threshold","packet-full-flush-fragments","enable-query","query-port","enable-process-title","enable-ticking","log-excluded-packets","crafting-recipe-limit","texturepack-required","disable-client-vibrant-visuals","java-resource-pack-url","java-resource-pack-merge","stats","updates","script-watchdog-enable-shutdown","script-watchdog-hang-threshold","script-watchdog-memory-limit","allow-inbound-script-debugging","allow-outbound-script-debugging","force-inbound-debug-port","script-debugger-listen-address","script-debugger-auto-attach","script-debugger-auto-attach-connect-address","script-debugger-auto-attach-timeout","script-debugger-passcode","content-strict","content-world-packs","content-datapacks","content-java-version"]
Defined in: packages/prismarine/src/config/JsonConfigTypes.ts:341
Every key config.json may hold, in the order the file spells them.
The file is written one key at a time, by whichever part of the server asks first - the watch-mode host reads the content keys before the child's Config exists - so the order cannot come from write order. A new key is inserted where this list says it goes, which keeps the file in definition order no matter who writes it, and keeps $schema first.