When I create a file "file.mcfunction", save it in ".minecraft/saves/myworld/functions/folder/file.mcfunction". I go to Minecraft write command "/reload" all reloads and then I write "/function file.mcfunction". Chat says:"Unknown function 'folder:file.mcfunction'. What I need to do ?
Attachments
Comments 2
You should be using a text editor (like Notepad) not a word processor (like MS Word) to edit the function file.
Using a program like Word will add hidden formatting to the file that is not understood by Minecraft. A text editor like Notepad edits the raw file data, which is what you need to do for minecraft functions (and most programming).
Also, since 1.12-pre4, commands within functions must omit the /, so your function file should look like this:
# I like diamonds!
give @s minecraft:diamond
Not:
# I like diamonds!
/give @s minecraft:diamond
Finally, this is a bug tracker for reporting issues in the game, not asking for help or technical support.
@Marcono1234: in his screenshots he has made the file under the data/functions folder, it looks like he just mistyped it in his bug report
First of all functions need to be placed in
.minecraft/saves/myworld/*data*/functions/folder/
And you have to leave out
.mcfunction