Player2 AI NPC: What the Mod Does and How to Use It

By Arron R.9 min read
Player2 AI NPC is a Minecraft companion mod (Forge, Fabric and a NeoForge pack) that lets you chat with an AI character who acts in the world via PlayerEngine.

Player2 AI NPC is a Minecraft mod that adds an AI-powered companion you can talk to in plain language, and it doubles as a live showcase of the PlayerEngine framework, which lets that companion act in the world instead of just chatting. This guide explains what the mod is, how it works under the hood, how to get it running, where the Godot plugin fits, and how to build an AI NPC game of your own when you want more control than a mod gives you.

What is Player2 AI NPC?

An NPC (non-player character) is any character in a game that the player does not control: shopkeepers, guards, villagers, enemies. Traditionally their behaviour is scripted. A designer writes dialogue trees and behaviour rules, and the character picks from them. If you want the longer version of that distinction, our explainer on scripted vs LLM characters covers it.

Player2 AI NPC takes the other route. The companion’s replies come from a large language model (LLM), the same kind of AI behind modern chatbots, so you can type anything and get an in-character answer. What sets the mod apart from simple “chatbot in a game” experiments is the PlayerEngine layer: the companion can turn what you say into actual gameplay, such as following you, gathering materials or helping in a fight.

The name covers a small family of things, which causes some confusion:

  • The Minecraft mod: builds for Forge and Fabric on Minecraft 1.20.1.
  • The Player2 AI NPC Pack: a vanilla-plus, AI-themed modpack built around the mod, including a NeoForge 1.21.1 version. It is credited to the mod’s author, Goodbird.
  • The Player2 AI NPC plugin for Godot: a developer tool for adding AI NPCs to your own Godot projects.
  • The Player2 app: the desktop app that supplies the AI features these projects call.

The Player2 team has also run an AI NPC game jam with prizes, which is why you will find small games with “NPCs that remember everything you say” tagged with the same name.

How the Player2 AI NPC mod works in Minecraft

Under the surface, every Player2 AI NPC companion runs the same loop. Understanding it helps you predict what the companion will be good at and where it will struggle.

  1. You speak. You type a message to the companion in game.
  2. The model reads context. Your message is sent, along with a description of the character and recent conversation, to a language model through the Player2 app.
  3. The model decides. It produces a reply in the character’s voice and, when appropriate, chooses an action.
  4. PlayerEngine acts. The action is handed to PlayerEngine, which drives the companion like a player would: pathfinding, mining, crafting, following.

That last step is the important part. A language model cannot press keys or walk around a voxel world on its own. It can only produce text. PlayerEngine is the bridge that turns “go get me some wood” into a sequence of real movements and block interactions that Minecraft understands. The model handles intent; the engine handles execution.

This split also explains the companion’s quirks. When it misunderstands you, the fault is usually in the language step. When it understands you but gets stuck on terrain, the fault is in the execution step. Telling the two apart saves a lot of frustration.

Diagram of chat text turning into an AI decision and then an in-game action
The core loop of an AI companion: player text goes in, the model picks a reply and an action, and the game engine carries the action out.

How to set up Player2 AI NPC

Exact steps change between versions, so treat the mod page you download from as your checklist. The general process looks like this:

  1. Pick your loader and version. Decide between Forge 1.20.1, Fabric 1.20.1, or the NeoForge 1.21.1 modpack. The file name tells you which is which, for example a name containing “forge-1.20.1” followed by the mod version.
  2. Install the mod loader. Install the matching loader for your Minecraft version, or use a launcher that handles modpacks for you if you are going the pack route.
  3. Add the mod and any dependencies. Drop the jar into your mods folder along with whatever libraries the mod page lists.
  4. Install and run the Player2 app. The AI side runs through it, so have it open before you launch the game.
  5. Launch, spawn a companion, and talk. Start with simple, concrete requests before testing anything elaborate.

Common setup problems

  • Crash on launch: almost always a mismatch between loader, Minecraft version and mod build. Fabric jars will not load on Forge and vice versa.
  • Companion spawns but never answers: check that the Player2 app is running and signed in before you open the world.
  • Conflicts with other mods: large modpacks that change AI, pathfinding or player behaviour can clash with PlayerEngine. Test the mod alone first, then add mods back in small batches.

If you only want to play with an AI companion and do not care about mixing it into your own setup, the Player2 AI NPC Pack is the lowest-effort option, because someone has already matched the versions for you.

Player2 AI NPC for Godot and other engines

The Godot plugin is aimed at developers rather than players. Godot is an open-source game engine released under the MIT License, popular with indie developers and jam teams. The Player2 AI NPC plugin lets you add AI-driven characters to a Godot project, using AI APIs provided through the Player2 app rather than a paid API key you manage yourself.

