Мова

CobbleBrain - AI Dialogue System for Cobblemon

CobbleBrain - AI Dialogue System for Cobblemon

Modrinth

CobbleBrain 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!

8.3k завантажень 37 підписників оновлено 22d ago
остання vNeoforge-1.3.2 Modrinth
Fabric Neoforge 1.21.1 – 1.21.1 Game-mechanicsSocial

CobbleBrain – AI Dialogue System for Cobblemon

Version
License
Status

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

  1. Create an account with a provider (examples: Google AI Studio, OpenAI, OpenRouter).

  2. Generate an API key from the provider’s dashboard.

  3. Choose a model (examples: gemma-3-12b-it, gpt-4.1-mini, anthropic/claude-3.5-sonnet).

  4. Open the mod config Menu and fill:

    • apiKey: your generated key
    • apiBaseUrl: provider’s official URL
    • aiModel: 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 lowTokenMode for faster and lighter responses.
  • Adjust maxShortMemory and maxLongMemory to 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 (instruct and 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 inside config/cobblebrain.json5 on the server.
Does the mod collect personal data? No. CobbleBrain only sends prompts to the AI provider you choose and receives responses back.
Can I use CobbleBrain on multiplayer servers? Yes. It is recommended that each player uses their own AI provider instead of sharing a single AI instance.
Found a bug, suggestion or question? Enable Debug Logging first, then ask for help on the CobbleBrain Discord thread and include your logs whenever possible.

Версії

Release
Neoforge-1.3.2
neoforge · 1.21.1 · 22d ago
All of the features in 1.3.2 BETA [(changelog)](https://modrinth.com/mod/cobblebrain-ai-dialogue-system-for-cobblemon/version/Fabric-1.3.2-BETA) and: -…
405
Release
Fabric-1.3.2
fabric · 1.21.1 · 22d ago
All of the features in 1.3.2 BETA [(changelog)](https://modrinth.com/mod/cobblebrain-ai-dialogue-system-for-cobblemon/version/Fabric-1.3.2-BETA) and: -…
2.1k
Beta
Neoforge-1.3.2-BETA
neoforge · 1.21.1 · 24d ago
## Major Changes ### Optimized Output & Instruct Systems The default **output** and **instruct** systems have been improved and optimized. Compared to…
71
Beta
Fabric-1.3.2-BETA
fabric · 1.21.1 · 24d ago
## Major Changes ### Optimized Output & Instruct Systems The default **output** and **instruct** systems have been improved and optimized. Compared to…
288
Release
Fabric-1.3.1
fabric · 1.21.1 · 1mo ago
## Major changes - Now actions (and other affected systems) work normally in other dimensions (e.g. the Nether, the End) - Berries contribute to the…
1.2k
Release
Neoforge-1.3.1
neoforge · 1.21.1 · 1mo ago
## Major Changes - Now actions (and other affected systems) work normally in other dimensions (e.g. the Nether, the End) - Berries contribute to the…
271
Beta
Fabric-1.3.0
fabric · 1.21.1 · 1mo ago
## Major Changes ### Mission System Rework The mission system has been expanded and improved: * **BATTLE** mission changes: if you walk a certain distance…
86
Beta
Neoforge-1.3.0
neoforge · 1.21.1 · 1mo ago
## Major Changes ### Mission System Rework The mission system has been expanded and improved: * **BATTLE** mission changes: if you walk a certain distance…
44
Release
Fabric-1.2.0
fabric · 1.21.1 · 2mo ago
## Major Changes ### Gameplay Systems Configuration Added a new **Gameplay Systems** feature in the config menu that allows enabling or disabling specific…
352
Release
NeoForge-1.2.0
neoforge · 1.21.1 · 2mo ago
## Major Changes ### Gameplay Systems Configuration Added a new **Gameplay Systems** feature in the config menu that allows enabling or disabling specific…
118
Release
Neoforge-1.1.1
neoforge · 1.21.1 · 2mo ago
## Major changes Fixed bug where client config caused a crash on a dedicated server, now the mod should work normally in that environment Some client values…
72
Release
Fabric-1.1.1
fabric · 1.21.1 · 2mo ago
## Major changes Fixed bug where client config caused a crash on a dedicated server, now the mod should work normally in that environment Some client values…
205

Коментарі 0

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