To import an MCFUNCTION file, place it in a data pack. This path may differ across Minecraft versions. You can then use the function. MCFUNCTION files work with Minecraft 1.12. Commands stored on sepa...
To import an MCFUNCTION file, place it in a data pack. This path may differ across Minecraft versions. You can then use the function. MCFUNCTION files work with Minecraft 1.12. Commands stored on separate lines in plain text. Edit contents with a text editor.
A function is a .mcfunction file. Use ANSI or UTF-8 encoding without BOM. Functions belong in a data pack folder highlighted here: (data pack name).pack.mcmeta. Functions can have subfolders to organize within a namespace. Reference subfolders when invoking.
MCFUNCTION files are text files for Minecraft commands. View and edit contents with a text editor. Can’t open .mcfunction? Windows checks the extension to pick an app. If it doesn’t recognize the extension, you need to select an app.
MCFUNCTION is for Minecraft functions. It uses plain text for commands, one command per line. To use a function, place its MCFUNCTION file in the proper data pack folder.