Villainous Horde Manager 是一个用于创建持续波次事件的工具
简要说明
本模组的代码基于 Cold Snap Horde 及其波次系统,该系统会在服务器上尝试维持一定数量的敌人存活,直到击杀足够数量以结束事件。然而,当我编写 Cold Snap Horde 的波次系统代码时,发现其复用性并不好。此 API 是我对此做出的改进,能够生成原版(或模组)生物,并将它们像雪人在波次事件中那样驱赶向目标玩家。
现在你可以通过 JSON 魔法制作自己的波次 请参阅 GitHub 页面了解具体操作方法。官方推荐的做法就是参考该页面并在此基础上进行扩展。
如果你是模组开发者,并且希望对自定义波次拥有更多控制权 同样请参阅 GitHub 页面。每个模块都提供了如何在给定平台(对于此情况,Quilt 与 Fabric 相同)上实例化波次并确保其正常运行的示例。
感兴趣?这里有更多详情!
如果你还在阅读,你可能是一位对研究此事件代码感兴趣的开发者。这非常棒!我很乐意接受我认为有帮助的贡献,并在合理范围内协助你设置波次功能。
关于波次需求的额外细节:
- 添加到波次的实体必须继承自
PathfinderMob类。 - 较大的实体更难生成,因为系统会尝试避免生物窒息的情况。请尽量减少大型生物的数量/降低它们的生成权重。
- API 会扫描潜在生成点周围的环境中的任何固体方块。扫描范围取决于生物的大小,这意味着大型生物会对服务器资源造成更大的开销。
- 系统尝试在与玩家相对较近的 Y 轴高度生成生物(优先选择位于玩家上方的位置而非下方)。
- 如果系统无法找到附近的合适 Y 轴高度,它将退而求其次,使用它能找到的任意 Y 轴高度。
服务器托管
我与 BisectHosting 达成了合作! 如果你需要优质的服务器,请点击下方的图片并使用代码 "cartoonish" 在你的首月账单中获得 25% 的折扣!
Villainous Horde Manager is a tool for creating Continuous Horde events
The Shorthand Explanation
The code for this mod is based off of Cold Snap Horde and its horde system, where the server will try to keep a consistent number of enemies alive until enough have been killed to end the event. When I wrote the code for Cold Snap Horde's version though, it wasn't very... reusable. This api is my attempt at fixing that, capable of spawning vanilla (or modded) mobs and sending them towards the target player like the snowmen do during the horde event.
You can now make your own hordes via JSON magic See the github page for more information on how to do this. It and extending off of it is frankly the recommended path.
If you are a mod developer and you want more control over a custom horde Also see the github page. Each module has an example of how to instantiate hordes and get them to function correctly for a given platform (quilt being the same as fabric, for this case)
Interested? Here's some more!
If you're still reading this, you're probably a developer interested in looking into the code for this event. Which is very neat! I'll happily accept contributions that I see as helpful additions, and help out within reason to get you set up with hordes.
Extra details about horde requirements:
- Entities added to the horde must extend the PathfinderMob class.
- Bigger entities are harder to spawn due to the system attempting to avoid situations where mobs would suffocate. Try to keep larger mobs to a minimum/to low spawn weights.
- The api will scan the environment around a potential spawnpoint for any solid blocks. The size of the scan depends on the size of the mob, meaning larger mobs will be more expensive on server resources.
- The system tries to spawn mobs at a relatively close Y level to the player (preferring locations above the player over below).
- If the system can not find a nearby Y level, it'll settle for any Y level it can find.
Server Hosting
I've partnered with BisectHosting! If you need a quality server, click the picture below and use code "cartoonish" for 25% off your first month!
下载 Villainous Horde Manager
下载 Villainous Horde Manager
下载 Villainous Horde Manager
下载 Villainous Horde Manager
下载 Villainous Horde Manager
下载 Villainous Horde Manager
- 在波次数据中添加了
minimumSpawnRange(最小生成范围)和maximumSpawnRange(最大生成范围)字段- 如果缺少这些字段,它们将默认为原始值 21 和 35
- 除非你有特殊需求,否则建议使用这些数值,因为它们可以降低寻路问题发生的几率,同时减少因渲染/模拟距离过低而导致问题的风险。
- 通过命令启动 JSON 尸潮时,新增了“auto”(自动)选项
- 选择周围玩家数量最多的玩家作为尸潮的锚点
- 如果在执行命令时,最高数量的玩家与其他玩家并列,系统将在这些候选者中随机选择一个。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