Function File For Command (Sample)

Function command is one of the new command that was added in Minecraft 1.8 beta. This command run commands in a corresponding function files. To use this command it should need to have a behavior pack applied in a world.

Creator: VechrozilatorTwitter Account
Updated: 4 January, 2019 (read changelog)

How does it work?

After you applied it in a world you can use the following command:

  • /function invulnerable – Makes you invulnerable
  • /function tools – Gives 1 set of diamond tools
  • /function kit – Spawn chest that have items inside
  • /function over_powered – Gives you a lot of effects that makes you over power
  • /function strike – Strike lightning bolt to all nearby entity ranging 20 blocks from you
  • /function clear – Clear all players inventory and effects also clear the weather

In case you forget these commands use:

  • /function list – shows the list of all available function command
  • /function details – show all list and description of each function command

These are the examples that I was made, you can create your own custom /function commands just open this behavior pack under the folder functions you can see a lot of files. Open one of this files as a text and you can see all command in it for the game, add or edit your own command there. You can add new files but make sure it’s extension name is .mcfunction and name it anything you like. Example if you name in the file is test then this name will be use in /function Command so it should be /function test since the file name is test, then all of the command in this folder will execute if you execute the command /function test.

In this example, I used the /function kit command to spawn a chest with some items.

In another example, I used the /function strike command to strike lightning to all entity ranging 20 blocks.

Activate this pack in world game and you can use the following command above. You can modify the file and create your own custom command, in this folder you can see function folder open it then you can see all .mcfunction files open one of it and edit the text. All text you see here are the command for the game, these command are execute when you do function command. You can input one or more command in one file.


  • Fixed bugs
  • /function help/help2 replace with /function list and /function details
  • Added more items inside the chest of the /function kit
  • Update /function strike
  • Update /function invulnerable


  1. Download Behavior Pack .McPack
  2. Apply the pack for a world
  3. Create the world

You may also like...

Installation Guides

AndroidiOSWindows 10

53 Responses

4.05 / 5 (22 votes)
  1. RadiatedMonkey says:

    Can’t download it because Adfly is forcing me to enable notifcations

  2. GalacticB69Mods says:

    My guy this is the best ever i am a developer my self and ive have been looking for a set of functions to see how their formatted i appreciate it my guy!

  3. EvockerPatrol says:

    Cool this is the best function command ever!!

  4. James says:

    How do I activate it the mod does not seem to be working for me

  5. Hexaed says:

    Hey, I’m getting ‘you must specify a min_engine_version in the behavior packs manifest.json’.
    Any solutions?

    • GalacticB69 says:

      It’s probably either your version of Minecraft or a install error I’ll take a look at it to see if I can help

  6. Jr. streem says:

    AWESOME! mod. I really looks forward to try this mod/add-on out!

  7. says:

    Noise 👌

  8. Ivanevans28 says:

    Each time it says: you must specify a min_engine_version in the behavior packs manifest.json. Please fix

  9. FSC says:

    How can i specify a min_engine _version?

    • Lock says:

      Same.When I have version of minecraft and try using the function commands it won’t work and instead says that you need to specify a min engine in the behavior pack’s json to work.But how can you do that?

  10. Alexis says:

    When I try to import this on iOS version 1.8.0, the import never completes. This is despite the fact that version 1.8.0 is supposed to support functions.

  11. Anonymous says:

    You need to specify a min_engine_version. It’s not working for me until you do that.

  12. Anonymous says:

    could you make a 1.7.1 v plz

  13. Frick Heck says:


  14. Anonymous says:

    why its not working in mcpe

  15. armourplays2018 says:

    is it okay for mcpe

  16. Anonymous says:

    It doesn’t work because the downloading website isn’t working in my country

  17. James says:

    Why does it not work for me? I have 1.8

  18. Nitch says:

    What are you doing! Stop doing mods!here are the 5 star!xdd

  19. Juan says:

    Has un /troll plz

  20. Make more stuff like this when the Xbox Live glitch is fixed this is perfect for realms and admins on realms

  21. LiSheng Xie says:

    Can other players use this function? Can they be TP?

  22. JoshuaGamingBest says:

    Great file so how do you make a function file tell me pls

  23. Anybody says:

    How do you play 1.8 on Minecraft PE Ios Ipad?

  24. can you please make a /function fly command that allows you to fly in survival mode without being put in creative mode?


    Can i add like a enchant sharpness 1000 ?

    • Machinebuilder says:

      No, you cannot. All function files are is a list of commands. So you cannot bypass the usuall command limits such as attempting /enchant @p sharpness 1000 … The maximum sharpness value is 5…

  26. gamingstats says:

    This is amazing!!

  27. /function help
    /function help2

    It tells you the list of /function command in the files.

  28. Qeis Ismail says:

    There is no /function is i need Because i play on

  29. Anonymous says:


Leave a Reply

Your email address will not be published.

Anti-Spam Quiz:

Login Register