Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("top")
- monitor = peripheral.wrap("left")
- monitor.clear()
- monitor.setTextScale(1)
- modem.open(1)
- local width, height = monitor.getSize()
- ItemList = {}
- while true do
- local event, modemSide, sendFrom, replyChannel, message, sendDistacne = os.pullEvent("modem_message")
- for k,v in pairs(message) do
- ItemList[k] = v
- end
- h = 1
- w = 1
- i = 1
- monitor.clear()
- for k,v in pairs(ItemList) do
- if i < 26 then
- monitor.setCursorPos(w,i)
- monitor.write(k.." : "..v)
- i = i + 1
- else
- w = 40
- i = 1
- monitor.setCursorPos(w,i)
- monitor.write(k.." : "..v)
- i = i + 1
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement