Repository navigation
Commands
MCWSLoader edited this page Nov 15, 2026
·
2 revisions
All commands use the prefix defined in config.json (commandPrefix, default $), so the command named t:help is typed as $t:help in game chat. Parameters in [brackets] are optional.
Chat commands are rate-limited per player (command.playerRateLimit, default 10 commands per 5 seconds); excess commands are ignored with a warning.
| Level | Value | Description |
|---|---|---|
normal |
0 | Default for all players |
user |
1 | Requires user or higher |
op |
2 | Requires op or higher |
owner |
3 | Server owner only |
blocker |
-1 | Blacklisted, all commands denied |
| Command | Description | Parameters |
|---|---|---|
t:help [page] |
View command help list |
page — page number |
t:search <keyword> [page] |
Search commands by keyword |
keyword — search term |
| Command | Description | Parameters |
|---|---|---|
t:send <message> |
Broadcast message to all clients |
message — message content |
t:tellall [true/false] |
Toggle tellAll forwarding mode |
true = forward as tell |
t:cmd <command> |
Execute a Bedrock command |
command — Bedrock command |
| Command | Description | Parameters |
|---|---|---|
t:ping |
Check server latency | — |
t:time |
View current time (Beijing) | — |
t:start |
Restart SAPI polling | — |
t:move |
Set current client as main | — |
t:reload [modName] |
Reload client mods |
modName — single mod (omit for all) |
t:mod |
List all client mods | — |
t:exec <command> |
Execute shell command on server (requires command.allowShellExec: true) |
command — shell command |
| Command | Description | Parameters |
|---|---|---|
m:join |
Join music listening | — |
m:exit |
Exit music listening | — |
m:status |
View playback progress | — |
m:list [page] |
View music list |
page — page number |
m:search <keyword> [page] |
Search music files |
keyword — search term |
m:percussion <on/off> |
Toggle percussion instruments |
on / off
|
| Command | Description | Parameters |
|---|---|---|
m:run [fileName] |
Play a specific music file |
fileName — file name |
m:next |
Switch to next track | — |
m:random |
Play random music | — |
m:loop <mode> [song] |
Set loop mode |
next / random / single; song — for single mode |
m:stop [scope] |
Stop playback |
music / loop / all (default: all) |
| Command | Description | Parameters |
|---|---|---|
p:query [account] |
Query permission level |
account — player name (default: self) |
| Command | Description | Parameters |
|---|---|---|
p:add <type> <account> |
Add permission |
type — op/user/blocker; account — player name |
p:remove <type> <account> |
Remove permission |
type — op/user/blocker; account — player name |
| Command | Description | Parameters |
|---|---|---|
p:a [X Y Z] |
Set point A |
X Y Z — coordinates (default: self) |
p:b [X Y Z] |
Set point B |
X Y Z — coordinates (default: self) |
p:show |
Display A/B coordinates | — |
p:distance |
Calculate distance between A and B | — |
p:offset |
Calculate offset from A to B | — |
p:fill <block> [replace] |
Fill region |
block — block ID; replace — target block to replace |
p:copy |
Copy region | — |
p:paste [X Y Z] |
Paste structure |
X Y Z — paste location (default: self) |
p:cut |
Cut region (copy + fill air) | — |
p:cancel |
Cancel current operation | — |
p:status |
View task progress | — |
| Command | Description | Parameters |
|---|---|---|
ai <message> |
Chat with AI |
message — chat content |
ai:reset |
Reset conversation context | — |
| Command | Description | Parameters |
|---|---|---|
ai:c <message> |
Ask AI to execute Bedrock commands (supports chained rounds) |
message — chat content |
ai:c is command mode only. The model must answer with one JSON object:
{
"message": "short reply for the player",
"commands": ["say hello"],
"continue": false
}-
commandscontains Bedrock commands without a leading slash. - If
continueistrue, every command is executed, and the next AI round receives a user message with the command text and the raw JSON completion result:{"type":"command_results","round":1,"results":[{"command":"say hello","result":{...}}]}. - The conversation context is preserved, and chained rounds stop at
command.maxRounds(default4). - Command execution timeout:
command.commandTimeoutMs(default15000).
AI config uses one shared model and persona; there is no separate chat / command model block:
{
"model": "gpt-4o-mini",
"messages": [{ "role": "system", "content": "Your persona here." }],
"max_tokens": 1024,
"command": {
"maxRounds": 4,
"commandTimeoutMs": 15000
}
}The command-mode JSON protocol prompt is appended automatically to the user persona at request time.
| Command | Description | Parameters |
|---|---|---|
l:help [command] |
View command help |
command — specific command name |
l:list [page] |
View building file list |
page — page number |
l:search <keyword> [page] |
Search building files |
keyword — search term |
l:create <file> [X Y Z] [mode] |
Import Litematic projection |
file — file name; X Y Z — position; mode — trim/raw |
l:y |
Confirm import | — |
l:n |
Cancel/interrupt | — |
l:status |
View progress | — |
l:preview <file> [X Y Z] [mode] |
Preview building position |
file — file name; X Y Z — position; mode — trim/raw |
l:unpreview |
Clear preview | — |
l:export <file> [name] [mode] |
Export as .mcstructure |
file — file name; name — export name; mode — trim/raw |
l:id |
View all task IDs | — |
l:verify <id> [mode] |
Check projection vs world |
id — task ID; mode — map/world |
l:fix <id> [block] |
Fix broken blocks |
id — task ID; block — replacement block |
l:author |
View author info | — |
| Command | Description | Parameters |
|---|---|---|
i:create <file> [dir] [X Y Z] |
Convert image to pixel art |
file — image name; dir — x/y/z; X Y Z — position |
i:raw <file> [dir] [X Y Z] |
Original size conversion |
file — image name; dir — x/z; X Y Z — position |
i:y |
Confirm conversion | — |
i:n |
Cancel/interrupt | — |
i:status |
View progress | — |
| Command | Description | Parameters |
|---|---|---|
f:function <path> |
Run .mcfunction file |
path — file path |
f:loop <path> <name> <sec> |
Loop-run function |
path — file path; name — loop name; sec — interval in seconds |
f:stop [name] |
Stop loop(s) |
name — loop name (omit for all) |
| Command | Description | Parameters |
|---|---|---|
c:connect <url> |
Connect to another WebSocket server |
url — WebSocket address |
These are entered in the server terminal (stdin), not in-game.
| Command | Description |
|---|---|
!test |
Test command |
!p:list |
List all connected clients |
!p:reload |
Reload all mods + config |
!p:mod |
List all mods |
!bye |
Force exit current room |
!c:attack |
Start chat spam attack |
!c:count |
Chat crash countdown |
!c:crash |
Crash client chat |
!c:clear |
Clear chat screen |
!c:ad |
Push advertisements |
!c:repeat <text> |
Spam specified content |
!c:stop |
Stop all spamming |
!c:line <text> |
Send multi-line message |
Terminal also supports:
-
/command— forward as Bedrock command (e.g./time set day) - Plain text — broadcast as chat to all clients
MCWSLoader