Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for NNNNTX

A Paper/Purpur plugin that turns NPCs (Villagers or any mob) into living characters powered by AI. Works with every LLM.

Report AI_NPC?

AINPC β€” AI-Powered Conversational NPCs

Turn villagers into living characters. Walk up, say hi, and they answer β€” with real personality, real memory, and real actions. Works with every LLM provider: OpenRouter, Ollama, LM Studio, OpenAI, Groq, DeepSeek, Gemini, Anthropic, or anything OpenAI-compatible.


✨ What can they do?

  • πŸ’¬ Chat naturally β€” no commands needed. Walk within 10 blocks and type in chat. The NPC turns to face you, shows πŸ’­ while thinking, and answers for everyone nearby.
  • ⚑ Streaming replies β€” answers appear sentence-by-sentence as the model types.
  • 🌍 World-aware β€” they know the time of day, weather, biome, your health, what you're holding, and who else is around. Ask a villager about the thunderstorm β€” they noticed.
  • πŸ› οΈ They actually DO things (function calling):
    • Hand you bread when you say you're hungry 🍞
    • Sell items and haggle over the price β€” payment taken from your inventory πŸ’°
    • Show emotions with particles and sounds πŸ˜„πŸ˜ 
    • Hand out quests, check your items, and pay rewards πŸ“œ
  • πŸ‘‹ Greet you first when you walk up to them.
  • 🧠 Remember you β€” per-player conversation memory, and they reply in your language.

🎭 Make characters, not chatbots

/ainpc create Bob
/ainpc persona Bob a grumpy old blacksmith who secretly loves cats

That's it. Bob now stands there, greets passers-by, complains about his back, and will sell you an iron ingot for 2 emeralds β€” if you're polite.

πŸ”Œ Bring your own AI

Every provider works. Run free local models with Ollama or LM Studio, or plug in OpenRouter/OpenAI/Anthropic/Groq/Gemini keys. Mix per-NPC: your quest-giver can run Claude while your random villagers run a local llama.

providers:
  ollama:                        # free, local
    type: openai
    base-url: http://localhost:11434/v1
    api-key: "ollama"
    model: llama3.2

πŸ”’ Server-safe by design

  • NPCs only give/sell whitelisted items β€” players can't sweet-talk them into free diamonds
  • Amount caps, per-player cooldowns, one in-flight request per player
  • All API calls run off the main thread β€” zero TPS impact
  • NPCs are invulnerable, can't be traded with, can't turn into zombies

πŸ“¦ Quick start

  1. Drop the jar in plugins/, restart
  2. Edit plugins/AINPC/config.yml β€” pick a provider, paste your key
  3. /ainpc reload, then /ainpc create <name> and start talking!

Full documentation, https://ainpc.programmer.in.th

Information

CategoryMiscellaneous
Published onJuly 22, 2026
LicenseMIT
Downloads4
Stars0
Watchers0
Addon

Pinned Versions

Members

Avatar for NNNNTX

NNNNTX

Owner