Update 'TylerTracker.lua'

This commit is contained in:
ydeng 2021-05-07 21:11:12 -05:00
parent 119c0c4ac5
commit 16b4041d2b

View File

@ -10,6 +10,11 @@ main.write("Le Garvie Tracker")
main.setVisible(true)
while true do
local pos = player.getPlayerPos("Garvage")
if pos == nil then
main.setCursorPos(1,2)
main.clearLine()
main.write("Player cannot be found currently.")
else
main.setCursorPos(1,2)
main.clearLine()
main.write("X: " .. pos.x)
@ -19,5 +24,6 @@ while true do
main.setCursorPos(1,4)
main.clearLine()
main.write("Z: " .. pos.z)
end
sleep(1)
end