Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/chase: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{exclusive|java}}
{{MC/Exclusive|java}}
{{debug warning}}
{{MC/Debug warning}}
{{Infobox command
{{Infobox command
|name=chase
|name=chase
Line 20: Line 20:


== Arguments ==
== Arguments ==
{{argument|bind_address|string}}
{{MC/Argument|bind_address|string}}
: A hostname or IP address, to be used for transmitting locations. E.g. "<code>localhost</code>" and "<code>127.0.0.1</code>" are equivalent.
: A hostname or IP address, to be used for transmitting locations. E.g. "<code>localhost</code>" and "<code>127.0.0.1</code>" are equivalent.
: {{arg desc|je=string|type=string}}
: {{MC/Arg desc|je=string|type=string}}
{{argument|host|string}}
{{MC/Argument|host|string}}
: Same as <code>bind_address</code>, except for receiving. Also called "<code>ip</code>" in the <code>/chase lead</code> chat output.
: Same as <code>bind_address</code>, except for receiving. Also called "<code>ip</code>" in the <code>/chase lead</code> chat output.
: {{arg desc|je=string|type=string}}
: {{MC/Arg desc|je=string|type=string}}
{{argument|port|integer}}
{{MC/Argument|port|integer}}
: Network port, to be used for transmitting or receiving locations.
: Network port, to be used for transmitting or receiving locations.
: {{arg desc|je=integer|min=1 (for {{cd|chase follow}}), or 1024 (for {{cd|chase lead}})|max=65535}}
: {{arg desc|je=integer|min=1 (for {{MC/Cd|chase follow}}), or 1024 (for {{MC/Cd|chase lead}})|max=65535}}


== Result ==
== Result ==
Line 37: Line 37:


== Output ==
== Output ==
{{Output table}}
{{MC/Output table}}
{{Output table|edition=je|On success|1|1|0}}
{{MC/Output table|edition=je|On success|1|1|0}}
{{Output table}}
{{MC/Output table}}


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.21.9|dev=25w37a|Added debug property <code>-DMC_DEBUG_CHASE_COMMAND</code>, making the command accessible in the vanilla game.}}
|{{MC/HistoryLine||1.21.9|dev=25w37a|Added debug property <code>-DMC_DEBUG_CHASE_COMMAND</code>, making the command accessible in the vanilla game.}}
}}
}}


== Navigation ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


de:Befehl/chase
de:Befehl/chase
zh:命令/chase
zh:命令/chase

Latest revision as of 20:08, 9 April 2026

Script error: No such module "Exclusive". Template:Warning Template:Infobox command

/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 localhost and the default port 10000. If chase follow or chase lead has already been used without chase stop afterwards, 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 localhost and the default port 10000. If chase follow or chase lead has already been used without chase stop afterwards, 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.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|string}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<host>: string

Same as bind_address, except for receiving. Also called "ip" in the /chase lead chat output.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|string}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<port>: integer

Network port, to be used for transmitting or receiving locations.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table

Output

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

History

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/chase zh:命令/chase