Skip to content

ParserContext

What argument types know about the version being built.

packFormat: number

Data pack format (major), e.g. 61 for 1.21.4. Use this for version checks.


version: string

Minecraft version id, e.g. “1.21.4”.

hasRegistry(registry): boolean

True when the registry (e.g. “minecraft:block”) has generated id unions (codegen only).

string

boolean


registryIds(registry): string[]

Some ids of a registry from registries.json, for examples (codegen/probe only).

string

string[]