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

Functions containing uninstantiated macro commands terminate function tag completion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.21.1, 24w39a
    • None
    • Confirmed
    • Data Packs

      Description:

      When calling a function tag without macro arguments, not only will the first macro function fail but all succeeding functions in the tag are never executed.

      Steps to reproduce:

      1. Download the attached datapack which provides two functions named dev:a:

      $say $(a)
      

      and dev:b:

      say b
      

      with a single function tag #dev:tag which runs dev:a before dev:b

      {"values":["dev:a","dev:b"]} 

      2. Call /function #dev:tag

      Expected behavior:

      dev:a fails to instantiate due to missing macro arguments

      dev:b executes as the next sequential function in the tag and prints the message "b" to the chat

      Observed behavior:

      dev:a fails to instantiate due to missing macro arguments

      dev:b (and any number of succeeding functions) is never executed and no message is sent to chat

            Unassigned Unassigned
            Oligo Oligo
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: