Template:Distdir/doc - minecraft.fandom.com

Jump to navigation Jump to search
Treść tej podstrony pochodzi z artykułu „Template:Distdir/doc” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information

Displays range and bearing (distance in blocks and compass direction) from a starting coordinate location x1,y1 to a destination location x2,y2.

16 different compass directions are shown:

  • Cardinal directions north, east, west, south (abbreviated as N, E, W, S)
  • Intercardinal directions northwest, northeast, southwest, southeast (abbreviated as NW, NE, SW, SE)
  • Remaining compass rose directions north northwest, west northwest, north northeast, east northeast, south southwest, west southwest, south southeast, east southeast (abbreviated as NNW, WNW, NNE, ENE, SSW, WSW, SSE, ESE)

Usage[]

{{distdir|x2|y2|x1|y1}}

or

{{distdir|x2|y2}}

Examples[]

Example Result Notes
{{distdir|1201|-866|-12|98}} 1549 blocks NE Distance and direction from -12,98 to 1201,-866
{{distdir|-201|513}} 551 blocks SSW Distance and direction from 0,0 to -201,513