Ahnaf Tashin

can u generate me a minecraft mod file that givess me a ai comapnion mod and i want some features like the menu of the ai campanion creation and i can customize every thing including the gender and and i want a lot of skins and then the communication it'll do wat ever i say and it will also work like a real player, do its own things and the communication work be like "go get me some woods for the house" and she will get me woods?

Kodari AI
KodariOct 21 at 6:07 pm 4
AICompanionMod
This mod introduces a fully customizable AI companion that behaves like a real player. Players can create companions through an interactive menu, customizing gender, appearance, and selecting from a variety of skins. The companion possesses autonomous behavior, performing tasks independently such as gathering resources, building, and exploring. A sophisticated command system allows natural language communication, enabling players to issue instructions like "go get me some woods for the house," which the companion executes by locating and collecting wood, then delivering it to the player. The companion also engages in idle activities, follows the player, and responds to contextual commands, creating an immersive and dynamic gameplay experience.
  1. Set up the Fabric 1.21.11 project and companion foundation.

  2. Add the companion creation menu with name, gender, and appearance choices.

  3. Add chat-command behaviors, including following and gathering wood.

The companion can handle supported in-game tasks such as “get me wood”; arbitrary real-world AI behavior would require an external AI service.

  1. Project scaffold is in place. I’m continuing with the creation menu, then I’ll connect its choices to the companion and supported tasks.

Created the Fabric 1.21.11 AI Companion mod.

Press P to open the creator, choose a name, gender, and one of 7 vanilla villager appearances, then create the companion beside you. In chat, tell it to get wood/logs, follow, or stay/wait. It can gather up to 16 nearby logs and put them in your inventory; if it can’t find logs nearby, it tells you. It also keeps the villager’s normal behavior while following you.

A couple of limits: this is a villager-style companion, not a player entity, and the appearance choices are vanilla variants rather than custom skins. Its chat handling recognizes those supported tasks—it can’t perform arbitrary instructions or act as a general AI. Freeform AI behavior would need an AI backend; on Kodari, that backend can be built and hosted as a Discord bot.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
12 556
src/main/java/com/kodari/aicompanion/AICompanionMod.java
package com.kodari.aicompanion;

import com.kodari.aicompanion.companion.CompanionBehavior;
import com.kodari.aicompanion.network.CompanionNetworking;
import net.fabricmc.api.ModInitializer;

public final class AICompanionMod implements ModInitializer {
    public static final String MOD_ID = "aicompanion";

    @Override
    public void onInitialize() {
        CompanionNetworking.initialize();
        CompanionBehavior.initialize();
    }
}