mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-28 10:55:27 +02:00
93 lines
4.7 KiB
JavaScript
93 lines
4.7 KiB
JavaScript
const settings = {
|
|
"minecraft_version": "1.21.1", // supports up to 1.21.1
|
|
"host": "127.0.0.1", // or "localhost", "your.ip.address.here"
|
|
"port": 55916,
|
|
"auth": "offline", // or "microsoft"
|
|
|
|
// the mindserver manages all agents and hosts the UI
|
|
"host_mindserver": true, // if true, the mindserver will be hosted on this machine. otherwise, specify a public IP address
|
|
"mindserver_host": "localhost",
|
|
"mindserver_port": 8081,
|
|
|
|
// the base profile is shared by all bots for default prompts/examples/modes
|
|
"base_profile": "./profiles/defaults/survival.json", // also see creative.json, god_mode.json
|
|
"profiles": [
|
|
"./andy.json",
|
|
// "./profiles/gpt.json",
|
|
// "./profiles/claude.json",
|
|
// "./profiles/gemini.json",
|
|
// "./profiles/llama.json",
|
|
// "./profiles/qwen.json",
|
|
// "./profiles/grok.json",
|
|
// "./profiles/mistral.json",
|
|
// "./profiles/deepseek.json",
|
|
// "./profiles/andy-4.json",
|
|
|
|
// using more than 1 profile requires you to /msg each bot indivually
|
|
// individual profiles override values from the base profile
|
|
],
|
|
"load_memory": true, // load memory from previous session
|
|
"init_message": "Respond with hello world and your name", // sends to all on spawn
|
|
"only_chat_with": [], // users that the bots listen to and send general messages to. if empty it will chat publicly
|
|
"language": "en", // translate to/from this language. Supports these language names: https://cloud.google.com/translate/docs/languages
|
|
"show_bot_views": false, // show bot's view in browser at localhost:3000, 3001...
|
|
|
|
"allow_insecure_coding": true, // allows newAction command and model can write/run code on your computer. enable at own risk
|
|
"allow_vision": true, // allows vision model to interpret screenshots as inputs
|
|
"vision_mode": "always", // "off", "prompted", or "always"
|
|
"blocked_actions" : ["!checkBlueprint", "!checkBlueprintLevel", "!getBlueprint", "!getBlueprintLevel"] , // commands to disable and remove from docs. Ex: ["!setMode"]
|
|
"code_timeout_mins": -1, // minutes code is allowed to run. -1 for no timeout
|
|
"relevant_docs_count": 5, // number of relevant code function docs to select for prompting. -1 for all
|
|
|
|
"max_messages": 15, // max number of messages to keep in context
|
|
"num_examples": 2, // number of examples to give to the model
|
|
"max_commands": -1, // max number of commands that can be used in consecutive responses. -1 for no limit
|
|
"verbose_commands": true, // show full command syntax
|
|
"narrate_behavior": true, // chat simple automatic actions ('Picking up item!')
|
|
"chat_bot_messages": true, // publicly chat messages to other bots
|
|
|
|
"speak": true, // enable text-to-speech
|
|
"stt_transcription": true, // enable speech-to-text transcription
|
|
"stt_username": "SERVER", // username for STT messages
|
|
"stt_agent_name": "", // agent name for STT messages, if empty it will send the STT to all bots
|
|
|
|
// STT Audio Detection Settings
|
|
"stt_rms_threshold": 8000, // Higher = less sensitive to background noise
|
|
"stt_silence_duration": 2000, // 2 seconds of silence before stopping
|
|
"stt_min_audio_duration": 0.5, // Minimum audio duration in seconds
|
|
"stt_max_audio_duration": 15, // Maximum audio duration in seconds
|
|
"stt_debug_audio": false, // Enable to see audio levels and tune threshold
|
|
"stt_cooldown_ms": 2000, // Minimum time between recordings (increased)
|
|
"stt_speech_threshold_ratio": 0.15, // Percentage of samples that must be above threshold to consider it speech
|
|
"stt_consecutive_speech_samples": 5, // Consecutive samples above threshold before considering it speech
|
|
|
|
"log_normal_data": true, // Logs all inputs / outputs without reasoning or vision data
|
|
"log_reasoning_data": true, // Logs only reasoning inputs / outputs
|
|
"log_vision_data": true, // Logs only vision inputs / outputs
|
|
|
|
}
|
|
|
|
// these environment variables override certain settings
|
|
if (process.env.MINECRAFT_PORT) {
|
|
settings.port = process.env.MINECRAFT_PORT;
|
|
}
|
|
if (process.env.MINDSERVER_PORT) {
|
|
settings.mindserver_port = process.env.MINDSERVER_PORT;
|
|
}
|
|
if (process.env.PROFILES && JSON.parse(process.env.PROFILES).length > 0) {
|
|
settings.profiles = JSON.parse(process.env.PROFILES);
|
|
}
|
|
if (process.env.INSECURE_CODING) {
|
|
settings.allow_insecure_coding = true;
|
|
}
|
|
if (process.env.BLOCKED_ACTIONS) {
|
|
settings.blocked_actions = JSON.parse(process.env.BLOCKED_ACTIONS);
|
|
}
|
|
if (process.env.MAX_MESSAGES) {
|
|
settings.max_messages = process.env.MAX_MESSAGES;
|
|
}
|
|
if (process.env.NUM_EXAMPLES) {
|
|
settings.num_examples = process.env.NUM_EXAMPLES;
|
|
}
|
|
|
|
export default settings;
|