I close this mod. Cuz i hate everything what i do. Thx y'all for your downloadings and other things. It's only support 1.21.4...
Brought to you by Roflboy, with love for the Minecraft community. <3
This Fabric mod integrates Google's Gemini AI into Minecraft, allowing you to interact with an AI assistant directly within the game. The AI can answer questions, provide information about your current environment, and even execute in-game commands (if enabled).
minecraft code block within the AI's response.gemini-1.5-flash)./aihelp.The systemMessage supports several dynamic variables that are replaced with real-time game information when the AI is queried. This allows the AI to provide context-aware responses. Here's a list of the available variables:
{username}: Your Minecraft player name.{x}: Your current X-coordinate (formatted to two decimal places).{y}: Your current Y-coordinate (formatted to two decimal places).{z}: Your current Z-coordinate (formatted to two decimal places).{time}: The current world time (in ticks).{timeOfDay}: Indicates whether it's "day" or "night" based on the world time.{health}: Your current health (formatted to one decimal place, out of 20).{food}: Your current food level (out of 20).{xp}: Your current experience level.{dimension}: The name of the dimension you're currently in (e.g., "minecraft:overworld").{difficulty}: The current game difficulty (e.g., "peaceful", "easy", "normal", "hard").{weather}: The current weather condition ("clear" or "raining").{gameMode}: Your current game mode (e.g., "survival", "creative", "adventure", "spectator").{mainHand}: The item you're holding in your main hand, including the quantity (e.g., "1x Diamond Sword" or "nothing").{offHand}: The item you're holding in your offhand, including the quantity (e.g., "1x Shield" or "nothing").{inventory}: A comma-separated list of the items in your inventory (excluding armor), including quantities (e.g., "64x Cobblestone, 16x Iron Ingot" or "empty").{armor}: A comma-separated list of your equipped armor, including durability (e.g., "Diamond Helmet (150/363), Iron Chestplate (200/240)" or "no armor").{ping}: Your current ping to the server (in milliseconds).{playerCount}: The total number of players currently online.{playerList}: A comma-separated list of the names of all online players (e.g., "Player1, Player2, Player3" or "no other players").These variables are automatically updated each time you send a query to the AI, ensuring that the responses are relevant to your current situation. You can use these variables in your custom systemMessage to tailor the AI's behavior.
/ai <query>: Sends a question to the AI./aihelp: Displays a list of available commands and their descriptions./aihistory: Shows your conversation history with the AI (if memory is enabled)./clearmemory: Clears the conversation history./setupai apikey <apiKey>: Sets your Google Gemini API key. This is required for the mod to function./setupai model <modelName>: Sets the Gemini model to use (e.g., gemini-1.5-flash)./setupai system <systemMessage>: Sets a custom system message for the AI./setupai defaultsystem: Resets the system message to the default./setupai memory <enabled> <size>: Enables or disables conversation memory and sets its size.
enabled: true or false.size: The number of messages (both user and AI) to store (maximum 50)./setupai maxoutput <tokens>: Sets maximum of output tokens.
tokens: Any number between 50 and 8046/setupai commands <enabled>: Enables or disables AI command execution.
enabled: true or false./reloadconfig: Reload config like you just change it out of minecraft env.GeminiInMinecraft mod (jar file).mods folder./setupai apikey <your_api_key> command to set your API key.The mod uses a configuration file (geminiinminecraft.json) located in your Minecraft config directory. This file is automatically created when the mod is first run. You can edit this file directly, or use the in-game /setupai commands to modify the settings.
Configuration Options:
model: The Gemini model name (default: gemini-1.5-flash).apiKey: Your Google Gemini API key.systemMessage: The system prompt that guides the AI's behavior.memoryEnabled: Whether conversation memory is enabled (true or false).memorySize: The size of the conversation history (if memory is enabled).maxOutputTokens: Maximum size of tokens in AI response.commandExecutionEnabled: Whether AI command execution is enabled (true or false).A huge thank you to the Minecraft and Fabric communities for their continued support and inspiration. This mod wouldn't be possible without the amazing tools and resources available.
Special thanks to Google for their Gemini AI models, which power this mod's core functionality, Zaggott for the mod logo.
And, of course, thank you for using my mod! I hope you find it helpful and fun.
If you'd like to contribute to the development of this mod, feel free to submit issues or pull requests on the GitHub repository. All contributions are welcome, whether it's bug fixes, feature suggestions, or code improvements. Please make sure your pull request is relevant.
If you enjoy using this mod and would like to support its development, you can buy me a coffee!
Any support is greatly appreciated and helps me continue to improve and maintain the mod.
Thanks again for trying out my mod! I'm excited to see how you use it and hear your feedback.

A mod that integrates the Gemini AI assistant