MC Toolkit

MC Toolkit / Commands / Advanced Command Builder — Control & Debug / Return Command Generator

Return Command Generator

Build a /return command for Minecraft data pack functions — return a value, return fail, or return the result of running another command.

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

  • /return fail
  • /return <value>

Run these from an operator’s chat, a command block, or a function file. Stopwatch and Fetchprofile are newer commands — check availability on your Minecraft version.

Looking for more Minecraft tools?

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