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

Hints for command arguments don’t show up for words right after slash symbol /

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.5 Pre-Release 1, 1.21.1, 24w35a
    • None
    • Confirmed
    • Commands

      The problem:

      When typing in a name of an in-game object as a command argument, Minecraft shows hints for possible argument values. Sometimes there are delimiters like underscore (_), dot (.) or colon (:). They are counted as delimiters and one can find an argument by a word coming right after such delimiter. However, it appears that slash (/) is not accounted for, despite it being another delimiter used in some object names.

      The same issue was also present for dots before 24w09a, as reported in MC-186341, but in 24w09a this was fixed, meaning that slashes are now the only special character commonly present in commands that is not considered a delimiter.

      Most importantly, that affects the advancements. The actual names of the advancements, known by the community, are located after a slash in the resource path, making them impossible to find by the first word of the name.

      Steps to reproduce:

      • Launch Minecraft in an affected version, create or join a world with commands on
      • Pick an advancement (for example, minecraft:husbandry/whole_pack)
      • Open chat and type in /advancement grant @s only
      • Then add the advancement name after the slash (for example, /advancement grant @s only whole_pack)

      Observed behaviour:

      No hint shows up for the advancement

      Expected behaviour:

      One or several hints should show up, including the wanted advancement, the same way as minecraft:husbandry/whole_pack shows up when inputting “pack” or “husbandry/whole_pack

        1. 0_hints_whole_pack.png
          40 kB
          Artiom Boyko
        2. 1_hint_husbandry_whole_pack.png
          38 kB
          Artiom Boyko
        3. 1_hint_pack.png
          39 kB
          Artiom Boyko

            Unassigned Unassigned
            _Almazik_ Artiom Boyko
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: