mojira.dev
MC-151339

Data packs load extension-only files

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.

Attachments

Comments 1

Confirmed in 1.16.1 and 20w29a.

NickNackGus

(Unassigned)

Confirmed

Data Packs

Minecraft 1.14, 1.16.1, 20w29a, 1.16.2 Pre-release 2, 1.21.1, 1.21.2 Pre-Release 3

Retrieved