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

Data packs load extension-only files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.14, 1.16.1, 20w29a, 1.16.2 Pre-release 2, 1.21.1, 1.21.2 Pre-Release 3
    • None
    • Confirmed
    • Data Packs

      What I expected to happen was...:
      Files with no name, only an extension, fail to load.
       
      What actually happened was...:
      Instead, they load with IDs such as foo: and foo:bar/
       
      Steps to Reproduce: # Create or download a datapack with the following functions:

        1. data/foo/functions/.mcfunction
        2. data/foo/functions/bar/.mcfunction
      1. Load the datapack, noting the number of functions includes those nameless files.
      2. Note that you can run the following commands:
        1. /function foo:
        2. /function foo:bar/

      I acknowledge it's possible this is intended, but it seems too weird and unexpected.

            Unassigned Unassigned
            NickNackGus Timothy Southwick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: