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

mismatching tag type name in "commands.function.error.argument_not_compound"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 23w31a
    • None
    • Confirmed
    • Commands, Text
    • Low
    • Platform

      The commands.function.error.argument_not_compound added in 23w31a is Invalid argument type: %s, expected Compound

      Noticed that %s is a tag type that cannot be translated, it can be one of the following:

      BYTE
      BYTE[]
      COMPOUND
      DOUBLE
      END
      FLOAT
      INT
      INT[]
      LIST
      LONG
      LONG[]
      SHORT
      STRING
      INVALID[<id>]
      

      "COMPOUND" is one of tag types. However, the word "Compound" is not matching the all cap case.

      Either the tag types can be translated (which already translated in game community ever since NBT exists in the game), or it should be changed to "COMPOUND". We will translate it into "COMPOUND", but this can be a issue for the original string which using "Compound".

      If commands.function.error.argument_not_compound is going to be changed, check also MC-250062, which is about a grammar issue of it.

      Steps to reproduce

      First make your function with a datapack and load it to the world, in this case the function is minecraft:pass.
      Run the following commands:

      /data modify storage minecraft:storage1 value1 set value 0.0d
      /function minecraft:pass with storage minecraft:storage1 value1
      

      Result:

      Invalid argument type: DOUBLE, expected Compound
      

      Run the following commands:

      /data modify storage minecraft:storage1 value1 set value []
      /function minecraft:pass with storage minecraft:storage1 value1
      

      Result:

      Invalid argument type: LIST, expected Compound
      

            Unassigned Unassigned
            siiftun1857 siiftun1857
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: