Chatbox
The chatbox is a peripheral which allows for Computers to interface with Minecraft's chat system. It can allow you to send, receive and broadcast chat messages. It can also be crafted with a turtle to make a Chatty Turtle.
Events
Event |
Parameter 1 |
Parameter 2 |
Parameter 3 |
Parameter 4 |
Description |
chat |
"chat" |
string playerName |
string message |
|
This event is fired when someone speaks in chat |
death |
"death" |
string player |
string killer |
string damageType |
This event is fired when someone dies |
command |
"command" |
string player |
table arguments |
|
This event is fired when someone types a command prefixed with '\' (by default). When a command is done like this, it will not appear in chat |
Functions
Function |
Returns |
Description |
say(string text, [number range, [boolean infVertical,[string label]]]) |
boolean result |
Sends a message to chat Note: The label can only be applied if enabled in the config |
tell(string playerName, string text, [number range, [boolean infVertical,[string label]]]) |
boolean result |
Sends a message to the specified player Note: The label can only be applied if enabled in the config |