Advertisement
VGToolBox

To_Monitor

Sep 14th, 2012
1,222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. sides = {"left","right","front","back","top","bottom"}
  2. for i, v in ipairs(sides) do
  3.     if peripheral.isPresent(v) then
  4.         if peripheral.getType(v) == "monitor" then
  5.             term.redirect(peripheral.wrap(v))
  6.             break;
  7.         end
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement