Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- -- get the targets
- while read() do
- while true do
- term.clear()
- term.setCursorPos(1,1)
- rednet.broadcast("dGFyZ2V0cw",pass)
- --while true do
- ID,targets,pro =rednet.receive("b3BzbXNwbG9pdA",5)
- if targets~=nil then
- term.setCursorPos(1,1)
- term.setTextColor(colors.blue)
- print("[+]transfer OK")
- break
- else
- print("[-]transfer failed")
- sleep(2)
- end
- sleep(1)
- end
- -- loop through them
- i=1
- senX=0
- senY=0
- senZ=0
- for name, D in pairs(targets) do
- term.setTextColor(colors.white)
- if targets[name].IsPlayer then term.setTextColor(colors.red) end
- -- print their name
- print("Found entity: "..name)
- print("POS: "..tostring(math.modf(targets[name].Position.X)+senX).." "..tostring(math.modf(targets[name].Position.Y)+senY).." "..tostring(math.modf(targets[name].Position.Z)+senZ))
- print("------")
- i=i+1
- end
- --targets=nil
- sleep(1)
- targets=nil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement