Advertisement
akihex

aeMon

Apr 6th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. local ae = peripheral.wrap("top")
  2. local mon = peripheral.wrap("monitor_8")
  3. local jl
  4.  
  5. mon.clear()
  6. mon.setTextScale(1.5)
  7.  
  8. -- mon.setCursorPos(1,1)
  9. -- mon.write("AE System Job List")
  10.  
  11. while true do
  12.   jl = ae.getJobList()
  13.   mon.clear()
  14.   mon.setCursorPos(1,1)
  15.   mon.write("AE System Job List")
  16.   if(#jl > 0) then
  17.     for n = 1,math.min(6,#jl) do
  18.       mon.setCursorPos(1,2+n)
  19.       mon.clearLine()
  20.       mon.write(jl[n].name .. " x " .. jl[n].qty)
  21.     end
  22.   end
  23.   sleep(1)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement