简易生物增益系统
自 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 to maxLevel, where
difficultyMultiplier is 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)
randomNumber is a randomly generated number from 0 to 1
maxLevel is the maximum level of the buff
The local difficulty ranges and the exponent in the level formula can be changed in the config.
评论 0
登录后参与评分
还没有评论,来抢沙发吧