mojira.dev
MC-121921

/function can't see any functions

(also affects 17w43b)
What I expected to happen was...: the function should run
What actually happened was...: "Unknown function: namespace:folder/function"

Steps to Reproduce:

  1. Create a new world (or open an existing one) in 17w45b

  2. Create a "functions" folder in [world save]/data

  3. Create a "namespace" folder in [world save]/data/functions

  4. Create a file called "test.mcfunction" in [world save]/data/functions/namespace

  5. Add a command such as "say test" and save the file.

  6. Back in minecraft, run the command /reload (note that in the case of invalid commands it still provides no feedback, even though it's supposed to display an error)

  7. Run the following command:

    /function namespace:test
  8. Observe the output:

    Unknown function: namespace:test

Comments 6

Folder structures have changed; you need to create a "data pack" instead of using the "data" folder. See this blog post for further details on setting up a data pack: https://minecraft.net/en-us/article/minecraft-snapshot-17w43a

i'm pretty sure i tried making a data pack and ran into the exact same issue

Keep in mind that it's not exactly the same folder structure. It does work fine for me as a datapack (well, "fine" not counting MC-121791 and MC-121674).

i fixed everything afaik and it's still not recognizing the functions??
the folder structure is
-datapacks
--pack
---data
----tinzin
-----functions
------roles.mcfunction

ah, it's just only showing the errors in the functions in the log output .-.
is that intended..?

okay, confirmed, valid functions in data packs work fine. whoops!

Sunroses

(Unassigned)

Unconfirmed

/function, command, function

Minecraft 17w45b

Retrieved