aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNinjune <enderknight537@gmail.com>2022-11-27 19:41:13 -0600
committerNinjune <enderknight537@gmail.com>2022-11-27 19:41:13 -0600
commit584dbd71d9bfe6a3b6fdd5d91f8025df3193f889 (patch)
tree40972c73be86e71240afea9d7212192a2ac0dd6a /util
parentf8aacdf7e45003719efd949ecb8bc30001e24e17 (diff)
downloadcoleweight-584dbd71d9bfe6a3b6fdd5d91f8025df3193f889.tar.gz
coleweight-584dbd71d9bfe6a3b6fdd5d91f8025df3193f889.tar.bz2
coleweight-584dbd71d9bfe6a3b6fdd5d91f8025df3193f889.zip
v1.6.6v1.6.7
Diffstat (limited to 'util')
-rw-r--r--util/constants.js6
-rw-r--r--util/waypoints.js7
2 files changed, 13 insertions, 0 deletions
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