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.3 · from Mojang's own command tree

  • /function <name>
  • /function <name> <arguments>
  • /function <name> with block <source>
  • /function <name> with block <source> <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.