

在 Minecraft 中添加 NPC,以创造更加生动且沉浸式的交互体验。引入行为与反应:扩展动画、情境决策以及对世界事件的响应。


功能特性
动态行为
- 日常作息 - NPC 遵循简单的日程安排(工作、休闲、睡眠),并根据一天中的时间和天气变化调整活动。
- 情境反应 - NPC 会对伤害、火焰、爆炸以及环境变化(水、岩浆、玩家接近)做出自然反应。
增强的移动与寻路
- 自然移动 - NPC 以更平滑的动作和多样的节奏避开障碍物,而非突然转向。
- 方块交互 - NPC 能够无缝使用门、攀爬楼梯,并在明显危险前停下。
社交互动
- 对话与问候 - 体验 NPC 之间以及 NPC 与玩家之间的简短对话或手势。
- 群体行动 - NPC 可以组成群体或执行集体例行活动(例如在市场聚集或团队协作)。
自定义与 API
- 游戏内设置 - 可在游戏内直接切换功能、控制攻击性、行为密度和检测范围。
- 模组开发 API - 包含一个受限的 API,允许其他模组添加新的自定义行为或条件。
依赖项:
- Fabric Loader 1.21.10(必需)
- Fabric API(必需)
- Mod Menu(可选,用于快速访问游戏内配置)
- Cloth Config(可选,用于详细配置界面)
服务端与客户端 - 需要在服务器端(用于 AI、例行活动和寻路)和客户端(用于配置界面和动画)均进行安装。


Add NPCs in Minecraft to create more alive and immersive encounters. Introduce behaviors and reactions: expanded animations, contextual decisions, and responses to world events.


Features
Dynamic Behaviors
- Daily Routines - NPCs follow simple schedules (work, leisure, sleep) and change their activities based on the time of day and weather.
- Contextual Reactions - NPCs react naturally to damage, fire, explosions, and environmental changes (water, lava, player proximity).
Enhanced Movement & Pathfinding
- Natural Movement - NPCs avoid obstacles with smoother movements and varied pacing instead of sudden turns.
- Block Interaction - NPCs seamlessly use doors, climb stairs, and stop in front of obvious dangers.
Social Interactions
- Conversations & Greetings - Experience small dialogues or gestures between NPCs and with the player.
- Grouping - NPCs can form groups or follow collective routines (such as gathering at markets or teamwork).
Customization & API
- In-Game Settings - Toggle features, control aggressiveness, behavior density, and detection ranges directly in-game.
- Modding API - Includes a limited API allowing other mods to add new custom behaviors or conditions.
Dependencies:
- Fabric Loader 1.21.10 (required)
- Fabric API (required)
- Mod Menu (optional, for quick in-game config access)
- Cloth Config (optional, for detailed config screens)
Server-Side & Client-Side - Requires installation on both the server (for the AI, routines, and pathfinding) and the client (for the configuration screens and animations).
下载 Companion Trials
下载 Companion Trials
下载 Companion Trials
下载 Companion Trials
下载 Companion Trials
下载 Companion Trials
下载 Companion Trials
[0.8.0]
新增 / 更改 / 修复
-
将持久化的
Free Roam(自由漫游)改为使用与自然生成的 NPC 相同的背景行为系统。 -
将 NPC 名称标签的可见性移至仅客户端的全局设置,按玩家区分,可通过 Mod Menu 和新的配置按键访问。
-
从交互菜单中移除了服务器端的 NPC 名称标签切换功能,以避免一名玩家的更改影响所有玩家的可见性。
-
修复了
npc-dynamics:open_menupayload 注册问题,使 NPC 菜单数据包能够正确编码。 -
添加了安全回退消息,避免向未安装该模组的客户端发送 GUI 数据包。
-
添加了 Mod Menu 客户端设置,允许本地隐藏 NPC 名称标签,或始终显示 / 仅在附近时显示。
-
添加了仅客户端的名称标签渲染覆盖,确保偏好设置仅影响本地玩家。
-
通过从通用物品初始化中移除对仅客户端屏幕的引用,修复了专用服务器的启动问题。
-
自定义 NPC 生成 UI 保留在客户端,同时为玩家保留了相同的游戏内行为。
-
NPC 现在可以正确使用床。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