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 SERVER_COMMAND with Minecraft syntax: - /summon instead of SPAWN_ENTITY - /kill instead of KILL_ENTITY - /op instead of MAKE_OPERATOR - /time instead of GET_WORLD_TIME/SET_TIME - /weather instead of GET_WEATHER/SET_WEATHER

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

action

string

Yes

Must be "SERVER_COMMAND"

id

string

No

Step identifier for referencing outputs

name

string

No

Human-readable description of the action

command

string

Yes

Complete Minecraft command (e.g., "op pilaf_tester")

Outputs

Output Type Description

result

string

Full command response from the server

status

string

"success" if command executed, "failure" if error occurred

message

string

Human-readable status message

Examples

Spawn an entity
- action: "SERVER_COMMAND"
  name: "Spawn zombie"
  command: "summon zombie ~ ~ ~ {CustomName:'\"test_zombie\"'}"
Grant operator status
- action: "SERVER_COMMAND"
  name: "Grant operator"
  command: "op pilaf_tester"
Set world time
- action: "SERVER_COMMAND"
  name: "Set to noon"
  command: "time set noon"
Kill entities
- action: "SERVER_COMMAND"
  name: "Kill all zombies"
  command: "kill @e[type=zombie]"
Set weather
- action: "SERVER_COMMAND"
  name: "Clear weather"
  command: "weather clear"
Clear inventory
- action: "SERVER_COMMAND"
  name: "Clear inventory"
  command: "clear pilaf_tester"
Get server version
- action: "SERVER_COMMAND"
  name: "Get version"
  command: "version"

Common Minecraft Commands

Use SERVER_COMMAND with these standard Minecraft commands:

Minecraft Command Purpose

op <player>

Grant operator status

deop <player>

Remove operator status

summon <entity> [pos]

Spawn entity at position

kill [target]

Kill entities or player

time set <time>

Set world time (day, noon, night, midnight, or ticks)

time query

Query current world time

`weather <clear

rain

thunder>`

Set weather

gamemode <mode> [player]

Change game mode

give <player> <item> [count]

Give items to player

clear [player]

Clear player inventory

teleport <target> <destination>

Teleport entity

data get entity <entity>

Get entity NBT data

effect give <player> <effect>

Give status effect


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

action

string

Yes

Must be "CHECK_SERVICE_HEALTH"

id

string

No

Step identifier

name

string

No

Human-readable description

service

string

No

Service type: minecraft (default), mineflayer, rcon

Outputs

Output Type Description

result

json

JSON object with health status details

healthy

boolean

true if service is healthy

status

string

"healthy", "unhealthy", or "unknown"

message

string

Human-readable status message

latency

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"
  • WAIT - Wait for service to become available

  • CONNECT_PLAYER - Connect player after health check


Command Summary

Command Purpose Key Outputs

SERVER_COMMAND

Execute any Minecraft command via RCON

result, status, message

CHECK_SERVICE_HEALTH

Verify service availability

healthy, latency, status


See Also


Back to top

Copyright © 2025 Pilaf Contributors. Open source under the MIT license.

This site uses Just the Docs, a documentation theme for Jekyll.