Return Values and Run Commands with Return
The /return command in Minecraft Java Edition lets you return a specific whole number, report a failure, or run another command. It requires a permission level of 2, which means you need operator status or cheats turned on in single-player.
This command was first added in version 1.20 with just the value option. Later, in version 1.20.3, the syntax expanded to include the fail and run options that are still used in version 26.3.
/return <value>/return fail/return run <any command>/return <value>/return fail/return run <any command>| Argument | Type | What it means |
|---|---|---|
<value> | whole number | A positive or negative whole number, such as 5 or -3. |
/return 5Returns the positive whole number 5.
/return -3Returns the negative whole number -3.
/return 0Returns a value of zero.
/return 100Returns a larger positive whole number of 100.
/return failSignals that the command has failed.
/return run say Mission completeRuns a command that sends a chat message to everyone.
/return run time set dayRuns a command that changes the world time to day.
/return run weather clearRuns a command that sets the weather to clear.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition does not have the /return command, as it is exclusive to Java Edition.
The command was added to Minecraft Java Edition in version 1.20, and the fail and run syntax forms were added in version 1.20.3.
No, Bedrock Edition does not have a command with this name.
You need permission level 2, which means you must be an operator on a server or have cheats turned on in single-player.
/bossbar/data/execute/function/random/schedule/scoreboard/tag/team/trigger