CobbleBrain - AI Dialogue System for Cobblemon
ModrinthCobbleBrain is a mod that gives Pokémon a "brain," allowing them to think, talk, and interact with their surroundings in dynamic ways. Easy to setup and play!
CobbleBrain – AI Dialogue System for Cobblemon
Discord: join the official Cobblemon server, check mods-and-plugins → CobbleBrain.
⚠️Disable the Catch indicator mod (present in Cobbleverse) when playing with cobblebrain.
⚠️Known bug: If you're playing on a server, disable "Talk in Battle". To do this, open cobblebrain.json5 in the server's config folder and set the "talkInBattle" option to false.
About
CobbleBrain is a mod that gives Pokémon a “brain,” allowing them to think, talk, and interact dynamically with the world. It integrates artificial intelligence into gameplay, making your companions talk to you, react to battles, protect you from mobs and even cook a delicious steak, all of that using your prompt.
Wild Pokémon can also interact with the player and the world, creating quests, remembering your actions, and reacting to how you treat their species.
Features
- Pokémon can talk to the player and to each other.
- Pokémon can perform actions such as attacking, eating, cooking, repairing tools, growing plants, and more.
- Dialogue influenced by friendship, nature, past interactions, and world conditions.
- Memory system that stores previous interactions.
- Wild Pokémon quests and karma system that react to your actions.
- Raid events triggered when Pokémon species become hostile toward you.
- Fully configurable AI prompts, gameplay settings, and behaviors through the Mod Menu configuration screen.
- Supports cloud AI models (Google AI Studio, OpenAI, OpenRouter, Player2) and local models via LM Studio and Player2.
- Multiplayer compatible, with each player managing their own AI processing.
How to Play
1. Choosing AI Mode
Cloud Mode (Easiest)
Cloud mode uses external AI providers to process dialogue.
Using Player2
- Install the Player2 app and create an account.
- Run Player2.exe (the app)
Player2 includes a free amount of energy, which can be replenished daily using a spinner. You can also choose the AI model that best fits your needs. In general, more expensive models are smarter.
Here's a Tutorial on YouTube!
Using Other Providers
-
Create an account with a provider (examples: Google AI Studio, OpenAI, OpenRouter).
-
Generate an API key from the provider’s dashboard.
-
Choose a model (examples:
gemma-3-12b-it,gpt-4.1-mini,anthropic/claude-3.5-sonnet). -
Open the mod config Menu and fill:
apiKey: your generated keyapiBaseUrl: provider’s official URLaiModel: ID of the chosen model
Here's a Tutorial on YouTube!
Local Mode
Local mode runs AI models directly on your computer using LM Studio or Player2.
WARNING: LOCAL MODELS MAY CAUSE PROBLEMS IF YOU RUN/INSTALL MODELS THAT ARE TOO HEAVY.
**Steps:**
1. Install [LM Studio](https://lmstudio.ai) (available for Windows, Mac, Linux).
2. Open LM Studio and set up a folder for storing models.
3. Download a model (examples: LLaMA, Mistral).
- 4b–5b models → lightweight, fast, good for simple dialogues.
- 7b–8b models → balanced, deeper responses.
- 12b+ models → complex, detailed dialogues, requiring significant RAM and GPU.
4. Prefer quantized versions (q4, q5, q8) to reduce resource usage.
5. Start the LM Studio server; it will show a local API address (e.g., `http://localhost:port`).
6. Open the **Config menu** and set:
- `apiBaseUrl`: local server address (Example: `http://localhost:1234`)
- `aiModel`: ID or name of the model running in the server
- `localApiProvider`: `"lmstudio"`
2. Interacting with Pokémon
- Use the command
/mpk <message>to talk to your Pokémon. - If
listenToChat = true, any chat message can be interpreted by the AI.
3. Performance Adjustments
- Use
lowTokenModefor faster and lighter responses. - Adjust
maxShortMemoryandmaxLongMemoryto control how much dialogue memory Pokémon retain.
Usage Recommendations
- Low-end PC / simple laptop → Cloud AI.
- Powerful laptop with dedicated GPU → Cloud AI or lightweight local models (4b–7b).
- Moderate–high-end PC → Cloud AI or robust local models (8b–12b).
- For local models, always prefer quantized versions (q4, q5, q8) to reduce RAM/GPU usage.
Configuration
CobbleBrain can be configured directly in-game through the mod config menu screen. You can open it by pressing Y or typing /cobblebrain openConfig in chat.
There you can customize:
- AI provider settings (
apiKey,apiBaseUrl,aiModel) - AI prompts (
instructand other behavior settings) - Dialogue behavior
- Wild Pokémon quest chances
- Raid settings
- Pokémon characteristics and personalities
Advanced users can still edit the generated configuration files in the /config folder if needed.
For the full list of variables and explanations, please check the
CobbleBrain README on GitHub.
Pokémon Actions
Encourage Pokémon through chat to perform actions.
Example: Squirtle, defend me! / Bulbasaur, want to eat some berries I dropped?
Primary Type-based Actions
These actions only work when the Pokémon has the right primary type.
Example: Charizard (fire, flying) can use cook, but Chandelure (ghost, fire) cannot.
Cook (Fire)
Can cook food and smelt ores. 5% chance of item turning into charcoal.Grow (Plant)
Grows tree saplings and crops.Repair (Metal)
Repairs tools and weapons up to a certain durability threshold.Shift (Ghost)
Transports the player to an alternate dimension. Player becomes invisible, gains increased speed and jump height, but suffers from high weakness.General Actions
These actions work with any pokemon!
Attack
Pokémon attacks any mobs close to it.Protect
Pokémon targets hostile mobs nearest to the player; if none are found, it follows the player.Eat
Pokémon eat any edible item dropped on the ground. Some foods and berries may grant temporary effects.Buff
Pokémon grants the player a positive status effect based on its primary type (e.g., regeneration, speed).Debuff
Pokémon applies a negative status effect to nearby mobs based on its primary type (e.g., slowness, weakness).Sit
Pokémon stays fixed in place, ignoring other actions.Idle
Pokémon cancels all active commands and returns to normal behavior.FAQ
Pokémon are not responding. What should I check?
Enable Debug Logging in the mod settings, send another message using/mpk, then check:
cobblebrain-ai/logs
Most issues are caused by:
- Invalid API key
- No provider credits
- Incorrect model name
- LM Studio server not running
Pokémon responses are too slow. Why?
Response speed depends on model size, provider traffic, internet connection and prompt size. See the question below to learn how to speed up responses.How can I reduce AI costs and token usage?
- Enable Low Token Mode
- Disable "unnecessary" AI Capabilities
- Use smaller models
- Shorten custom instructions
What are Key Rotation and Model Rotation?
Automatically switches to another API key or model when the current one fails or reaches its limit.How do I change Pokémon behavior?
Edit the Instruct setting inside the AI Prompt category. You can add, remove or modify instructions to change Pokémon personalities and behavior. To change the behavior of a specific Pokémon, use the Characteristics setting.How do I make Pokémon use canon Pokémon language?
Enable Needs Pokémon Translator. When enabled, players need an EXP Share to understand Pokémon language.How do I change server settings?
Settings marked with (SERVER) must be edited directly insideconfig/cobblebrain.json5 on the server.

Коментарі 0
Поки немає коментарів. Будь першим, хто поділиться думкою.