From ef6930f38f6092769addb3b1d67ee7fb09df3b91 Mon Sep 17 00:00:00 2001 From: ydeng Date: Fri, 7 May 2021 21:03:11 -0500 Subject: [PATCH] Add 'TylerTracker' --- TylerTracker | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 TylerTracker diff --git a/TylerTracker b/TylerTracker new file mode 100644 index 0000000..bb42075 --- /dev/null +++ b/TylerTracker @@ -0,0 +1,23 @@ +local player = peripheral.wrap("back") +local termW, termH = term.getSize() +print(termW .. "x" .. termH) +local main = window.create(term.current(), 1, 1, termW, termH) +main.setBackgroundColor(8192) +main.clear() +main.setTextColor(2) +main.setCursorPos(1,1) +main.write("Le Garvie Tracker") +main.setVisible(true) +while true do + local pos = player.getPlayerPos("Garvage") + main.setCursorPos(1,2) + main.clearLine() + main.write("X: " .. pos.x) + main.setCursorPos(1,3) + main.clearLine() + main.write("Y: " .. pos.y) + main.setCursorPos(1,4) + main.clearLine() + main.write("Z: " .. pos.z) + sleep(1) +end \ No newline at end of file