Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if pocket then
- player_name = "sasaa_86"
- players = peripheral.find("playerDetector")
- while true do
- players_nearby = players.getPlayersInRange(100)
- term.clear()
- term.setCursorPos(1,1)
- print("Players in 100 block range")
- for i=1, #players_nearby do
- if players_nearby[i] ~= player_name then
- local cords = players.getPlayerPos(players_nearby[i])
- print(players_nearby[i] .." @ x," .. cords.x .." y,".. cords.y .." z,".. cords.z)
- end
- end
- os.sleep(0.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement