Advertisement
pickar

Glasses chat

Feb 21st, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. p = peripheral.wrap("bottom")
  2. p.clear()
  3. num=1
  4. X = 6
  5. Y = 30
  6. textColor = 0xFFFFFF
  7. while true do
  8. event, command, nick = os.pullEvent()
  9. if event=="chat_command" then
  10. text = p.addText(X, Y, nick..": "..command, textColor)
  11. Y=Y+10
  12. if Y > 220 then
  13. p.clear()
  14. Y=30
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement