简易生物增益系统
自 1.2.0 版本起,该模组完全为服务器端模组
此模组赋予生物以一定概率生成时带有增益效果的能力,并使其根据强度掉落额外的奖励。
虽然其概念类似于 Champions 和 Eldritch Mobs 等模组,但在实现方式上存在显著差异。正如其名称所示,它在保持游戏平衡、可配置性和模组兼容性的同时,力求尽可能简单且与原版风格契合。这是通过完全利用游戏中已有的机制来实现的。
该模组开箱即用地提供了平衡的配置。所有的生成均基于游戏难度和当前的局部难度,生物获得的所有增益均为你从原版中熟知的状态效果,无需担心被过于强大的怪物虐杀或获得过于丰厚的战利品——你可以直接安装游玩,甚至无需查看或修改配置文件。
获得增益的生物会根据其拥有的增益发射粒子效果。这是在未使用其他模组的情况下判断生物是否获得增益的唯一方法。我推荐使用 Jade 来获取生物健康和增益信息,以及 Particle Effects 来为每种效果提供独特的粒子纹理。
模组配置非常详尽,允许你进行几乎任何你想要的操作。可以将任何效果应用于任何生物(无论是模组添加的还是原版的)。想要隐形的苦力怕?以光速移动的马匹?如山岳般巨大的北极熊?虽然我不推荐这样做,但确实可以用这个模组实现!
话虽如此,如果你想了解如何配置该模组及其工作原理,请继续阅读。
编辑配置
该模组使用 Fzzy Config 提供一个相对简单易用且界面统一的在游戏内配置界面。你还需要 Mod Menu 才能实际访问配置屏幕。每个选项都有描述,并提供有关如何操作的提示和说明。在输入状态效果、生物或物品的字段中,还提供建议和自动补全功能。
工作原理
增益是通过规则分配给生物的。每条规则列出其适用的生物(实体 ID 或实体标签)、可选的武器(生物生成时需携带),以及应用的增益组。增益组是一个命名的增益集合,每个增益都有一个最大等级,生物可以获得从 1 到最大等级的任意等级增益。如果生物生成时持有远程武器,还可以使用一个单独的增益组。出于平衡考虑,默认情况下通过刷怪笼生成的生物不会被赋予增益(你可以在配置中更改允许的生成来源)。
当生物被击杀时,会根据其“增益等级”掉落额外奖励。增益等级是根据生物的强度决定的——包括其拥有的增益数量及等级,以及其所穿戴的附魔装备的数量。僵尸类生物如果是首领,则会有更高的增益等级。
额外奖励如下:
- 基于增益等级高低而增加的额外经验球,每个经验球默认提供 3 点经验值。
- 如果增益等级超过了该生物最大可能增益等级的某个百分比(默认 66%),则会掉落一本附魔书,其品质取决于增益等级超过阈值的程度。
默认情况下,大多数生物根据其生成时所持武器类型,分别获得近战增益组或远程增益组的增益,而某些特定生物则拥有专属的增益组。所有增益组和规则均可在模组配置中进行修改。
任何状态效果、生物和物品都可以用于增益组和规则中,包括由其他模组添加的内容。
增益应用的工作方式如下:
- 当生物生成时,每条匹配该生物的规则首先确定是否尝试应用其增益。此几率针对每条规则单独设置,范围从局部难度 2 及以下时的最小几率(默认 10%)到最高可能局部难度(6.75)时的最大几率(默认 25%)。
- 如果此检查通过,规则会逐一尝试应用其增益组中的每个增益。每个增益被应用的几率也针对每条规则单独设置,范围从局部难度 2 及以下时的最小几率(默认 20%)到最高可能局部难度(6.75)时的最大几率(默认 75%)。
- 如果多个规则给予生物相同的增益,则保留最高等级。
- 每个增益的等级由以下公式决定:
difficultyMultiplier * randomNumber * maxLevel ^ 2,限制范围为 1 到maxLevel,其中difficultyMultiplier是基于当前局部难度的一个介于 0 到 1 之间的数值(局部难度 2 及以下时为 0,局部难度 4 及以上时为 1)randomNumber是一个随机生成的介于 0 到 1 之间的数值maxLevel是该增益的最大等级
局部难度范围和等级公式中的指数可以在配置文件中更改。
Simple Mob Buff System
As of 1.2.0 the mod is entirely server side
This mod gives a chance for mobs to spawn with buffs and makes them drop additional rewards based on how strong they are.
While similar in concept to mods like Champions and Eldritch Mobs, it differs significantly in execution. Just as the mod name implies, it tries to be as simple and vanilla-friendly as possible while maintaining game balance, configurability and mod compatibility. This is achieved by building the system entirely using mechanics which already exist in the game.
The mod comes with a balanced configuration out of the box. All spawns are based on the game difficulty and the current local difficulty, all the buffs the mobs receive are status effects you know from vanilla, and there's no need to worry about getting mauled by ridiculously overpowered mobs or getting showered with overly generous loot - you can install and play without ever touching or even looking at the configuration.
Buffed mobs will emit particle effects based on the buffs they have. This is the only way you can tell if a mob is buffed or not without other mods. I recommend Jade for getting information on mob health and the buffs it has and Particle Effects for unique particle textures for each effect.
The mod configuration is extensive and allows you to do pretty much whatever you want. Apply any effect to any mob, modded or vanilla. Want invisible creepers? Horses that move at the speed of light? Polar bears the size of a mountain? Not that I recommend any of those, but you sure can do it with this mod!
With that being said, if you want to know how to configure the mod and how it works, read on.
Editing the configuration
The mod uses Fzzy Config to provide a relatively simple to use and cohesive in-game configuration. You'll also need Mod Menu to actually access the configuration screen. Every option has a description and there are pointers and instructions on how to do stuff. There are also suggestions and auto-completion for fields where status effects, mobs or items are inputted.
How it works
Buffs are assigned to mobs through rules. Each rule lists the mobs it applies to (entity IDs or entity tags), an optional weapon the mob needs to spawn with, and the buff set it applies. A buff set is a named group of buffs, each with a max level, and the mob can get any level of a buff from 1 to max. A rule can also have a separate buff set which is used instead when the mob spawns with a ranged weapon. By default, mobs spawned via spawners are prevented from being buffed due to balance concerns (you can change which spawn sources are allowed in the config).
When a mob is killed, it drops additional rewards based on its "buff level". The buff level is determined based on how strong the mob is - the amount of buffs it has and their levels, and the amount of enchanted equipment it's wearing. Zombie-type mobs will have a higher buff level if they're leaders.
The additional rewards are the following:
- Additional XP orbs based on how high the buff level is, each orb granting 3 XP points by default.
- If the buff level surpasses a percentage of the maximum possible buff level for the mob (default 66%), an enchanted book with a random quality depending on how much the buff level surpassed the threshold.
By default, most mobs receive buffs from either the melee buff set or the ranged buff set depending on the type of weapon they spawn with, whereas certain mobs receive buffs from buff sets unique to them. All buff sets and rules can be modified in the mod configuration.
Any status effect, mob and item can be used in buff sets and rules, including ones added by other mods.
Buff application works the following way:
- When a mob spawns, each rule matching the mob first determines if it's going to try to apply its buffs in the first place. The chance for this is set per rule, and ranges from a minimum chance (default 10%) at local difficulty 2 and below to a maximum chance (default 25%) at the highest possible local difficulty (6.75).
- If this check passes, the rule tries to apply each buff from its buff set one by one. The chance for each buff to be applied is also set per rule, and ranges from a minimum chance (default 20%) at local difficulty 2 and below to a maximum chance (default 75%) at the highest possible local difficulty (6.75).
- If several rules give the mob the same buff, the highest level is kept.
- The level of each buff is determined by the following formula:
difficultyMultiplier * randomNumber * maxLevel ^ 2, limited from 1 tomaxLevel, wheredifficultyMultiplieris a number from 0 to 1 based on the current local difficulty (0 at local difficulty 2 and below, 1 at local difficulty 4 and above)randomNumberis a randomly generated number from 0 to 1maxLevelis the maximum level of the buff
The local difficulty ranges and the exponent in the level formula can be changed in the config.
下载 Simple Mob Buff System
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Mob Buff System
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Mob Buff System
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Mob Buff System
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 该模组现在完全为服务端运行,客户端不再需要安装:
- 击退抗性、击退增强、远视和体型增强不再是状态效果,而是作为永久属性修饰符应用。它们保留了原有的 ID,因此仍可在增益集中使用。
- 这些增益仍然会生成粒子效果,每种增益拥有独立的颜色,未安装该模组的玩家也能看到这些粒子。
- 在旧版本中以状态效果形式保存了这些增益的怪物,在加载时将丢失这些增益。
- 彻底重构了配置文件。旧配置不会被迁移,新默认值与之前的行为保持一致:
- 配置文件现在分为多个部分:生成、奖励、武器、增益集、规则、属性增强和杂项。
- 增益现被分组为命名的增益集,任何数量的规则都可以引用这些增益集。默认的近战和远程增益现变为普通的增益集。
- 当怪物持有远程武器时,规则现在可以使用单独的增益集,取代了基于武器的增益集类型。
- 生成概率和增益概率现在针对每条规则单独设置。每条匹配怪物的规则独立进行判定,并保留由多条规则掷骰出的最高增益等级。
- 规则现在可以针对实体标签,并且可以在规则列表中显示可选的名称。
- 新增了一项设置,用于选择哪些生成源可以获得增益,取代了原来的刷怪笼开关。
- 新增了维度黑名单/白名单功能。
- 新增了对单个怪物可获得的增益数量限制。
- 新增了对用于概率和等级缩放的本地难度范围以及等级公式指数的设置。
- 新增了对僵尸首领和附魔装备增益等级加成的设置,以及附魔装备是否计入附魔书阈值的要求。
- 新增了经验值和附魔书奖励的开关,以及附魔书的附魔标签和额外等级的设置。
- 新增了对每种属性增强的强度和粒子颜色的设置,以及其粒子效果的开关。
- 新增了对禁用原版蜘蛛效果和治愈僵尸首领的开关,以及效果云持续时间上限的设置。
- 新增了调试日志记录的开关。
- 增益的最大等级现在限制为 255。
- 修复了击杀没有增益的怪物时会删除应始终掉落的装备(如马铠、狼铠和鞍)的问题。
- 修复了通过结构生成的怪物(如堡垒遗迹猪灵)永远无法获得增益的问题。
- 修复了基础生命值较低的怪物(如洞穴蜘蛛和小史莱姆)在获得生命增强时以非满血状态刷新的问题。
- 修复了当武器列表或增益集中包含不存在的物品或效果时导致的崩溃。
- 修复了怪物的最大增益等级是在死亡时根据其装备和配置计算,而不是在生成时计算的问题。
- 修复了由多条规则给予的增益的最高等级随机选取的问题。
- 苦力怕产生的效果云不再仅给玩家施加永久效果,而是不再给任何实体施加永久效果。
- 僵尸首领的数据不再发送给客户端,也不再添加到每个僵尸身上。
- 修复了由于从多个线程更新物品建议而导致的罕见崩溃。
- 添加了 Fabric 26.3 版本。
- 添加了 NeoForge 26.2 版本。
- 更新了 1.21.1 版本。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
让你能够在世界中的任何位置定位结构。
模组
为你的终界增添新生物群系、神秘仪式和全新生物
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
更多生物群系,更多生物,更多工具,为炽热的维度
模组
一堆修复
评论 0
登录后参与评分
还没有评论,来抢沙发吧