Skip to content

config.yml

Global settings are created at plugins/Blockfolk/config.yml. Restart the server after changing provider settings.

General settings

KeyDefaultDescription
chat-input-timeout-seconds60Time allowed to answer a Blockfolk admin chat prompt.
question-timeout-seconds30Time allowed to answer an NPC question before its cancel/timeout branch runs.
proximity-transition-cooldown-seconds3Debounces rapid approach/leave transitions while an NPC starts or stops moving.
mineskin-api-keyemptyOptional key for higher MineSkin limits when resolving external skin image URLs.

OpenRouter settings

KeyDefaultDescription
openrouter.endpointhttps://openrouter.ai/api/v1/chat/completionsChat-completions endpoint. HTTPS is required.
openrouter.api-keyemptyOpenRouter API key. Leave empty to keep AI unavailable.
openrouter.modeldeepseek/deepseek-v4-flash-0731OpenRouter model identifier.
openrouter.timeout-seconds12Network request timeout. Increase it for slower providers.
openrouter.max-tokens1600Maximum output allowance for the final JSON decision.

The plugin requests JSON output with temperature 0.4 and disables model reasoning for lower gameplay latency.

AI control

KeyDefaultDescription
ai-control.invocation-cooldown-seconds2Per-NPC protection in addition to event-specific trigger throttling.
ai-control.conversation-history-limit20Recent conversation lines retained per NPC conversation. 0 disables history.

NPC-specific context, memory, inventory access, chat response, and allowed actions are configured through each preset's AI Behaviour menu, not in this file.

Complete default file

yaml
chat-input-timeout-seconds: 60
question-timeout-seconds: 30
proximity-transition-cooldown-seconds: 3
mineskin-api-key: ""

openrouter:
  endpoint: "https://openrouter.ai/api/v1/chat/completions"
  api-key: ""
  model: "deepseek/deepseek-v4-flash-0731"
  timeout-seconds: 12
  max-tokens: 1600

ai-control:
  invocation-cooldown-seconds: 2
  conversation-history-limit: 20

Blockfolk documentation