Minecraft wiki entry for Creating_behavior_packs, associated text: To add functions, you must make a folder named functions inside the main folder. Then create a file with a .mcfunction extension within this folder or a subfolder. Such as example_file.mcfunction in a subfolder called example_folder. In game these functions woud be run using the /function command and be syntaxed as such /function example_folder/example_file.