Pacify Me 数据包
一款轻量级的 Minecraft 数据包,允许你使用命名的命名牌无害地禁用生物的 AI,其理念与 Silence Mobs 类似。
概览
- 将命名为
Pacify Me 的命名牌应用于任何活体生物以禁用其 AI。该生物将停止移动、寻路、攻击和使用能力。
- 通过将命名为
sock 的命名牌应用于同一生物来恢复其 AI —— 即 给多比一只袜子。
使用方法
- 制作或获取一个命名牌。
- 在铁砧中将其重命名为
Pacify Me。
- 右键点击生物以使用该命名牌使其平静。
- 若要撤销,请将另一个命名牌重命名为
sock 并应用于该已平静的生物。
行为细节
- 被平静的生物会保持其位置、姿势和旋转角度,直到 AI 被恢复。
- 自然属性保持不变。生命值、护甲、装备和效果得以保留。
- 在被平静期间,繁殖、攻击目标、漫游和拾取物品功能停止。
- 当贴上
sock 标签时,AI 会立即恢复。
兼容性
- 可与大多数数据包配合使用。它不添加新物品或配方,仅监听特定的命名牌。
- 适用于单人游戏和多玩家世界。
重要提示: 对于多人服务器,该数据包必须安装在服务器上 —— 如果仅放置在客户端则无法工作。
- 专为原版生物设计。某些模组生物可能未被覆盖,如果它们使用了自定义的 AI 标志。
安装方法
-
将压缩的数据包放入世界的 datapacks 文件夹中。
- 对于单人游戏:将其放置在你的存档文件夹内。
- 对于服务器:将其安装到服务器所使用的世界文件夹中。
-
加载世界,如有需要请运行 /reload。
-
要移除,请从 datapacks 中删除并执行 /reload。已被平静的生物将在移除时保持其当时的状态。
配置
- 名称默认不区分大小写:
Pacify Me 用于禁用,sock 用于恢复。
- 你可以通过编辑数据包函数内的匹配谓词或记分板检查来自定义触发词。
注意事项和限制
- Boss 和脚本化遭遇战在没有 AI 的情况下可能会表现异常。在冒险地图中请谨慎使用。
- 被平静的生物仍然会受到玩家、环境和其他不需要 AI 的来源造成的伤害。
- 拴绳、船和矿车仍然正常交互。
致谢
灵感来源于 Vanilla Tweaks 上由 Silence Mobs 数据包普及的交互模式。
作为为建造者、主播和创意地图制作者打造的干净、对服务器友好的实现而创建。
Pacify Me Datapack
A lightweight Minecraft datapack that lets you harmlessly disable a mob’s AI using named name tags, similar in spirit to Silence Mobs.
Overview
- Apply a name tag named
Pacify Me to any living mob to disable its AI. The mob will stop moving, pathfinding, targeting and using abilities.
- Restore the mob’s AI by applying a name tag named
sock to the same mob — as in, give dobby a sock.
How to use
- Craft or obtain a name tag.
- Rename it to
Pacify Me in an anvil.
- Right-click a mob with the renamed tag to pacify it.
- To undo, rename a name tag to
sock and apply it to that pacified mob.
Behaviour details
- Pacified mobs keep their position, pose and rotation until AI is restored.
- Natural attributes remain unchanged. Health, armour, equipment and effects are preserved.
- Breeding, targeting, wandering and item pickup stop while pacified.
- AI is restored instantly when tagged with
sock.
Compatibility
- Works alongside most datapacks. It does not add new items or recipes, only listens for specific name tags.
- Functions in both single-player and multiplayer worlds.
Important: For multiplayer servers, the datapack must be installed on the server — it will not work if only placed on a client.
- Intended for vanilla mobs. Some modded entities may not be covered if they use custom AI flags.
Installation
-
Drop the zipped datapack into the world’s datapacks folder.
- For single-player: place it inside your save folder.
- For servers: install it inside the world folder that the server uses.
-
Load the world, then run /reload if needed.
-
To remove, delete it from datapacks and /reload. Already pacified mobs will remain as they were at removal time.
Configuration
- Names are case-insensitive by default:
Pacify Me to disable, sock to restore.
- You can customise trigger words by editing the matching predicates or scoreboard checks inside the datapack functions.
Notes and limitations
- Bosses and scripted encounters may behave oddly without AI. Use with care in adventure maps.
- Pacified mobs can still take damage from players, the environment and other sources that do not require AI.
- Leashes, boats and minecarts still interact normally.
Credits
Inspired by the interaction pattern popularised by Silence Mobs datapack on Vanilla Tweaks.
Created as a clean, server-friendly implementation for builders, streamers and creative mapmakers.
评论 0
登录后参与评分
还没有评论,来抢沙发吧