BetterMob
使用 YAML 定义自定义怪物,支持 3D 模型、技能与 Boss 战。
一款轻量级的多平台怪物引擎,适用于 Paper、Folia 和 Fabric(单人游戏与专用服务器),并支持 BetterModel。
功能特性 · 快速开始 · MythicMobs · 开发者 · 插件扩展 · Wiki
[!WARNING] Fabric 测试版 / 抢先体验通知
Fabric 的支持目前处于积极开发阶段。我们建议在生产环境部署之前,主要在 单人游戏 或 测试/开发服务器 上使用 Fabric 版本的模组。
? 目标与里程碑
✨ 功能特性
| ? YAML 怪物定义 | 以任意原版生物为基底,配置生命值、伤害、AI 目标及选项。支持每个文件一个怪物或多个怪物。 |
| ? 3D 模型 | 挂载 BetterModel 或 ModelEngine 模型,包括支持真实 WASD 控制的骑乘座位。 |
| ⚡ 技能引擎 | 触发器、机制、条件与目标选择器,每行均支持 delay(延迟)、cd(冷却)和内联 ?condition(条件)。支持变量、技能参数和内联技能。 |
| ? Boss 战 | 生命值阶段、Boss 血条、巡逻与守卫行为、呼救机制的群体、领导者与跟随者、仇恨表。 |
| ? 物品与掉落 | 自定义物品,支持右键、挥舞和拾取技能,掉落表、原版掉落表、刷怪蛋、击杀计数器和排行榜。 |
| ?️ 世界生成 | 自然生成规则、刷怪笼、WorldGuard 区域及生成标志位。 |
| ? 内容包 | 将内容包放入 packs/ 目录,通过 /bettermob validate 进行验证,并用一行命令即可切换启用/禁用。 |
| ? 工具集 | /bettermob test、仇恨线、实时重载报告、技能性能分析、编辑器的 JSON 模式。 |
| ? 开发者 API | 自定义机制、条件、目标选择器、占位符以及大量事件接口。 |
BetterMob 在 Folia 和 Paper 上作为插件运行,在 Fabric 1.21+ 上作为模组运行(同时支持客户端单人和专用服务器环境)。
? 平台功能矩阵
| 功能 | Paper / Folia | Fabric |
|---|---|---|
| YAML 怪物定义 | ✅ plugins/BetterMob/mobs/*.yml |
✅ config/bettermob/mobs/*.yml |
| 3D 模型 | ✅ BetterModel & ModelEngine | ✅ BetterModel-Fabric |
| 技能引擎 (触发器、条件、目标选择器) | ✅ 完整支持 | ✅ 核心功能 (@self, @caster, @target, @trigger, @eir, @pir, @p) |
核心机制 (model, damage, heal, msg, sound, velocity, potion, ignite, lightning) |
✅ 完整支持 | ✅ 完整支持 |
| Boss 战与生命值阶段 | ✅ 完整支持 | ✅ 完整支持 |
| 自定义掉落与经验 | ✅ 完整支持 | ✅ 完整支持 |
| 刷怪笼 | ✅ plugins/BetterMob/spawners.yml |
✅ config/bettermob/spawners.yml |
命令 (/bettermob spawn, /bettermob reload) |
✅ 完整支持 | ✅ 完整支持 |
| WorldGuard / PlaceholderAPI | ✅ 支持 | ❌ 仅限 Bukkit 环境 |
? 快速开始
- 将
BetterMob.jar放入plugins/文件夹(BetterModel 或 ModelEngine 为可选),然后启动服务器。 - 创建
plugins/BetterMob/mobs/wumpus.yml:
Type: PIG
Display: '&9Wumpus'
Health: 12
AIGoalSelectors:
- clear
- randomstroll
Options:
MovementSpeed: 0.25
Invincible: true
Skills:
- model{mid=wumpus} @self ~onSpawn
- model{mid=wumpus} @self ~onLoad
- sound{s=entity.pig.hurt;p=1.5} @self ~onDamaged
- skill{s=wumpus_wave} ~onInteract
- 运行
/bettermob reload,然后运行/bettermob spawn wumpus。
Wiki 详细介绍了 安装、生物 (Mobs)、技能 (Skills) 和 整合包 (Packs)。
? MythicMobs 兼容性
BetterMob 并非完整的 MythicMobs 替代品。它实现了基于模型的整合包所依赖的部分功能:自定义生物注册、触发器、YAML 整合包以及类 MythicMobs 的技能系统。如果你熟悉该文件格式,那么你也已经掌握了它的用法。在使用前请检查一个整合包:
/bettermob validate <pack>
它会列出 BetterMob 无法识别的每一行内容。整合包兼容性 页面解释了哪些功能受支持,哪些不支持。
野生刷怪
在生物文件(包括 packs/<pack>/Mobs/ 目录下的生物)中添加 Spawn 块。
REPLACE 是默认选项,会将该生物原版 Type 的自然生成替换为自定义生成。
ADD 会在生存模式或冒险模式下,每隔 20 秒在玩家周围尝试独立的陆地刷怪。它仅使用已加载的区块,距离玩家 24–48 格。
# 在 nm_raccoon.yml 中,位于 Type: PIG 下方
Spawn:
Action: ADD
Worlds: [world]
Biomes: [TAIGA, OLD_GROWTH_PINE_TAIGA]
Time: ANY
Chance: 0.05
Cooldown: 60
MaxNearby: 3
Chance 是每次尝试的概率(0 到 1),而不是每天生成的生物数量。Cooldown 是成功生成后,每个玩家和每种生物的冷却时间(秒);MaxNearby 限制刷怪点 48 格内该生物的最大数量。Worlds 必须使用服务器的确切世界名称。修改文件后请使用 /bettermob reload 重载。
要诊断 ADD 尝试,请使用 /bettermob debug chat。即使全局 Debug 关闭时这也有效,并会立即列出活动的 ADD 规则。拥有 bettermob.debug 权限的玩家可以在聊天中看到自己的尝试结果,包括位置和被跳过刷怪的原因。/bettermob debug info 也会启用全局调试日志。使用 /bettermob debug filter nm_raccoon 可将输出限制为单一生物。
? 开发者指南
BetterMob 通过 BetterMobAPI 注册服务,提供自定义机制、条件、目标定位器和占位符,并为生成、伤害、目标、阶段、掉落、技能、机制、生成器和重载触发事件。请参阅 开发者 API 和 API 事件,或者从 examples/api-example 中的示例插件开始。发布版本和最新的 dev 状态(dev-SNAPSHOT)可在 JitPack 获取。
? 插件扩展
插件扩展是独立插件,它们基于开发者 API 构建,并且需要安装 BetterMob。
- BetterMobCrucible:为面向 MythicCrucible 风格插件制作的内容提供额外的物品触发器、物品数据和背景故事机制。最新版本。
制作了插件扩展?请提交 Issue 或 Pull Request 以便在此列出。
?️ 支持的环境
? 贡献
欢迎提交 Bug 报告、整合包兼容性报告和 Pull Request。请先阅读 CONTRIBUTING.md,并请遵守 行为准则。
? 使用 BetterMob 的服务器
? 许可证
MIT
BetterMob
Custom mobs in YAML, with 3D models, skills and boss fights.
A lightweight, multi-platform mob engine for Paper, Folia, and Fabric (singleplayer & dedicated server) with BetterModel support.
Features · Quick start · MythicMobs · Developers · Addons · Wiki
[!WARNING] Fabric Beta / Early Access Notice
Fabric support is currently in active development. We recommend using the Fabric mod primarily in Singleplayer or on testing/development servers before deploying it to a live production environment.
? Goals & Milestones
✨ Features
| ? Mobs in YAML | Any vanilla type as the body, with health, damage, AI goals and options. One mob per file or many per file. |
| ? 3D models | Attach BetterModel or ModelEngine models, including rideable seats with real WASD control. |
| ⚡ Skill engine | Triggers, mechanics, conditions and targeters with delay, cd and inline ?condition on every line. Variables, skill arguments, inline skills. |
| ? Boss fights | Health phases, boss bars, patrol and guard behaviour, groups that call for help, leaders and followers, threat tables. |
| ? Items and loot | Custom items with right-click, swing and pickup skills, drop tables, vanilla loot tables, spawn eggs, kill counters and top lists. |
| ?️ World | Natural spawn rules, spawners, WorldGuard regions and a spawn flag. |
| ? Packs | Drop a content pack into packs/, validate it with /bettermob validate and switch it off with one line. |
| ? Tools | /bettermob test, aggro lines, a live reload report, skill profiling, JSON schemas for editors. |
| ? Developer API | Custom mechanics, conditions, targeters, placeholders and a long list of events. |
BetterMob runs on Folia and Paper as a plugin, and on Fabric 1.21+ as a mod (supporting both client singleplayer and dedicated server environments).
? Platform Feature Matrix
| Feature | Paper / Folia | Fabric |
|---|---|---|
| YAML Mob Definitions | ✅ plugins/BetterMob/mobs/*.yml |
✅ config/bettermob/mobs/*.yml |
| 3D Models | ✅ BetterModel & ModelEngine | ✅ BetterModel-Fabric |
| Skill Engine (Triggers, Conditions, Targeters) | ✅ Full | ✅ Core (@self, @caster, @target, @trigger, @eir, @pir, @p) |
Core Mechanics (model, damage, heal, msg, sound, velocity, potion, ignite, lightning) |
✅ Full | ✅ Full |
| Boss Fights & Health Phases | ✅ Full | ✅ Full |
| Custom Drops & Experience | ✅ Full | ✅ Full |
| Spawners | ✅ plugins/BetterMob/spawners.yml |
✅ config/bettermob/spawners.yml |
Commands (/bettermob spawn, /bettermob reload) |
✅ Full | ✅ Full |
| WorldGuard / PlaceholderAPI | ✅ Supported | ❌ Bukkit-only |
? Quick start
- Put
BetterMob.jarintoplugins/(BetterModel or ModelEngine is optional) and start the server. - Create
plugins/BetterMob/mobs/wumpus.yml:
Type: PIG
Display: '&9Wumpus'
Health: 12
AIGoalSelectors:
- clear
- randomstroll
Options:
MovementSpeed: 0.25
Invincible: true
Skills:
- model{mid=wumpus} @self ~onSpawn
- model{mid=wumpus} @self ~onLoad
- sound{s=entity.pig.hurt;p=1.5} @self ~onDamaged
- skill{s=wumpus_wave} ~onInteract
- Run
/bettermob reload, then/bettermob spawn wumpus.
The wiki walks through installation, mobs, skills and packs.
? MythicMobs compatibility
BetterMob is not a full MythicMobs replacement. It implements the parts that model-based content packs rely on: custom mob registration, triggers, YAML packs and the MythicMobs-style skill system. If you know that file format, you already know this one. Check a pack before you use it:
/bettermob validate <pack>
It lists every line BetterMob does not understand. The pack compatibility page explains what is supported and what is not.
Wild spawns
Add a Spawn block to a mob file (including a mob inside packs/<pack>/Mobs/).
REPLACE is the default and converts natural spawns of the mob's vanilla Type.
ADD makes independent land spawn attempts every 20 seconds around players in
Survival or Adventure mode. It only uses already loaded chunks, at a distance
of 24–48 blocks from the player.
# In nm_raccoon.yml, below Type: PIG
Spawn:
Action: ADD
Worlds: [world]
Biomes: [TAIGA, OLD_GROWTH_PINE_TAIGA]
Time: ANY
Chance: 0.05
Cooldown: 60
MaxNearby: 3
Chance is a probability from 0 to 1 per attempt, not a number of mobs
per day. Cooldown is in seconds per player and mob after a successful spawn;
MaxNearby limits that mob to the given count within 48 blocks of the spawn
point. Worlds must use the server's exact world name. Reload with
/bettermob reload after changing the file.
To diagnose ADD attempts, use /bettermob debug chat. This also works when
global Debug is off and immediately lists the active ADD rules. Players
with the bettermob.debug permission see their own attempt results in chat,
including the location and reason a spawn was skipped. /bettermob debug info
also enables the global debug log. Use
/bettermob debug filter nm_raccoon to limit output to one mob.
? For developers
BetterMob registers a service with BetterMobAPI, custom mechanics, conditions, targeters and placeholders, and fires events for spawns, damage, targets, phases, drops, skills, mechanics, spawners and reloads. See the Developer API and the API events, or start from the example plugin in examples/api-example. Releases and the newest dev state (dev-SNAPSHOT) are on JitPack.
? Addons
Addons are separate plugins that build on the Developer API and need BetterMob installed.
- BetterMobCrucible: extra item triggers, item data and lore mechanics for content made for MythicCrucible-style plugins. Latest release.
Made an addon? Open an issue or a pull request to get it listed here.
?️ Supported environment
? Contributing
Bug reports, pack compatibility reports and pull requests are welcome. Start with CONTRIBUTING.md and please follow the Code of Conduct.
? Servers that use BetterMob
? License
MIT
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BetterMob
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
针对 26.X 支持的紧急修复
1.2.0 更新
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