Advertisement
eXdrama

Passive Reactor

Jul 13th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local sides = { "top", "bottom", "left", "right", "front", "back" }
  2.  
  3. print("Finding monitors...")
  4. for i = 1, #sides do
  5.   if peripheral.isPresent(sides[i]) then
  6.         if peripheral.getType(sides[i]) == "monitor" then
  7.           print("Found: "..sides[i])
  8.         end
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement