Merge branch 'master' of https://systems.reslate.xyz/git/ydeng/CCMiningTurtle
This commit is contained in:
commit
098343f7fd
@ -6,18 +6,32 @@ main.setBackgroundColor(8192)
|
|||||||
main.clear()
|
main.clear()
|
||||||
main.setTextColor(2)
|
main.setTextColor(2)
|
||||||
main.setCursorPos(1,1)
|
main.setCursorPos(1,1)
|
||||||
main.write("Le Duy Tracker")
|
main.write("Le HooeyLou Tracker")
|
||||||
main.setVisible(true)
|
main.setVisible(true)
|
||||||
while true do
|
while true do
|
||||||
local pos = player.getPlayerPos("MrArsnic")
|
local pos = player.getPlayerPos("MrArsnic")
|
||||||
main.setCursorPos(1,2)
|
if pos == nil then
|
||||||
main.clearLine()
|
main.setCursorPos(1,2)
|
||||||
main.write("X: " .. pos.x)
|
main.clearLine()
|
||||||
main.setCursorPos(1,3)
|
main.write("Player not found.")
|
||||||
main.clearLine()
|
main.setCursorPos(1,3)
|
||||||
main.write("Y: " .. pos.y)
|
main.clearLine()
|
||||||
main.setCursorPos(1,4)
|
main.write("Last known location:")
|
||||||
main.clearLine()
|
else
|
||||||
main.write("Z: " .. pos.z)
|
main.setCursorPos(1,2)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Player found.")
|
||||||
|
main.setCursorPos(1,3)
|
||||||
|
main.clearLine()
|
||||||
|
main.setCursorPos(1,4)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("X: " .. pos.x)
|
||||||
|
main.setCursorPos(1,5)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Y: " .. pos.y)
|
||||||
|
main.setCursorPos(1,6)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Z: " .. pos.z)
|
||||||
|
end
|
||||||
sleep(1)
|
sleep(1)
|
||||||
end
|
end
|
37
TylerTracker.lua
Normal file
37
TylerTracker.lua
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
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")
|
||||||
|
if pos == nil then
|
||||||
|
main.setCursorPos(1,2)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Player not found.")
|
||||||
|
main.setCursorPos(1,3)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Last known location:")
|
||||||
|
else
|
||||||
|
main.setCursorPos(1,2)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Player found.")
|
||||||
|
main.setCursorPos(1,3)
|
||||||
|
main.clearLine()
|
||||||
|
main.setCursorPos(1,4)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("X: " .. pos.x)
|
||||||
|
main.setCursorPos(1,5)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Y: " .. pos.y)
|
||||||
|
main.setCursorPos(1,6)
|
||||||
|
main.clearLine()
|
||||||
|
main.write("Z: " .. pos.z)
|
||||||
|
end
|
||||||
|
sleep(1)
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user