Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local term = require("term")
- local chatBox = component.chat
- local gpu = component.gpu
- --Настроечки
- chatBox.setDistance(100)
- --Задаем имя
- gpu.setForeground(0x00FFFF)
- print("Welcome to ChatBox! Please enter your name")
- name = term.read()
- chatBox.setName("§6" .. name)
- gpu.setForeground(0xFFFF00)
- print("Good. Now you can chat.")
- while true do
- msg = term.read()
- chatBox.say("§9" .. msg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement