How to excute function in java edition.
Step1. Download commands.
Convert image in this app, and download zip file (minecraftDot.zip).
Step2. Decompress the zip fiel.
Decompress the zip file by clicking zip file You don't need special tools, just click file
Step3. Load commands from minecraft as datapack.
Open ./minecraft/saves folder. There are world data folders. Open world folder that you excute command. In world folder, Open datapacks folder. Now you are supposed to open ./minecraft/saves/{world_name}/datapacks. In that folder, please put the folder (dot folder) that you get at step2.
📂 saves- └ 📂 world_name
- └ 📂 datapacks
- └ 📂 dot
- â”” pack.mcmeta
- └ 📂 data
Step4. Excute function.
Enter the world and excute commmand like this, /function folderName:fileName folderName is the name of folder that includes functions folder. (dot_pack by default). fileName is the name of mcfunction file. (cmd by default) If the loading is successful, you will be presented with a list of possible commands while typing /function. When you edit commands, please excute /reload