/chase
< Commands
This feature is exclusive to Java Edition.
This feature is intended for debugging purposes only, and should not be used during normal play. It might cause crashes and corrupt world saves.
/chase| Permission level required |
0 |
|---|---|
| Restrictions |
|
{
"title": "<code>/chase</code>",
"rows": [
{
"field": "0",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "<code>-DMC_DEBUG_CHASE_<br />COMMAND</code> (link to debug property article, displayed as debug property)",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
/chase is a command that can be enabled with the debug property -DMC_DEBUG_CHASE_COMMAND. It teleports a following player to the same position and rotation angle as a leading player whenever that leading player moves. This works even between different worlds and when the following player's Singleplayer game is paused.
Syntax
chase lead [<bind_address>] [<port>]
- Starts a server that can be accessed on this IP address and port. It transmits the player's position whenever that player's position or facing angle changes.
- By default, prints "Chase server is now running on port <port>. Clients can follow you using /chase follow <ip> <port>.". The default host is
localhostand the default port 10000. Ifchase followorchase leadhas already been used withoutchase stopafterwards, prints the error "Chase server is already running. Stop it using /chase stop."
chase follow [<host>] [<port>]
- Starts following the movements transmitted by the server and printing the coordinates to chat. The following player can still move independently, but gets teleported back whenever position information is received.
- By default, prints "You are now chasing <host>:<port>". If that server does '/chase lead', then you will automatically go to the same position. Use `/chase stop` to stop chasing.". The default host is
localhostand the default port 10000. Ifchase followorchase leadhas already been used withoutchase stopafterwards, prints the error "You are already chasing someone. Stop it using /chase stop.".
chase stop
- Stops transmitting or receiving positions, depending on which sub-command was used before. Prints "You have now stopped chasing" or "You are no longer being chased" respectively. If no chase is active, does nothing and prints nothing.
Arguments
<bind_address>: string
- A hostname or IP address, to be used for transmitting locations. E.g. "
localhost" and "127.0.0.1" are equivalent. - Must be a string.
<host>: string
- Same as
bind_address, except for receiving. Also called "ip" in the/chase leadchat output. - Must be a string.
<port>: integer
- Network port, to be used for transmitting or receiving locations.
- Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ). And it must be between 1 (for
chase follow), or 1024 (forchase lead) and 65535 (inclusive).
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On success | 1 | 1 | 0 |
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.9 | 25w37a | Added debug property -DMC_DEBUG_CHASE_COMMAND, making the command accessible in the vanilla game. | |||||