Function

Function allows players to run command sets when called.

NeoForge 26.1.2NeoForge 1.21.1Data pack 26.1Data pack 1.21.1Bedrock add-on 26.1

Step-by-step guide: how to make function →

Fields you fill in

Function namespace
  • Mod: Is used for your mod only. (Call such a function as ${modid}:${registryname})
  • Minecraft: Is used with some Minecraft options (Call such a function as minecraft:${registryname})
Function registry name

You can write your function name in one word or with several words with underscore(s).

Examples:

  • advancement
  • advancement_biome_reward