Whatever engine you use, the pattern that makes a Player2 AI NPC work in Minecraft carries over directly. A game engine is the software framework that handles rendering, physics, input and the rest of a game’s core systems, and it is the right place to own anything that changes game state. The language model should only ever suggest. Your code decides.

Here is a minimal JavaScript version of the loop for a browser game. It asks the model for structured JSON, checks the action against a whitelist, and falls back to a scripted line if anything fails:

// Call your own backend, which holds the API key. Never put keys in client code.
const NPC_API_URL = "https://your-backend.example/npc-chat";
const ALLOWED_ACTIONS = ["follow", "stay", "mine", "attack", "none"];

const npc = {
  name: "Bramble",
  persona: "You are Bramble, a grumpy dwarf miner who helps the player. " +
           "Keep replies under 30 words.",
  history: []
};

async function talkToNpc(playerText) {
  npc.history.push({ role: "user", content: playerText });

  const messages = [
    {
      role: "system",
      content: npc.persona +
        ' Reply ONLY with JSON: {"say": string, "action": one of ' +
        JSON.stringify(ALLOWED_ACTIONS) + "}"
    },
    ...npc.history.slice(-10) // short memory keeps cost and drift down
  ];

  try {
    const res = await fetch(NPC_API_URL, {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({ messages })
    });
    const data = await res.json();
    // Assumes your backend returns an OpenAI-style chat response
    const reply = JSON.parse(data.choices[0].message.content);
    const action = ALLOWED_ACTIONS.includes(reply.action) ? reply.action : "none";
    npc.history.push({ role: "assistant", content: JSON.stringify(reply) });
    return { say: String(reply.say).slice(0, 200), action };
  } catch (err) {
    return { say: "Hmph. Ask me again later.", action: "none" };
  }
}

// Usage: const { say, action } = await talkToNpc("Can you mine that iron?");

The whitelist is the important line. It is the browser-game equivalent of PlayerEngine: the model can ask to “mine”, but only your game code knows how to mine, and anything outside the list is ignored.

How to build your own AI NPC game with WizardGenie

Mods are fun, but they live inside someone else’s game. If what you really want is a game built around a talking character, a detective who interrogates witnesses, or a shop where haggling actually works, you need your own project. That is where WizardGenie, the AI game engine inside Sorceress, is the most direct route.

WizardGenie works from a description. You tell it the game you want, and it writes the code, runs it and iterates on it with you. That fits AI NPC games well, because the hard part is rarely the chat call itself: it is the surrounding game, the movement, the UI, the action handling, the save state. Describing that in plain language and refining it as it runs is much faster than wiring it all up by hand, especially if you are new to coding. This style of working is often called vibe coding, where you guide an AI that writes the code rather than typing it yourself.

A worked example: a village with one talking NPC

  1. Start small. Ask WizardGenie for a top-down 2D village with a player character and one NPC who opens a chat box when you walk up to them.
  2. Add the action whitelist. Ask for the NPC’s replies to include an action from a fixed list (“give_item”, “follow”, “refuse”), handled by game code, using the pattern from the code above.
  3. Give the character a persona. Write two or three sentences about who they are and what they know. Keep secrets and quest facts in that prompt, not in the player’s hands.
  4. Playtest and iterate. Talk to the NPC, find where it breaks character or picks the wrong action, and describe the fix.

WizardGenie runs in the browser with nothing to install, and as a Windows desktop app with an auto-updater that gives native file access and longer agent sessions, which helps once your project grows. It works with the leading AI coding models, and you can switch models with your own API key.

Giving your NPC a face and a voice

A talking character lands harder when it looks and sounds like someone. Auto-Sprite v2 creates game-ready 2D characters and animations in any art style, so your NPC can have its own idle and talk cycles. If your game is 3D, 3D Studio goes from a typed idea to a rigged, animated, game-ready 3D character. For audio, Sound Studio covers AI music, sound effects and text-to-speech with lifelike voices, which is how you give a pre-written greeting or barks a real voice. If you already work in another coding agent, the Sorceress API gives it one key to generate those same assets. The tools guide lists everything in one place.

Browser-based AI game engine generating a playable game with a talking NPC
Describe the NPC game you want, then iterate on it while it runs.

Mistakes and trade-offs with LLM-driven NPCs

Whether you are playing with Player2 AI NPC or building your own, the same problems come up again and again.

