Minecraft:Commands/waypoint: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
| name = waypoint | | name = waypoint | ||
| Line 11: | Line 11: | ||
Lists tracked waypoints or modifies properties of the waypoint being transmitted by specific entities. A tracked waypoint is associated with an entity that meets either of the following conditions: | Lists tracked waypoints or modifies properties of the waypoint being transmitted by specific entities. A tracked waypoint is associated with an entity that meets either of the following conditions: | ||
* The entity has the {{ | * The entity has the {{MC/Attr|waypoint_transmit_range}} attribute set to a value greater than 0. | ||
* The entity's waypoint color has been explicitly set using {{ | * The entity's waypoint color has been explicitly set using {{MC/Cmd|waypoint modify <waypoint> color}} (either with a name or hex code) during the current game session. This is temporary and it is no longer tracked after reloading the world. | ||
Only entities with tracked waypoints can be listed by {{ | Only entities with tracked waypoints can be listed by {{MC/Cmd|waypoint list}}. | ||
Any entities that can transmit a waypoint is called ''waypoint transmitter''. They only include living entities, which are armor stands, [[Minecraft:mob]]s, and players. | Any entities that can transmit a waypoint is called ''waypoint transmitter''. They only include living entities, which are armor stands, [[Minecraft:mob]]s, and players. | ||
| Line 25: | Line 25: | ||
:: Changes the waypoint's color to one of the 16 color codes. This overrides the default color. | :: Changes the waypoint's color to one of the 16 color codes. This overrides the default color. | ||
: <code>waypoint modify <waypoint> color hex <hex_color></code> | : <code>waypoint modify <waypoint> color hex <hex_color></code> | ||
:: Changes the waypoint's color using a 6-digit {{ | :: Changes the waypoint's color using a 6-digit {{MC/W|hexadecimal color}} code (RRGGBB format, e.g., <code>FF0000</code> for red). This overrides the default color. | ||
: <code>waypoint modify <waypoint> color reset</code> | : <code>waypoint modify <waypoint> color reset</code> | ||
:: Resets the waypoint's color to the default color (chosen randomly by the game, or the entity's team color). | :: Resets the waypoint's color to the default color (chosen randomly by the game, or the entity's team color). | ||
: <code>waypoint modify <waypoint> style set <style></code> | : <code>waypoint modify <waypoint> style set <style></code> | ||
:: Sets the waypoint style from {{ | :: Sets the waypoint style from {{MC/Cd|waypoint_style}} directory in a resource pack. By default, it is set to {{MC/Cd|minecraft:default}}. | ||
:: The game does not check if a definition exists under the directory, setting it to a non-existent definition results in a missing texture for the waypoint icon. | :: The game does not check if a definition exists under the directory, setting it to a non-existent definition results in a missing texture for the waypoint icon. | ||
: <code>waypoint modify <waypoint> style reset</code> | : <code>waypoint modify <waypoint> style reset</code> | ||
| Line 36: | Line 36: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|waypoint|entity}} | ||
: Specifies the target entity whose transmitted waypoint should be modified. | : Specifies the target entity whose transmitted waypoint should be modified. | ||
: {{ | : {{MC/Arg desc|je=entity|amount=single|type=entities}} Must be a waypoint transmitter. | ||
{{ | {{MC/Argument|color|color}} | ||
: Specifies a color name to apply to the waypoint's indicator on the locator bar. This overrides the default color (which may be influenced by the entity's team color). | : Specifies a color name to apply to the waypoint's indicator on the locator bar. This overrides the default color (which may be influenced by the entity's team color). | ||
: Must be a valid color name (e.g., <code>red</code>, <code>blue</code>, <code>light_purple</code>). | : Must be a valid color name (e.g., <code>red</code>, <code>blue</code>, <code>light_purple</code>). | ||
{{ | {{MC/Argument|hex_color|hex_color}} | ||
: Specifies a {{ | : Specifies a {{MC/W|hexadecimal color}} code (RRGGBB format) to apply to the waypoint's indicator on the locator bar. This overrides the default color. | ||
: Must be a 6-digit hexadecimal number (000000-FFFFFF). For example, <code>FF0000</code> for red, <code>6495ED</code> for cornflower blue. | : Must be a 6-digit hexadecimal number (000000-FFFFFF). For example, <code>FF0000</code> for red, <code>6495ED</code> for cornflower blue. | ||
{{ | {{MC/Argument|style|resource_location}} | ||
: Specifies the waypoint style from {{ | : Specifies the waypoint style from {{MC/Cd|waypoint_style}} directory in a resource pack. | ||
: {{ | : {{MC/Arg desc|je=resource_location}} | ||
== Result == | == Result == | ||
| Line 56: | Line 56: | ||
{{Result table|onlyje=1}} | {{Result table|onlyje=1}} | ||
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}} | {{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}} | ||
{{Result table|cmd=/waypoint modify <waypoint>|{{ | {{Result table|cmd=/waypoint modify <waypoint>|{{MC/Cd|waypoint}} is a target selector that's not a waypoint transmitter.|fail}} | ||
{{Result table|cmd=/waypoint modify ... color <color>|{{ | {{Result table|cmd=/waypoint modify ... color <color>|{{MC/Cd|color}} is an unknown color.|fail}} | ||
{{Result table|cmd=/waypoint modify ... color hex <hex_color>|{{ | {{Result table|cmd=/waypoint modify ... color hex <hex_color>|{{MC/Cd|hex_color}} is an invalid hex color code.|fail}} | ||
{{Result table|cmd=|succeed}} | {{Result table|cmd=|succeed}} | ||
{{Result table}} | {{Result table}} | ||
| Line 64: | Line 64: | ||
== 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|cmd=/waypoint list|On success|1|1|the total number of tracked waypoints}} | {{MC/Output table|cmd=/waypoint list|On success|1|1|the total number of tracked waypoints}} | ||
{{Output table}} | {{MC/Output table}} | ||
== Examples == | == Examples == | ||
| Line 75: | Line 75: | ||
* To change the waypoint color for the player named "Steve" to gold on the locator bar: | * To change the waypoint color for the player named "Steve" to gold on the locator bar: | ||
*: <code>waypoint modify Steve color gold</code> | *: <code>waypoint modify Steve color gold</code> | ||
* To change the waypoint color for a creeper to lime using a hex code:{{note|name=single_entity|1=The {{ | * To change the waypoint color for a creeper to lime using a hex code:{{note|name=single_entity|1=The {{MC/Cd|<waypoint>}} selector must resolve to exactly one entity. Using a selector like <code>@e[type=...]</code> without <code>limit=1</code> will fail if more than one entity of that type exists.}} | ||
*: <code>waypoint modify @e[type=creeper,limit=1] color hex 00FF00</code> | *: <code>waypoint modify @e[type=creeper,limit=1] color hex 00FF00</code> | ||
* To reset the waypoint color for a [[Minecraft:zombie]] to its default color:{{note|name=single_entity}} | * To reset the waypoint color for a [[Minecraft:zombie]] to its default color:{{note|name=single_entity}} | ||
| Line 84: | Line 84: | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.21.6|exp=Locator Bar|dev=25w15a|Added {{ | |{{HistoryLine||1.21.6|exp=Locator Bar|dev=25w15a|Added {{MC/Cmd|waypoint|link=none}}.}} | ||
|{{HistoryLine||1.21.6|dev=25w17a | |{{HistoryLine||1.21.6|dev=25w17a | ||
|{{ | |{{MC/Cmd|waypoint|link=none}} is now available in normal gameplay. | ||
|Added {{ | |Added {{MC/Cmd|waypoint modify ... style|link=none}} arguments. | ||
|Removed {{ | |Removed {{MC/Cmd|waypoint modify ... fade|link=none}} arguments, effectively removing waypoint's fade effects.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/waypoint | de:Befehl/waypoint | ||
Latest revision as of 20:15, 9 April 2026
Script error: No such module "Exclusive". Template:Infobox command
Manages waypoints displayed on the locator bar. Allows querying existing waypoints of entities and modifying their appearance properties like color and fade effect.
Usage
Lists tracked waypoints or modifies properties of the waypoint being transmitted by specific entities. A tracked waypoint is associated with an entity that meets either of the following conditions:
- The entity has the
- REDIRECT Template:Attribute link
Template:Redr attribute set to a value greater than 0.
- The entity's waypoint color has been explicitly set using
- REDIRECT Template:Command
Template:Redr (either with a name or hex code) during the current game session. This is temporary and it is no longer tracked after reloading the world.
Only entities with tracked waypoints can be listed by
- REDIRECT Template:Command
Any entities that can transmit a waypoint is called waypoint transmitter. They only include living entities, which are armor stands, Minecraft:mobs, and players.
Syntax
waypoint list- Lists all tracked waypoint from entities (as defined above). The output includes the player's name or the entity's type with color specified by their waypoint color. If none specified, it results to white, regardless of the randomly chosen color by the game or their team color.
waypoint modify <waypoint> color <color>- Changes the waypoint's color to one of the 16 color codes. This overrides the default color.
waypoint modify <waypoint> color hex <hex_color>- Changes the waypoint's color using a 6-digit
- REDIRECT Template:Wikipedia
Template:Redr code (RRGGBB format, e.g., FF0000 for red). This overrides the default color.
waypoint modify <waypoint> color reset- Resets the waypoint's color to the default color (chosen randomly by the game, or the entity's team color).
waypoint modify <waypoint> style set <style>- Sets the waypoint style from
- REDIRECT Template:Code
Template:Redr directory in a resource pack. By default, it is set to
- REDIRECT Template:Code
- The game does not check if a definition exists under the directory, setting it to a non-existent definition results in a missing texture for the waypoint icon.
waypoint modify <waypoint> style reset- Resets the waypoint's style.
Arguments
<waypoint>: entity
- Specifies the target entity whose transmitted waypoint should be modified.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} Must be a waypoint transmitter.
<color>: color
- Specifies a color name to apply to the waypoint's indicator on the locator bar. This overrides the default color (which may be influenced by the entity's team color).
- Must be a valid color name (e.g.,
red,blue,light_purple).
<hex_color>: hex_color
- Specifies a
- REDIRECT Template:Wikipedia
Template:Redr code (RRGGBB format) to apply to the waypoint's indicator on the locator bar. This overrides the default color.
- Must be a 6-digit hexadecimal number (000000-FFFFFF). For example,
FF0000for red,6495EDfor cornflower blue.
<style>: resource_location
- Specifies the waypoint style from
- REDIRECT Template:Code
Template:Redr directory in a resource pack.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|resource_location}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Result
Template:Result table Template:Result table Template:Result table 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: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}}|the total number of tracked waypoints}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/waypoint list}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#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|}}
Examples
- To list all currently tracked waypoints being transmitted:
waypoint list
- To change the waypoint color for the player named "Steve" to gold on the locator bar:
waypoint modify Steve color gold
- To change the waypoint color for a creeper to lime using a hex code:Template:Note
waypoint modify @e[type=creeper,limit=1] color hex 00FF00
- To reset the waypoint color for a Minecraft:zombie to its default color:Template:Note
waypoint modify @e[type=zombie,limit=1] color reset
History
de:Befehl/waypoint ja:コマンド/waypoint lzh:令/waypoint pt:Comandos/waypoint zh:命令/waypoint