/waypoint
< Commands
This article is a work in progress.
Please help expand and improve it. The talk page may contain suggestions.
This article describes content that may be included in Bedrock Edition and Java Edition.
This content has appeared in Bedrock Edition 1.21.80 and Java Edition 1.21.6 development versions, but the full update containing it has not been released yet.
This feature can only be accessed through the "Locator Bar" experimental option.
This feature can only be accessed through the "Locator Bar" experimental option.
This feature is exclusive to Java Edition.
Manages waypoints displayed on the locator bar. Allows querying existing waypoints of entities and modifying their appearance properties like color and fade effect.
/waypoint
Permission level required |
2 |
---|---|
Restrictions |
Cheats enabled |
{ "title": "<code>/waypoint</code>", "rows": [ { "field": "2", "label": "(link to Permission level article, displayed as Permission level<br>required)" }, { "field": "(link to Options#Cheats article, displayed as Cheats) enabled<br/><sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i>only \"(link to Locator Bar article, displayed as Locator Bar)\" (link to Experiments article, displayed as Experiment)</i>]</sup>", "label": "(link to Commands#Restrictions article, displayed as Restrictions)" } ], "invimages": [], "images": [] }
Usage Edit
Lists tracked waypoints or modifies properties of the waypoint being transmitted by a specified entity. A tracked waypoint is associated with an entity that meets either of the following conditions:
- The entity has the
waypoint_transmit_range
attribute set to a value greater than 0. - The entity's waypoint color has been explicitly set using
/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 /waypoint list
.
Syntax Edit
waypoint list
- Lists all entities currently transmitting a tracked waypoint (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 color of the waypoint to one of the 16 color codes. This overrides the default color.
waypoint modify <waypoint> color hex <hex_color>
- Changes the color of the waypoint using a 6-digit hexadecimal color code (RRGGBB format, e.g.,
FF0000
for red). This overrides the default color.
- Changes the color of the waypoint using a 6-digit hexadecimal color code (RRGGBB format, e.g.,
waypoint modify <waypoint> color reset
- Resets the color of the waypoint to the default color (chosen randomly by the game, or the entity's team color).
waypoint modify <waypoint> fade <fade_start> <alpha_start> <fade_end> <alpha_end>
- Defines a custom distance-based fade effect for the specified entity's waypoint indicator on the locator bar. The indicator will have initial opacity of
alpha_start
(0.0–1.0), and starting at distancefade_start
(blocks), it will fade linearly to opacityalpha_end
at distancefade_end
.
- Defines a custom distance-based fade effect for the specified entity's waypoint indicator on the locator bar. The indicator will have initial opacity of
waypoint modify <waypoint> fade reset
- Resets the fade effect for the specified entity's waypoint indicator to the default behavior.
Arguments Edit
<waypoint>
: entity
- Specifies the target entity whose transmitted waypoint should be modified.
- Must be a player name, a target selector or a UUID. And the target selector must be in single type.
<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
).
- Specifies a hexadecimal color code (RRGGBB format) to apply to the waypoint's indicator on the locator bar. This overrides the default color.
- Must be a string. Must be a 6-digit hexadecimal number (000000-FFFFFF). For example,
FF0000
for red,6495ED
for cornflower blue.
<fade_start>
: integer
- Specifies the distance (in blocks) at which the waypoint indicator starts fading on the locator bar.
- Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ). And it must be between 0 and 2147483647 (inclusive).
<alpha_start>
: float
- Specifies the opacity (alpha value) of the waypoint indicator at the
fade_start
distance. - Must be a [Float]Single-precision floating-point number (from -(2-2-23)×2127 (≈-3.4×1038) to (2-2-23)2×127 (≈3.4×1038) ). And it must be between 0.0 and 1.0 (inclusive). (0.0 is fully transparent, 1.0 is fully opaque).
<fade_end>
: integer
- Specifies the distance (in blocks) at which the waypoint indicator finishes fading on the locator bar. Must be greater than or equal to
fade_start
. - Must be a [Int]32-bit integer number (from -2147483648 (-231) to 2147483647 (231-1) ). And it must be between 0 and 2147483647 (inclusive).
<alpha_end>
: float
- Specifies the opacity (alpha value) of the waypoint indicator at the
fade_end
distance and beyond. - Must be a [Float]Single-precision floating-point number (from -(2-2-23)×2127 (≈-3.4×1038) to (2-2-23)2×127 (≈3.4×1038) ). And it must be between 0.0 and 1.0 (inclusive).
- ↑
net.minecraft.commands.arguments.HexColorArgument
is the argument type specified forhex_color
.
Result Edit
This section is missing information about: command results.
Please expand the section to include this information. Further details may exist on the talk page.
Output Edit
This section is missing information about: command outputs.
Please expand the section to include this information. Further details may exist on the talk page.
Examples Edit
- 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:[note 1]
waypoint modify @e[type=creeper,limit=1] color hex 00FF00
- To reset the waypoint color for a zombie to its default color:[note 1]
waypoint modify @e[type=zombie,limit=1] color reset
- To make a random player's waypoint indicator fully opaque (alpha 1.0) up to 20 blocks away, then fade to 30% opaque (alpha 0.3) by 100 blocks away on the locator bar:
waypoint modify @r fade 20 1.0 100 0.3
- To reset the fade effect for a skeleton to the default behavior:[note 1]
waypoint modify @e[type=skeleton,limit=1] fade reset
- ↑ Jump up to: a b c The
<waypoint>
selector must resolve to exactly one entity. Using a selector like@e[type=...]
withoutlimit=1
will fail if more than one entity of that type exists.
History Edit
[hide]Upcoming Java Edition | |||||||
---|---|---|---|---|---|---|---|
1.21.6 Experiment | 25w15a | Added /waypoint . |