behaviorpack.mcfunction.empty
Severity: error
The .mcfunction file is empty. Minecraft will not load empty function files, which means any reference to this function will silently fail at runtime.
This error is triggered by the language server when it detects that a .mcfunction file contains no commands (only blank lines or comments, or is completely empty). Source: packages/bedrock-diagnoser/src/diagnostics/behavior-pack/mcfunction/document.ts.
An empty function file or one with only comments:
# This file intentionally left blankOr a completely empty file with no content at all.
Add at least one valid command to the function file:
# Example: a simple function that says hello
say Hello from my function!If you intend the function to be a placeholder that does nothing, you can use a harmless command:
# No-op placeholder
say DEBUG: function calledOr if the function is no longer needed, remove all references to it and delete the file.