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

Macro entries cannot include "$(" as a literal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 23w33a
    • None
    • Confirmed
    • (Unassigned)

      The bug

      Macro entries, which start with $ in an mcfunction file, cannot include $( as a literal because they are attempted to be parsed as parameters, not as literal segments.

      Workaround

      You can workaround this by instantiating a macro with the argument $(.

      macro.mcfunction
      $say $(a)
      

      When you run the following command,

      function macro {a: "$("}

      $say $(a) will become say $( after instantiation.

            Unassigned Unassigned
            intsuc intsuc
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: