I could not get minecraft to locate the functions files I had put in the world files folder until I removed the two resource packs I had on at the time. I tested it in 3 worlds (2 old, 1 new). After that, it worked fine (in all tested worlds).
Comments 7
I can't reproduce this problem, but I wonder if there isn't a different cause:
Today I also started experimenting with functions (1.12-Pre7) and no matter what I did the function files I had made couldn't be found, even though they were there. I made: godgear\give.mcfunction (in the functions directory), yet it wouldn't get recognized at all.
I discovered the cause of the problem though: don't treat function files as real functions. So, at first I made this small snippet:
give @p diamond_sword 1 0 {
display: {
Name: "Cool sword!"
}
}
If you copy/paste that into a command block it'll work, if you do the same in a function file then no go. So then I removed all the cr/lf and put everything on 1 single line (as if you'd use a command block) and my problems were gone. It didn't even matter if I used a resource pack or not (I only use Lithos:Core).
Using comments and such makes no difference, but if you spread a function across multiple lines then Minecraft won't recognize it.
Could that be related to your issues?
Please do not mark unreleased versions as affected.
You don't have access to them yet.