Advertisement
vantrop

peripheral founder

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