Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sides = { "top", "bottom", "left", "right", "front", "back" }
- print("Finding monitors...")
- for i = 1, #sides do
- if peripheral.isPresent(sides[i]) then
- if peripheral.getType(sides[i]) == "monitor" then
- print("Found: "..sides[i])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement