nothing_personal

present

Dec 7th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. local sides = { "top", "bottom", "left", "right", "front", "back" }
  2. for i = 1, #sides do
  3.   if peripheral.isPresent(sides[i]) then
  4.         print("A "..peripheral.getType(sides[i]).." is on the "..sides[i])
  5.   end
  6. end
Add Comment
Please, Sign In to add comment