Advertisement
maxtorcd55

get_sensor

Apr 6th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local p = peripheral.wrap("top")
  2.  
  3. --while (true) do
  4.         local t = p.getNamesRemote()
  5.         for sens = 1, #t do
  6.                 if string.find(string.lower(t[sens]), "sensor") then
  7.             data = p.callRemote(t[sens], "getPlayerNames")
  8.             for names = 1, #data do
  9.                 print(t[sens]..": "..data[names])
  10.             end
  11.                 end
  12.         end
  13.  
  14. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement