MC Toolkit

MC Toolkit / Commands / Advanced Command Builder — Execute & Data / Function Command Generator

Function Command Generator

Build a /function command to run a data pack function, with optional macro arguments passed in as a JSON object for parameterized reusable functions.

8 argument paths · Minecraft 26.2 · from Mojang's own command tree

  • /function <name>
  • /function <name> <arguments>
  • /function <name> with block <sourcePos>
  • /function <name> with block <sourcePos> <path>
  • /function <name> with entity <source>
  • /function <name> with entity <source> <path>
  • /function <name> with storage <source>
  • /function <name> with storage <source> <path>

Run these from an operator’s chat, a command block, or a function file. Execute is simplified here — chain the rows in the order you want them to run.

Looking for more Minecraft tools?

A suite of client-side generators, viewers and converters — all free, all in your browser.