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

Minecraft:Waypoint style

From SAS Gaming Wiki

Template:Exclusive Waypoint styles are Minecraft:JSON files located in Minecraft:resource packs that define styling used for changing waypoints' icon and specific distances they appear on the Minecraft:locator bar. They are used in Template:Cmd command for specific entities.

JSON format

Waypoint styles are stored as JSON files on Template:Cd directory.

Sprite selection

To determine which sprite is used based on the distances, the game uses Template:W on the player's distance between the near and far distance values, getting the index of which sprite is supposed to be shown in the Template:Nbt list. This calculation in the game is roughly equivalent to:

<math>\text{Sprite index} = \lfloor \left( \frac{\text{Player distance} - \text{Near distance}}{\text{Far distance} - \text{Near distance}} \right) \times \text{Size of sprites list} \rfloor</math>

Noticeably, the second sprite does not appear until the first index is calculated, which until then, the game uses the first sprite for the 0th index calculated, and for any distance less than the near distance. This is due to the Template:W for indexing the sprites list.

The distance (in blocks) which a sprite appears between transition can be calculated from:

<math>\text{Sprite distance between transition} = \frac{\text{Far distance} - \text{Near distance}}{\text{Size of sprites list}}</math>

History

Template:HistoryTable

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Wegpunktdarstellung Minecraft:ja:ウェイポイントのスタイル Minecraft:pt:Estilo do marcador Minecraft:zh:路径点样式