Advertisement
nothing_personal

monitors

Dec 7th, 2019
147
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. print("Finding monitors...")
  3. for i = 1, #sides do
  4.   if peripheral.isPresent(sides[i]) then
  5.         if peripheral.getType(sides[i]) == "monitor" then
  6.           print("Found: "..sides[i])
  7.         end
  8.   end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement