COWMODSКаталог модов

SimpleNPC

A Minecraft Paper plugin that adds lifelike player NPCs with AI behavior: mining, fighting, eating, sleeping, and more!

Автор: Boulder_BDX2,2 тыс.1обновлён 3 мар. 2026 г.
ЭкономикаМобыУтилиты

Описание

SimpleNPC is a lightweight yet powerful Paper plugin that brings lifelike player‑controlled NPCs to your Minecraft server. Spawn NPCs that look like real players (Steve skin), give them tools and food, and watch them autonomously mine ores, chop trees, fight monsters, eat when hungry, and even sleep at night! They protect their creator, react to attacks with devastating revenge, and keep the server alive with their witty chat messages.

✨ Features 👤 True Player Appearance – NPCs wear a Steve head and leather armor, blending perfectly with real players. Their name tag shows health and hunger in real time.

🧠 Advanced AI Behaviors

Mining – Give them a pickaxe, and they’ll automatically search for and break nearby stone, ores, and deepslate (up to 5 blocks away).

Woodcutting – Hand them an axe, and they’ll chop down logs of all types.

Combat – With a sword, NPCs will engage nearby monsters (zombies, skeletons, etc.).

Eating – When hunger drops, they consume food from their inventory, complete with burp sounds.

Health Regeneration – If well‑fed (hunger ≥ 18), they slowly regenerate health.

Sleeping – At night, NPCs search for a bed and “sleep” until dawn.

Random Walking – When idle, they wander around like real players.

🛡️ Creator Protection – The player who spawned an NPC is never attacked, not even in revenge mode.

⚡ Revenge Mode – If another player attacks the NPC, it enters a 5‑second revenge mode and will instantly kill that attacker on its next hit.

💬 Action Messages – NPCs announce what they’re doing (mining, eating, sleeping, etc.) with colorful chat messages, repeated only every 5 seconds to avoid spam.

💰 Economy Integration – Uses Vault to charge players without the simplenpc.spawn permission. Set your own cost in config.yml.

💾 Persistent Data – All NPCs and their inventories are saved to disk and restored after a server restart.

🎭 Multiple Types – Choose from steve (fights monsters), zombie (attacks players), or villager (same as steve) – more can be added easily.

🔧 Installation Download the latest SimpleNPC-*.jar from the Releases page.

Place it in your server’s plugins folder.

Ensure your server runs Paper 1.21+ and has Vault installed (with an economy plugin like EssentialsX).

Restart the server.

After first start, a configuration file is created at plugins/SimpleNPC/config.yml.

⚙️ Configuration yaml

Cost to spawn an NPC for players without permission

spawn-cost: 100.0

How often (in seconds) NPCs perform automatic actions (eating, health regen, etc.)

action-interval: 1 🎮 Commands & Permissions Command Description Permission /spawnnpc [type] [name] Spawns an NPC at your location. type can be steve, zombie, or villager (default steve). name is optional (default "Steve"). simplenpc.spawn (default: op) Without permission – Players pay the configured spawn-cost from their Vault balance.

With permission – Free spawn.

🧠 How to Use Spawn an NPC – Stand where you want it and run /spawnnpc steve Bob.

Give it items – Right‑click the NPC to open its 27‑slot inventory. Place tools (pickaxe, axe, sword) or food inside.

Watch it work – The NPC will now:

Wander randomly when idle.

Mine stone/ores if holding a pickaxe.

Chop trees if holding an axe.

Attack monsters if holding a sword (and not in revenge mode).

Eat food when hungry.

Find a bed and “sleep” at night.

Testing revenge – Ask a friend to hit the NPC. It will flash revenge mode and instantly kill them on the next hit.

⚠️ Requirements Paper 1.21 or higher (Spigot is not fully compatible).

Java 21 or higher.

Vault (mandatory – plugin will not load without it). If you don’t need economy, you can modify the plugin to soft‑depend Vault (not recommended for production).

Последние версии

Все версии →
release

SimpleNPC 1.1.0

