Chat channels — one function per direction.
| Function | Where it goes |
|---|---|
chat.say(text) |
Chat message to the server |
chat.command(cmd) |
Command to the server (leading / optional) |
chat.print(t) |
Text component or string into your chat, locally |
print(...) — standard Lua print, shown in chat with the [lua] prefix. Use
chat.print for styled text without the prefix.
chat.command("time set day")
chat.print(text.literal("ready"):color(0x55FF55))