behaviorpack.functions.missing
Severity: error
The language server cannot find the behavior pack function definition that is being referenced. The function file either does not exist or has a path that does not match the reference.
This error is triggered when a reference to a behavior pack function (.mcfunction file) cannot be resolved. This commonly happens in:
- The
functioncommand in another.mcfunctionfile - Tick function lists (
tick.json) - Other places that reference function paths
The following mcfunction command references a function that does not exist:
# This will trigger the error if "my_pack/setup" doesn't exist
function my_pack/setupOr in a tick.json file referencing a non-existent function:
- Verify the function file exists at the correct path within your behavior pack's
functions/directory - Check the path is correct — function paths are relative to the
functions/folder and use/as the separator (not\) - Ensure the file has the
.mcfunctionextension - Check for typos in the function name or path
For example, the command function my_pack/setup requires the file to exist at <behavior_pack>/functions/my_pack/setup.mcfunction.
{ "values": [ "my_pack/tick_handler" ] }