1.1.0
3 мар. 2026 г.2,1 тыс.Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper
Скачать
Что нового
此版本更新了一下功能: 生成者保护:生成 NPC 的玩家永远不会被 NPC 攻击(包括反击)。 不主动攻击玩家:NPC 不会主动攻击任何玩家(无论是否生成者)。 反击秒杀:当其他玩家攻击 NPC 后,NPC 进入 5 秒反击模式,在此模式下攻击该玩家将直接秒杀。 自动攻击怪物:当 NPC 持有剑时,会自动攻击附近的怪物(如僵尸、骷髅等)。 挖掘与拾取:持有镐或斧时,自动挖掘周围 5 格内的矿石/树木,并将掉落物收入背包。 进食与生命恢复:饥饿时自动食用背包食物,饱食时缓慢恢复生命。 睡觉:夜晚寻找附近的床并“睡觉”,白天自动醒来。 行动提示:关键行动(挖掘、攻击、进食、睡觉等)会在聊天栏广播提示,5 秒内相同动作不重复。
release

SimpleNPC 1.0.0

1.0.0
2 мар. 2026 г.58Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper
Скачать
Что нового
一个为 Paper 服务器开发的插件,添加了具有真实行为(挖掘、战斗、进食、睡觉)的类玩家 NPC! ✨ 功能特性 · 逼真的玩家 NPC – 使用自定义头颅和皮革盔甲生成看起来像真实玩家的 NPC(史蒂夫皮肤)。 · 自主行为 – NPC 会随机走动、挖矿、砍树、攻击怪物、吃东西,甚至晚上睡觉! · 工具使用 – 给它们镐、斧或剑,它们会自动使用最适合的工具。 · 饥饿与生命系统 – NPC 拥有生命值和饥饿值;它们会从背包中取食恢复饥饿,饱食度充足时生命会自动恢复。 · 反击模式 – 如果玩家攻击 NPC,它们会反击数秒。 · 睡觉 – 夜晚 NPC 会寻找附近的床并“睡觉”直到白天。 · 经济支持 – 集成 Vault;没有权限的玩家需要支付费用才能生成 NPC。 · 数据持久化 – NPC 及其物品栏会保存到文件,服务器重启后自动恢复。 · 多种类型 – 可选择 steve(攻击怪物)、zombie(攻击玩家)或 villager(行为同 steve)。 🔧 安装 1. 从发布页下载最新 SimpleNPC-*.jar。 2. 放入服务器的 plugins 文件夹。 3. 确保服务器为 Paper 1.21+ 且已安装 Vault 及一个经济插件(如 EssentialsX)。 4. 重启服务器。 📝 配置文件 首次运行后,会在 plugins/SimpleNPC/ 生成 config.yml: ```yaml # 无权限玩家生成 NPC 的费用 spawn-cost: 100.0 # NPC 自动行为执行间隔(秒,进食、生命恢复等) action-interval: 1 ``` 🎮 指令与权限 指令 描述 权限 /spawnnpc [类型] [名称] 在当前位置生成一个 NPC。类型:steve、zombie、villager。名称可选。 simplenpc.spawn(默认 op) · 无权限的玩家需从 Vault 经济中扣除 spawn-cost 设定的金额。 🧠 如何使用 1. 生成 NPC – 站在目标位置,执行 /spawnnpc steve 张三。 2. 给予物品 – 右键点击 NPC 打开其物品栏。放入工具(镐、斧、剑)或食物。 3. 观察其工作 – NPC 会: · 空闲时随机走动。 · 持有镐时挖掘附近的石头/矿石。 · 持有斧时砍树。 · 持有剑时攻击附近的怪物(史蒂夫类型)或玩家(僵尸类型)。 · 饥饿时吃东西。 · 夜晚寻找床并“睡觉”。 4. 反击 – 如果你攻击 NPC,它会反击你 5 秒。 ⚠️ 依赖要求 · Paper 1.21 或更高版本(Spigot 可能不完全兼容)。 · Vault(可选,经济功能需要)。 · Java 21 或更高。 📦 依赖插件 · Vault(可选) 🐛 已知问题 · NPC 使用僵尸模型(为了行走动画),但僵尸声音已被禁用。 · 睡觉的 NPC 会站立不动并显示“💤”标签 – 受 Minecraft 限制,无法真正躺下。 · 工具耐久会消耗,但附魔(如耐久)暂未支持。 📜 许可证 MIT 许可证 – 可自由修改并在你的项目中使用。