diff options
Diffstat (limited to 'util/waypoints.js')
-rw-r--r-- | util/waypoints.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/waypoints.js b/util/waypoints.js new file mode 100644 index 0000000..eb7dad8 --- /dev/null +++ b/util/waypoints.js @@ -0,0 +1,7 @@ +export function waypointRender(waypoints) +{ + if(waypoints.length < 1) return + waypoints.forEach((waypoint) => { + Tessellator.drawString(Math.floor((Math.abs(parseInt(Player.getX()) - waypoint[0]) + Math.abs(parseInt(Player.getY()) - waypoint[1]) + Math.abs(parseInt(Player.getZ()) - waypoint[2]))/3) + "m", waypoint[0], waypoint[1], waypoint[2]) + }) +}
\ No newline at end of file |