Advertisement
gpochy

noda

Jan 14th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. node = peripheral.wrap(dir)
  2. tprint(node)
  3.  
  4. function tprint(t)
  5.   for k,v in pairs(t) do
  6.     if type(v)=="table" then
  7.       print(tostring(k)..":")
  8.       print("[")
  9.       tprint(v)
  10.       print("]")
  11.     else
  12.       print(tostring(k)..":"..tostring(v))
  13.     end
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement