-
Bug
-
Resolution: Unresolved
-
None
-
1.21
-
None
-
Confirmed
-
Commands, Data Packs
-
Low
-
Platform
Description
Unlike loot tables, predicates and all hardcoded registries, the command parser doesn't throw an error if a specified function or advancement doesn't exist, and instead tries to run, only to fail.
How to Reproduce
1. Open the chat and type /function foo:bar without pressing Enter.
→ The game accepts the invalid argument and doesn't show a warning.
2. Actually execute the aforementioned command.
→ The command parses correctly and fails, instead of being unparseable.
Expected Behavior
The command parser would render any command containing a nonexistent function or advancement unparseable.
Observed Behavior
The command parser tries to run the command despite it containing a nonexistent function or advancement.