Advertisement
maxtorcd55

monitor_test

Apr 10th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. kaas = peripheral.call("right","getAvailableItems")
  2. moni1 = peripheral.wrap("monitor_10")
  3.  
  4. local yline = 0
  5. local count = 0
  6. local monis = 0
  7. moni1.clear()
  8. for i = 1, #kaas do
  9.     if yline > 5 then
  10.         monis = monis + 1
  11.         moni1 = peripheral.wrap("monitor_"..10+monis)
  12.         yline = 0
  13.         count = 0
  14.         moni1.clear()
  15.     end
  16.  
  17.  
  18.  
  19.     count = count + 1
  20.     if count > 50 then
  21.         count = 0
  22.         yline = yline + 1
  23.     end
  24.     moni1.setTextScale(0.5)
  25.     moni1.setCursorPos((yline*25)+1,count)
  26.     moni1.write(kaas[i]["name"])
  27.  
  28.  
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement