1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

API DirectionalArrows 1.0

Get a directional arrow to a position!

  1. CarloDrift
    Supported Minecraft Versions:
    • 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16

    Code (Skript):
    1. every second:
    2.     set {_location} to location(0, 0, 0, world "world")
    3.     loop all players in world "world":
    4.         set {_direction} to direction(location of loop-player and {_location})
    5.         set {_distance} to round(flatDistance(loop-player and {_location}))
    6.         send action bar "%{_direction}% (%{_distance}% block(s))" to loop-player


    The function returns text (the directional arrow).
    from (location): starting location
    to (location): final location


    Tested version in 1.9+: 2.5-beta2
    Tested version in 1.8: 2.5-beta2 (1.8 fork)


    Feel free to leave a feedback on my work, not forgetting that the reviews space is not proper for bug reports: you should contact me on Discord (carlodrift#0758) for this.