Repository navigation
v2.0.0-alpha [MC 1.21.9]
Pre-releaseGirlfriend Mod Changelog
Version 2.0.0 (Pre-Release Alpha) [MC 1.21.9]
Overview
This is my extremely vibe coded (including readme's... sorry) attempt at transforming the original Girlfriend Mod into a feature-rich companion with AI-powered conversations, inventory management, combat assistance, and persistent memories. Almost every system has been rewritten or expanded. Next update will hopefully fix some bugs if Google gives me more free quota.. or maybe MiniMax-M2.1 won't be useless.. and also maybe add TTS/STT support via Koboldcpp. Should have probably done that before the project got this big.
Core GF System
Added:
- Inventory System: 36-slot inventory for holding items, picking up loot, and storing player gifts
- Knockout/Respawn System: Girlfriend falls unconscious at 0 HP and respawns after 20 seconds
- Owner UUID Persistence: Girlfriends remember their owner across sessions and world restarts
- Auto-Healing: Girlfriend automatically eats food from inventory when health drops below 70%
- Intelligent Following: Distance management with 2-16 block range and teleportation for extreme distances
Changed:
- Auto-healing interval reduced from 40 seconds to trigger-based with 40-second cooldown
- Following behavior now includes sprinting when owner sprints or distance exceeds threshold
Combat System
Added:
- Auto-Weapon Selection: Automatically equips best available weapon (sword or bow) from inventory
- Ranged Combat: Uses bow with arrows from inventory, targeting enemies within range
- Melee Combat: Uses sword for close-quarters combat
- Owner Defense: Attacks entities threatening the owner within 15-block radius
- Kill Reactions: AI comments on defeating enemies (20-second cooldown to prevent spam)
- Projectile Attack Goal: Dynamic goal switching between melee and ranged based on weapon equipped
AI-Powered Conversations
Added:
-
Multiple AI Provider Support:
- Chutes AI (cloud) - Default provider
- OpenRouter (cloud) - Access to Claude, GPT, and other models
- KoboldCpp (local/offline) - Complete privacy with local GGUF models
-
Conversation Memory System:
- Persistent conversation history across sessions
- Automatic summarization when history exceeds token limit
- Memory persistence via JSON files in config folder
-
Smart Intent Analysis: AI detects when player is asking for items vs. casual chat
-
Dynamic Context Awareness:
- Time of day detection (day/night/sunrise/sunset)
- Health status awareness
- Inventory content awareness
- Owner health and armor monitoring
-
Reaction System:
- Damage reactions (self and owner)
- Pickup reactions (when picking up items)
- Gift reactions (when receiving items)
- Time awareness (night fall/morning reactions)
- Kill reactions
- Owner death/respawn reactions
Changed:
- Original phrase system replaced entirely with AI-generated responses
- Relationship now affects AI behavior through conversation context
Inventory & Item Logic
Added:
- Automatic Item Pickup: Girlfriend automatically picks up nearby dropped items
- Gift Receiving: Player can give any item for girlfriend to hold (stored in inventory)
- Intelligent Item Requests: Player can ask via chat (e.g., "give me the diamond", "do you have food?")
- AI analyzes intent and checks inventory
- Girlfriend tosses requested item to player if available
- Inventory Management: AI-assisted decisions on which useless items to drop when full
- Auto-Eating: Girlfriend automatically consumes food from inventory when health is low
Changed:
- Original random gift spawning replaced with inventory-based gift system
- Item pickup now uses custom logic instead of vanilla loot pickup
Interaction System
Added:
- Gift Giving: Right-click with non-food items to give to girlfriend (stored in inventory)
- Inventory Full Handling: Girlfriend informs player when inventory is full
- Item Return: Girlfriend can give items back to player via chat requests
Changed:
- Feeding system expanded from ~10 food types to 15+ with varied healing values
- Relationship bonuses now vary by food quality
Commands
Added:
/girlfriend dismiss <player>- Dismiss a specific girlfriend/girlfriend dismiss all- Dismiss all girlfriends (OP required)/girlfriend dismiss nearby- Dismiss nearby girlfriends within 5 blocks (OP required)/girlfriend reloadprompt- Reload system prompt for AI personality/girlfriend config- Info on how to open client-side config
Changed:
- All dismiss commands added to existing command structure
Configuration & GUI
Added:
- Client-Side AI Config GUI: Press
Gto open configuration screen - Real-Time Config Sync: Config changes sync between client and server
- Provider Selection: Switch between Chutes AI, OpenRouter, and KoboldCpp via GUI
- API Key Management: Enter and save API keys for each provider
- Model Selection: Choose specific AI model for each provider
- Temperature Control: Adjust AI creativity (0.0-2.0)
- Min P Control: Adjust minimum probability threshold (0.0-1.0)
- Max History Tokens: Configure conversation memory size
- Memory Clear: Button to clear all conversation memories
- Edit System Prompt: Button to open system-prompt.txt for personality customization
- Custom Name: Set girlfriend's name via GUI
- Custom Skin Path: Configure texture path for custom skins
Changed:
- Configuration moved from hardcoded values to JSON file (
girlfriend-mod.json) - System prompt moved to editable file (
config/girlfriend-mod/system-prompt.txt)
Custom Skins
Added:
- Resource Pack Support: Create custom skins using standard Minecraft resource packs
- GUI Configuration: Set texture path directly in AI Config screen
- Multiple Path Formats: Support for various texture path formats
girlfriend-mod:textures/entity/girlfriend.png(default)minecraft:textures/entity/steve.png(use Steve's skin)custom-mod:textures/entity/custom.png(custom namespace)
Technical Improvements
Added:
- Network Sync: Custom payload system for config and memory synchronization
- NBT Data Serialization: Proper writeCustomData/readCustomData implementation
- Server Event Handlers: Player death and respawn event handling
- Chat Event Handler: Process player chat for AI conversations
Fixed:
- API Signature Mismatches for Minecraft 1.21.9:
writeCustomData(WriteView)- Implemented for NBT data serializationreadCustomData(ReadView)- Implemented for NBT data deserializationdamage(ServerWorld, DamageSource, float)- Updated signatureinitDataTracker(DataTracker.Builder)- Implemented for entity data tracking
- Item Registry Initialization NullPointerException
- Owner UUID persistence across sessions
- GUI widget visibility toggling
- AI client null pointer handling
Changed:
- Entity rendering updated to use PlayerEntityRenderState for custom skins
- AI client architecture refactored to use unified AIClientManager
- ConversationManager refactored for better memory handling
File Structure Changes
Added Files:
ai/AIClientManager.java- Unified AI client routerai/ChutesClient.java- Chutes AI API integrationai/OpenRouterClient.java- OpenRouter API integrationai/KoboldCppClient.java- KoboldCpp local AI integrationai/ConversationManager.java- Memory and conversation historyconfig/ModConfig.java- Configuration management with provider supportevent/ChatEventHandler.java- Chat message processinggui/AIConfigScreen.java- Client-side configuration GUInetwork/ModNetwork.java- Config and memory syncclient/KeyInputHandler.java- Keybind handling (G for config)
Modified Files:
GirlfriendMod.java- Added AI initialization, player lifecycle events, chat handlerGirlfriendModClient.java- Added key input handler registrationGirlFriendEntity.java- Complete rewrite with inventory, combat, AI integrationGirlFriendCommand.java- Added dismiss commandsEntityInteractionHandler.java- Added gift giving and inventory handlingGirlFriendEntityRenderer.java- Added custom skin supportItemUseHandler.java- Minor refinements
System Prompt System
Added:
- File-based customization at
config/girlfriend-mod/system-prompt.txt - Placeholder support:
{name}- Replaced with girlfriend's name{context}- Replaced with current environment data
- GUI button to open system prompt file for editing
- Hot reload on next AI response after file change
Default Personality:
- Gentle, soft-spoken, nurturing
- Easily flustered, deeply devoted
- Uses lowercase, kaomoji emoticons (:3, >.<, ^-^, ~)
- Brief, sweet responses focused on current Minecraft situation
Dependencies
Added:
- Gson for JSON serialization/deserialization
Unchanged:
- Minecraft 1.21.9
- Fabric API 0.134.0+1.21.9
- Fabric Loader 0.17.3+
- Java 21+
License
Changed:
- Original code remains CC0 1.0 Universal (by UltimateGamerMC)
- All additions and modifications licensed under GNU General Public License v2.0 (by minipasila)
- Combined work is dual-licensed under CC0 (original) and GPLv2 (additions)
Known Issues / Bugs
Combat & Combat-Related:
- Knockout Combat Bug: When the girlfriend is knocked out, she can still punch enemies while unconscious. Combat should be completely disabled during the knockout state.
- Kill Reaction Timing: The kill reaction cooldown may be too long, causing the girlfriend to not react if she kills enemies too quickly in succession.
- AI Response Blocking Combat: When the girlfriend is in the middle of combat and generating an AI response, she literally stops fighting to wait for the response, often resulting in her being killed. AI generation should happen asynchronously without blocking combat behavior.
Other Known Issues:
- AI sometimes will generate empty replies
- Memory summarization may lose context details
Dev branch
Credits
Original Project:
- UltimateGamerMC (https://github.com/UltimateGamerMC) - Original Girlfriend Mod (CC0 1.0)
Additions & Modifications:
- minipasila (https://github.com/minipasila) - All 2.0.0 features (GPLv2)
AI Providers:
- Chutes AI (https://chutes.ai)
- OpenRouter (https://openrouter.ai)
- KoboldCpp (https://github.com/LostRuins/koboldcpp)