minecraft.format_version
Severity: error | warning
The format_version field in a Minecraft Bedrock JSON file is invalid, missing, or out of date. The format version controls which features and syntax are available in the file.
This error is triggered by the language server when:
- The
format_versionfield is not a string (e.g., it's a number or an array) - The version string is not in the correct
major.minor.patchformat - The version specified is not a recognized Minecraft Bedrock version
- The version is older than the recommended minimum for the file type
Source: packages/bedrock-diagnoser/src/diagnostics/general/format-version.ts
A Minecraft format version is a string of three numbers — the major version, followed by the minor version, followed by the patch version, all separated by dots:
"<major>.<minor>.<patch>"
For example: "1.21.0", "1.16.100", "1.10.0"
The following triggers an error because the format version is a number, not a string:
The following triggers a warning because the version is outdated:
{
"format_version": "1.8.0", // Warning — very old format version
"minecraft:entity": { ... }
}Ensure the format_version is a valid string in major.minor.patch format. Use a version that is appropriate for the features you are using:
{
"format_version": "1.21.0",
"minecraft:entity": { ... }
}Use the same format version as the current version of Minecraft Bedrock, or the minimum version required by the features your file uses. Refer to the Minecraft Bedrock documentation for recommended format versions per file type.
{ "format_version": 1.16, // Invalid — must be a string "minecraft:entity": { ... } }