ccminingturtle/DuyTracker.lua

23 lines
620 B
Lua
Raw Normal View History

2021-05-08 00:22:52 +00:00
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)
2021-05-08 00:24:17 +00:00
main.write("Le Duy Tracker")
2021-05-08 00:22:52 +00:00
main.setVisible(true)
while true do
2021-05-08 00:23:54 +00:00
local pos = player.getPlayerPos("MrArsnic")
2021-05-08 00:22:52 +00:00
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