MistakeWhat happensFix
Letting the model change game state directlyPlayers talk the NPC into giving them everythingWhitelist actions; game code enforces rules
Unlimited conversation historySlower, pricier replies and drifting personalityKeep the last few turns plus a short summary
Vague persona promptsEvery NPC sounds like the same polite assistantGive a voice, a goal, and things they refuse to do
No fallbackThe game freezes when the API is slow or downScripted fallback lines and a timeout
Putting API keys in client codeAnyone can copy and use your keyRoute calls through your own backend
Making the whole game about chatNovelty wears off in minutesTie talking to a goal: a mystery, a trade, an escape

There is also a design trade-off worth naming. Scripted NPCs are predictable, cheap and testable. LLM NPCs are surprising and flexible, but you cannot test every line they will say. Most good AI NPC games mix the two: scripted structure for the quest and the critical facts, generated dialogue for the texture in between.

Other games with AI NPCs

Player2 AI NPC is one example of a wider trend. A few others that come up often:

  • Skyrim AI NPC mods: community projects let you speak to characters by voice and hear generated replies. They follow the same loop, with the extra challenge of fitting into a game full of existing quests and lore.
  • LSPDFR and GTA V: modders in the LSPDFR police-roleplay scene have experimented with AI-driven conversations with suspects and civilians, a natural fit for interrogation gameplay.
  • Where Winds Meet: one of the commercial releases that markets NPCs you can chat with freely, rather than picking from dialogue options.
  • Jam and indie games: indie games, made by individuals or small teams, have moved fastest here, because a small team can design the whole game around one talking character.

As for GTA 6: every GTA has AI NPCs in the classic, scripted sense. Whether it will have generative conversations is a separate question, and anything you read about that should be treated as rumour until Rockstar says otherwise.

The workflow at a glance

  • Just want to play? Install the Player2 app, grab the Player2 AI NPC build that matches your loader (Forge or Fabric 1.20.1), or use the NeoForge 1.21.1 pack, and start with simple requests.
  • Making a Godot game? The Player2 AI NPC plugin adds AI characters to your project using the Player2 app’s APIs.
  • Building an AI NPC game from scratch? Describe it in WizardGenie, keep the model on a short leash with a whitelist of actions, and give the character art and a voice with Auto-Sprite v2, 3D Studio and Sound Studio.
  • Whatever you build: the model suggests, the game decides. That one rule is why the Player2 AI NPC companion feels like it acts in the world instead of just talking about it.

Frequently Asked Questions

What is Player2 AI NPC?

Player2 AI NPC is a Minecraft mod that adds an AI-powered companion you can talk to in plain language. It is built on the PlayerEngine framework, which lets the companion turn conversation into real in-game behaviour such as following you or gathering resources. It ships for Forge and Fabric on Minecraft 1.20.1, and a NeoForge 1.21.1 modpack bundles it with a vanilla-style setup.

Do I need the Player2 app to use the mod?

The Player2 ecosystem runs its AI through the Player2 app, which supplies the language model features that mods and plugins call. The Godot plugin, for example, is described as using free AI APIs from the Player2 app. Follow the setup notes on the mod page you download from, and have the app installed and running before you launch Minecraft so the companion can respond.

Which Minecraft versions does Player2 AI NPC support?

Published builds include Forge and Fabric versions for Minecraft 1.20.1, and a separate Player2 AI NPC Pack targets NeoForge on 1.21.1. Builds update often, so check the file name before downloading: it includes the loader, the Minecraft version and the mod version. A mismatch between loader, game version and mod build is the most common reason the game crashes at launch.

Can I add Player2 AI NPCs to my own game?

Yes. A Player2 AI NPC plugin exists for Godot, the open-source engine, so you can drop AI-driven characters into a Godot project. If you work in another engine or a browser game, the pattern is the same: send the player’s line plus a character description to a language model, then validate the reply and map it to actions your game already supports.

Will GTA 6 have AI NPCs?

Every GTA game has AI NPCs in the traditional sense: scripted pedestrians, drivers and police driven by behaviour code. Whether GTA 6 includes generative, language-model conversations is a different question, and you should treat any claim about that as rumour unless it comes directly from Rockstar. Mods like those in the LSPDFR scene show what players want, but they are community projects.

Are there other games with AI NPCs like this?

Yes. Skyrim has community AI NPC mods that let you speak to characters by voice, LSPDFR modders have experimented with AI-driven suspects and civilians in GTA V, and some newer releases such as Where Winds Meet market NPCs you can chat with. Many indie and jam games now use language models for characters too, often as small, focused experiments.

Sources

  1. Godot (game engine) — Wikipedia
  2. Game engine — Wikipedia
  3. Vibe coding — Wikipedia
  4. Indie game — Wikipedia
Written by Arron R.·2,219 words·9 min read

Related posts