Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
Until this message is on this page, the mod is not playable for players with a free API, since Google has practically decided to remove the Gemini models from free use... BUT DON'T WORRY, I will adapt the mod to use FREE models!
How to play:
- You’ll need to have a Google AI Studio (NOT Google cloud) account. Its easy, if you already have a google account, you just need to read and accept the terms and conditions and you are good to go.
- Then you need to copy the API key or, if you dont have it, generate one. Then, paste your key in the apiKey field inside cobblebrain.json in the config folder. You dont need a paid key, just generate a free one (without billing)
link to the tutorial available on youtube here!
3. To speak to your pokemons, use the command /msgpk then write the message, or use the chat with listenToChat enabbled in cobblebrain.json... (Messages from other players may be used by the AI if listenToChat is enabled. It is recommended to use this setting only in single-player worlds.)
Never share your apikey to others!
Features:
Pokémon can talk to the player and to other team members.
New 0.6.0 update: The Command System allows Pokémon to respond directly to player chat or act autonomously, executing behaviors like:
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 consumes edible items dropped on the ground (excluding powerful items like golden apples). Food effects will be added in future updates.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.
Dialogue is influenced by each Pokémon’s nature, friendship level, past interactions, and world conditions such as weather, time of day, and biome.
Pokémon can assist you on your adventures, warning you about nearby ores or blocks of interest (configurable soon).
Your actions and words affect friendship with your Pokémon (also configurable). The system works by collecting data from both the player and the Pokémon, then feeding it into the AI that generates natural dialogue.
Customization:
apiKey (String): the key is needed for the mod to communicate with the AI serverselectedLanguage (String): Allows the user to select the language they would like the AI to speakInstruct (String): allows the user to change the AI's instructions to whatever they want. recommended not to change the entire instruct and use the default instruct as a model for what you wantmaxDialogueSaves (Int): This variable determines how many dialogs are saved to be sent to the AI as "memory" and reference for the next dialogs. Very high numbers can overload the AI, causing dialogs to freeze or become messy. The recommended number is 3.dialogueAffectFriendship (Boolean): Determines whether dialogue can cause your friendship with Pokémon to increase...spontaneousDialogueChance (Double)Probability that the AI will trigger spontaneous dialogue (e.g., Pokémon speaking on their own during idle moments). Default: 0.15 (15%).visibleAiWarnings (Boolean)Determines whether the player sees mod-related warning messages in chat. Example: "Hold on, your Pokémon are still processing what you said..." (does not include warnings from the AI itself)listenToChat (Boolean)Enables or disables listening to regular player chat.
If true, the AI will process normal chat messages as input.
If false, the AI will only respond to explicit commands (like /msgpk).PokemonTalk: toggle Pokémon speech (basically an on/off switch of the mod).DialogueOnDamage: trigger dialogue when player or Pokémon takes damage.DialogueOnBattle: trigger dialogue during battle events.allowPokemonPVE: toggle whether Pokémon can fight against mobs (Except tamed mobs, non-agressive mobs with tags and other pokemons).allowPokemonPVP: toggle whether Pokémon can fight against other players and their pokemon (Player vs Player).
EXPERIMENTAL: onlyNearbyChat (Boolean) If enabled, the AI only listens to chat messages from nearby players (within a radius of 15 blocks).
Only applies if listenToChat is also set to true.



