Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- local proxSense = sensor.wrap("top")
- term.redirect(peripheral.wrap("right"))
- repeat
- term.clear()
- for target in pairs(proxSense.getTargets()) do
- local detailedInfo = proxSense.getTargetDetails(target)
- if detailedInfo.Name == "Player" then
- print("--> "..target.." <--")
- end
- end
- until false
Advertisement
Add Comment
Please, Sign In to add comment