Server Commands Reference
Primitive server commands are RCON-based operations that cannot be accomplished using normal Minecraft server commands. Most server operations should use SERVER_COMMAND or EXECUTE_RCON_COMMAND with standard Minecraft syntax.
Overview
Pilaf provides primitive server commands for framework-level operations. For all other server operations, use SERVER_COMMAND with standard Minecraft command syntax.
|
Primitive vs. Composite Commands Primitive commands are framework-level operations that cannot be done with Minecraft commands: - Service health checks - State capture and management - Framework-specific testing operations Composite commands should use |
Command Categories
-
Framework Commands: Service health, state management
-
RCON Execution: Generic command execution with Minecraft syntax
SERVER_COMMAND
Execute any Minecraft server command via RCON. This is the primary primitive for all server-side operations.
Syntax
- action: "SERVER_COMMAND"
id: "unique_step_id" (1)
name: "Human-readable name" (2)
command: "minecraft_command" (3)
| 1 | Step ID for output referencing (optional) |
| 2 | Descriptive name for logging and reports (optional) |
| 3 | The complete Minecraft command to execute |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Must be |
|
string |
No |
Step identifier for referencing outputs |
|
string |
No |
Human-readable description of the action |
|
string |
Yes |
Complete Minecraft command (e.g., |
Outputs
| Output | Type | Description |
|---|---|---|
|
string |
Full command response from the server |
|
string |
|
|
string |
Human-readable status message |
Examples
- action: "SERVER_COMMAND"
name: "Spawn zombie"
command: "summon zombie ~ ~ ~ {CustomName:'\"test_zombie\"'}"
- action: "SERVER_COMMAND"
name: "Grant operator"
command: "op pilaf_tester"
- action: "SERVER_COMMAND"
name: "Set to noon"
command: "time set noon"
- action: "SERVER_COMMAND"
name: "Kill all zombies"
command: "kill @e[type=zombie]"
- action: "SERVER_COMMAND"
name: "Clear weather"
command: "weather clear"
- action: "SERVER_COMMAND"
name: "Clear inventory"
command: "clear pilaf_tester"
- action: "SERVER_COMMAND"
name: "Get version"
command: "version"
Common Minecraft Commands
Use SERVER_COMMAND with these standard Minecraft commands:
| Minecraft Command | Purpose |
|---|---|
|
Grant operator status |
|
Remove operator status |
|
Spawn entity at position |
|
Kill entities or player |
|
Set world time (day, noon, night, midnight, or ticks) |
|
Query current world time |
`weather <clear |
rain |
thunder>` |
Set weather |
|
Change game mode |
|
Give items to player |
|
Clear player inventory |
|
Teleport entity |
|
Get entity NBT data |
|
Give status effect |
Related Commands
-
PLAYER_COMMAND - Execute as player
-
CHECK_SERVICE_HEALTH - Check backend health
-
STORE_STATE - Capture command output
CHECK_SERVICE_HEALTH
Check if a service (Minecraft server, Mineflayer bridge, or RCON) is healthy and responsive. This is a framework-level primitive for verifying service availability before executing commands.
Syntax
- action: "CHECK_SERVICE_HEALTH"
id: "unique_step_id" (1)
name: "Human-readable name" (2)
service: "minecraft" (3)
| 1 | Step ID for output referencing (optional) |
| 2 | Descriptive name (optional) |
| 3 | Service type: minecraft, mineflayer, rcon (default: minecraft) |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Must be |
|
string |
No |
Step identifier |
|
string |
No |
Human-readable description |
|
string |
No |
Service type: |
Outputs
| Output | Type | Description |
|---|---|---|
|
json |
JSON object with health status details |
|
boolean |
|
|
string |
|
|
string |
Human-readable status message |
|
number |
Response time in milliseconds |
Example
# Check Minecraft server health
- action: "CHECK_SERVICE_HEALTH"
id: "server_health"
name: "Check server health"
# Verify server is ready
- action: "ASSERT_RESPONSE_CONTAINS"
name: "Verify server healthy"
source: "${{ steps.server_health.outputs.healthy }}"
contains: "true"
# Check RCON connectivity
- action: "CHECK_SERVICE_HEALTH"
id: "rcon_health"
name: "Check RCON health"
service: "rcon"
# Check Mineflayer bridge
- action: "CHECK_SERVICE_HEALTH"
id: "bridge_health"
name: "Check Mineflayer bridge"
service: "mineflayer"
Related Commands
-
WAIT - Wait for service to become available
-
CONNECT_PLAYER - Connect player after health check
Command Summary
| Command | Purpose | Key Outputs |
|---|---|---|
Execute any Minecraft command via RCON |
|
|
Verify service availability |
|
See Also
-
Player Commands - Mineflayer client actions
-
Workflow & Assertion Commands - Control flow and validation
-
Writing Stories - How to use commands in stories