Chat Box

From ATLauncher Wiki
Jump to: navigation, search

The chat box allows your computers to output text and make chat announcements up to a certain radius defined by the server owner (default is 64).

Chat Box API examples[edit]

chat = peripheral.wrap(<side>)
chat.say("This will be printed in the chat window")

Event,Person,Message = os.pullEvent("chat")
print(Event)
chat
print(Person)
(will print in game name)
print(Message)
(will print what Person said in chat window)