Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274342

Commands specifying nonexistent functions/advancements parse correctly

XMLWordPrintable

    • Icon: Bug 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.

            Unassigned Unassigned
            ccJerrycc ccJerrycc
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: