Added Duy tracking software.
This commit is contained in:
parent
433203f490
commit
59c6b523f1
23
DuyTracker.lua
Normal file
23
DuyTracker.lua
Normal file
@ -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("Tracker")
|
||||
main.setVisible(true)
|
||||
while true do
|
||||
local pos = player.getPlayerPos("Bleh")
|
||||
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
|
Loading…
Reference in New Issue
Block a user