The function is one of the new commands introduced in the beta version of Minecraft Bedrock 1.8. This command executes actions defined in specific function files. To utilize this command, a behavior pack must be applied to the world.
How does it work?
Once you have applied the behavior pack of the mod titled Function File For Command in your Minecraft world, you can use the following commands:
- /function invulnerable – makes you invincible
- /function tools – grants you a set of diamond tools
- /function kit – spawns a chest filled with items
- /function over_powered – provides numerous power-enhancing effects
- /function strike – strikes lightning on all entities within 20 blocks of you
- /function clear – clears your entire inventory, effects, and weather
If you forget these commands, you can use:
- /function help
- /function help2
For instance, I used the /function kit command to create a chest containing various items.
In the same example, I utilized the /function strike command to hit all entities within a 20-block radius with lightning.
Activate this pack in your world to start using the above commands. You can modify the file and create your own custom command; in this folder, you’ll find the functions folder where all .mcfunction files are located. Open any of them to edit the text. The text you see here represents commands for the game, executed when you run the function command. You can include one or multiple commands in a single file.
Installing Function File For Command (.mcpack)
- Download the mod labeled as .mcpack below.
- Run the downloaded file to import the addon/resource into MCPE.
- Open Minecraft Pocket Edition and navigate to the world settings.
- Apply the imported packs to the world:
— Add-on Packs. - Select the imported resource/addon packs in each section.
- It is recommended to restart the Minecraft PE client afterward.
- Launch Minecraft Pocket Edition, enter the previously configured world MCPE, and enjoy the addon!