Conversation
…mplete docs - Create behaviorpack/entity/components/deprecated.md - Create behaviorpack/biome/components/deprecated.md - Create behaviorpack/biome/components/climate/particles.md - Create behaviorpack/biome/components/pre_1.17_component.md - Create behaviorpack/biome/components/replace_biomes/multiple_dimensions.md - Create behaviorpack/functions/missing.md - Create resourcepack/entities/missing.md - Create minecraft/commands/syntax.md (general command syntax page) - Create minecraft/commands/obsolete.md (general obsolete command page) - Improve general/string/invalid.md with description, examples, and fix guidance - Improve general/integer/invalid.md with description, examples, and fix guidance - Improve general/integer/minimum.md with description, examples, and fix guidance - Improve general/integer/maximum.md with description, examples, and fix guidance - Improve general/float/invalid.md with description, examples, and fix guidance - Improve general/boolean/invalid.md with description, examples, and fix guidance - Improve behaviorpack/entity/event/missing.md with trigger details and examples - Improve behaviorpack/entity/aliases.md with deprecation context and fix guidance - Improve behaviorpack/entity/permutations.md with migration example to entity properties - Improve behaviorpack/mcfunction/empty.md with trigger source and fix guidance - Improve minecraft/format_version.md with version format docs and examples - Improve minecraft/selector/invalid.md with detailed trigger explanation - Improve minecraft/mode/invalid.md with description and example - Improve debugger/internal/exception.md with actionable fix steps - Improve molang/optimization/constant-folding.md with examples and hints - Improve behaviorpack/block/components/deprecated.md with deprecation table - Update README.md with full index, naming convention docs, severity table, and quick reference Agent-Logs-Url: https://github.com/Blockception/Minecraft-Error-Codes/sessions/891ec4e6-be95-46af-bbeb-2fb52f889ee2 Co-authored-by: DaanV2 <2393905+DaanV2@users.noreply.github.com>
…rection Agent-Logs-Url: https://github.com/Blockception/Minecraft-Error-Codes/sessions/891ec4e6-be95-46af-bbeb-2fb52f889ee2 Co-authored-by: DaanV2 <2393905+DaanV2@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Audit existing error documentation files for consistency
docs: add missing error documentation files and improve incomplete existing docs
Apr 8, 2026
Copilot stopped work on behalf of
DaanV2 due to an error
April 8, 2026 14:51
DaanV2
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The language server maps every diagnostic code to a
<code.replace(/\./g, '/')>.mdpath in this repo. Many of those paths were 404s or near-empty stubs, leaving IDE users with broken or useless documentation links.New files (9)
Covers error codes that had no documentation at all:
behaviorpack/entity/components/deprecated.mdbehaviorpack/biome/components/deprecated.md+climate/particles.md+pre_1.17_component.md+replace_biomes/multiple_dimensions.mdbehaviorpack/functions/missing.mdresourcepack/entities/missing.mdminecraft/commands/syntax.md— general page for allminecraft.commands.<cmd>.syntaxcodesminecraft/commands/obsolete.md— general page for allminecraft.commands.<cmd>.obsoletecodesImproved files (17)
Stub files expanded to include: severity, description, what triggers the error (with source references), a concrete example, fix guidance, and related error links. Files updated:
general/{string,integer,float,boolean}/*— all were title+code onlybehaviorpack/entity/{event/missing,aliases,permutations,mcfunction/empty}— minimal one-linersminecraft/{format_version,selector/invalid,mode/invalid}— incomplete or inaccuratedebugger/internal/exception,molang/optimization/constant-folding,behaviorpack/block/components/deprecatedREADME
Rewrote to serve as an index: error code naming convention (
category.subcategory.type), severity level table, and a quick-reference table linking all major codes.Original prompt
Problem
The Blockception Minecraft Bedrock Language Server (
Blockception/minecraft-bedrock-language-server) links every diagnostic error code to a documentation page in this repository. The URL mapping logic (fromide/base/server/src/lsp/diagnostics/diagnoser.ts) works as follows:https://github.com/Blockception/Minecraft-Error-Codes/blob/main/${code.replace(/\./gi, '/')}.mdbehaviorpack.entity.event.missing→behaviorpack/entity/event/missing.mdhttps://github.com/Blockception/Minecraft-Error-Codes/blob/main/codes/main.md#${code}Many of these documentation files are missing, incomplete, or inconsistently formatted. When users click on error codes in their IDE, they get 404 pages or unhelpful documentation.
What needs to happen
1. Audit existing files and ensure consistent formatting
Every error documentation
.mdfile should follow this consistent template structure:2. Add missing documentation files
The following error codes are produced by the language server but likely have no corresponding
.mdfile. Each must be created at the correct path matching the dotted code:General:
general/string/invalid.md— Triggered when a Minecraft string contains invalid characters (spaces without quotes, mismatched quotes). Source:packages/bedrock-diagnoser/src/diagnostics/general/string.ts— callsdiagnoser.add(value, "Invalid minecraft string: '${value.text}'", DiagnosticSeverity.error, 'general.string.invalid')general/integer/invalid.md— Invalid integer valuegeneral/integer/minimum.md— Integer below minimum allowed valuegeneral/integer/maximum.md— Integer above maximum allowed valuegeneral/float/invalid.md— Invalid float valuegeneral/boolean/invalid.md— Invalid boolean valueJSON:
json/invalid.md— Invalid JSON structure/syntax. Source:packages/bedrock-diagnoser/src/diagnostics/json/errors.ts— triggered when JSON parsing failsMinecraft:
minecraft/format_version.md— Format version issues (not a string, not valid, or out of date). Source:packages/bedrock-diagnoser/src/diagnostics/general/format-version.tsminecraft/selector/invalid.md— Invalid target selector syntaxBehavior Pack - MCFunction:
behaviorpack/mcfunction/empty.md— Empty mcfunction file that Minecraft won't load. Source:packages/bedrock-diagnoser/src/diagnostics/behavior-pack/mcfunction/document.ts—diagnoser.add(0, 'Empty mcfunction found, minecraft will not load this function', DiagnosticSeverity.error, 'behaviorpack.mcfunction.empty')Behavior Pack - Entity:
behaviorpack/entity/event/missing.md— Entity event referenced but not defined. Source:packages/bedrock-diagnoser/src/diagnostics/behavior-pack/entity/diagnose.ts—diagnoser.add(path, 'Entity has no event "${id}"', DiagnosticSeverity.warning, 'behaviorpack.entity.event.missing')behaviorpack/entity/permutations.md— Entity permutations have been deprecated. Source:packages/bedrock-diagnoser/src/diagnostics/behavior-pack/entity/document.tsbehaviorpack/entity/aliases.md— Entity aliases have been deprecated. Source: same filebehaviorpack/entity/components/deprecated.md— A deprecated entity component is being used. Source:packages/bedrock-diagnoser/src/diagnostics/behavior-pack/entity/components/diagnose.tsBehavior Pack - Biome:
behaviorpack/biome/components/deprecated.md— Deprecated biome component (e.g.minecraft:surface_parameters,minecraft:frozen_ocean_surface, etc. replaced byminecraft:surface_builder). Source:packages/bedrock-diagnoser/src/diagnostics/behavior-pack/biome/components/diagnose.tsbehaviorpack/biome/components/climate/particles.md— Climate particle capability moved to client_biome.jsonbehaviorpack/biome/components/pre_1.17_component.md— Pre Caves and Cliffs components that don't work with custom biomesbehaviorpack/biome/components/replace_biomes/multiple_dimensions.md— Using biome replacement for both Overworld and Nether is discouragedBehavior Pack - Block:
behaviorpack/block/components/deprecated.md— Deprecated block components (many, includingminecraft:aim_collision→minecraft:selection_box,minecraft:destroy_time→minecraft:destructible_by_mining, etc.). Source:packages/bedrock-diagnoser/src/diagnostics/behavior-pack/block/components/diagnose.tsDynamic "missing" codes (from
packages/bedrock-diagnoser/src/diagnostics/errors/missing.ts):The
Errors.missing()utility generate...This pull request was created from Copilot chat.