From 584dbd71d9bfe6a3b6fdd5d91f8025df3193f889 Mon Sep 17 00:00:00 2001 From: Ninjune Date: Sun, 27 Nov 2022 19:41:13 -0600 Subject: v1.6.6 --- util/constants.js | 6 ++++++ util/waypoints.js | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 util/waypoints.js (limited to 'util') diff --git a/util/constants.js b/util/constants.js index 16cd037..51345fe 100644 --- a/util/constants.js +++ b/util/constants.js @@ -22,6 +22,11 @@ let TimerData = new PogObject("Coleweight", { "timer": 0 }, "config/.timer_data.json") +let DowntimeData = new PogObject("Coleweight", { + "x": 0, + "y": 0 +}, "config/.downtime_data.json") + export default { PREFIX: "&2[CW] ", @@ -29,6 +34,7 @@ export default data: PogData, powderdata: PowderData, timerdata: TimerData, + downtimedata: DowntimeData, cwValues: [], calcCwPerHr: false, upTimeTrack: false, 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 -- cgit