本模组通过运用多种不同类型的伤害上限,防止怪物承受过量伤害,从而保持游戏平衡。无论玩家变得多么强大,游戏的平衡性都将得以维持。
作为开发者,您的反馈对我帮助极大! 如果您有问题、需要帮助,或想进一步了解我的模组,欢迎加入我的 Discord 服务器,一旦我有空,我会为您提供详细的解答:
本模组提供以下不同类型的伤害上限:
固定上限怪物 (Flat Capped Mobs): 列在此处的怪物每次受到的伤害不会超过 固定伤害上限 (Flat Damage Limit) 中定义的数值。
百分比上限怪物 (Percent Capped Mobs): 列在此处的怪物每次受到的伤害不会超过其总生命值在 最大生命百分比 (Max Health Percentage) 中定义的百分比。
最小命中次数怪物 (Min Hit Mobs): 列在此处的怪物必须被击中 所需最小命中次数 (Min Hits Required) 中定义的次数后才能死亡。当上限激活时,每次攻击造成的伤害不超过该怪物当前生命值的 50%(参见 全局最小命中模式 (Global Min Hits Mode) 以更改此行为)。
总命中固定伤害怪物 (Total Hit Mobs Flat): 列在此处的怪物在 所需总命中次数 (Total Hits Flat Required) 中定义的次数内,每次受到的伤害不会超过 总命中固定伤害上限 (Total Hits Flat Damage Limit) 中定义的数值。
总命中百分比怪物 (Total Hit Mobs Percentage): 列在此处的怪物在 所需总命中次数 (Total Hits Percentage Required) 中定义的次数内,每次受到的伤害不会超过其生命值在 总命中百分比上限 (Total Hits Percentage Limit) 中定义的百分比。
上限指示器 (Cap Indicator): 每当触发上述任何一种伤害上限时,实体头部旁边会出现一个上限指示器纹理(默认显示在右侧,可通过 UI 设置调整其位置)。
适应性 (Adaptation): 这种伤害上限机制会使怪物随着每次受击而针对特定的伤害类型和物品产生适应。您可以配置每次受击的 适应速度 (adaptation speed)、最大伤害减免 (maximum damage reduction)(范围从 1% 到 100%)以及 适应持续时间 (duration)。这通过防止玩家依赖单一策略来鼓励武器多样性。玩家会通过特定的 视觉粒子效果 (visual particles) 和 声音提示 (sound cues) 收到适应通知。
1. 适应积累:烟雾粒子会向实体飘去,并播放金属音效,随着适应达到最大值,音调会逐渐升高。
2. 适应满值:大量烟雾粒子会从实体冒出,并播放较沉重的金属音效。
3. 适应重置:营火粒子会从实体冒出,并播放熄灭音效。
适应上限指示器: 问号盾牌 (Question mark shield): 当实体处于适应状态,但玩家手中未持有该怪物所适应的物品时出现。感叹号盾牌 (Exclamation mark shield): 当玩家持有怪物正在适应的物品时出现。适应程度越高,纹理越偏红色。如果玩家在怪物适应度达到 100% 时攻击它,将会播放震动动画。
实用设置 (Utility Settings):
仅限玩家攻击 (Global Player Attacks Only): 如果启用(默认),伤害上限仅在攻击者为玩家时生效。非玩家发起的攻击(如骷髅或狼)将绕过所有限制,除非在高级设置中使用 playeronly=false 覆盖了特定规则。
计入的最小伤害 (Minimum Damage To Count): 必须达到的最小伤害值,才能开始计算最小命中和总命中功能的倒计时(以防止玩家仅通过投掷雪球“x”次来利用这些功能)。
阈值怪物 (Threshold Mobs): 列在此处的怪物在其生命值低于 健康阈值百分比 (Health Threshold Percentage) 中定义的阈值时,才会激活其伤害上限。
豁免物品 (Bypass Items): 列在此处的物品完全忽略所有伤害上限。
豁免伤害类型 (Bypass Damage Types): 列在此处的伤害类型完全忽略所有伤害上限。
视觉 UI 设置 (Visual UI Settings): 您可以使用 启用视觉 UI (Enable Visual UI) 启用或禁用所有盾牌指示器,还可以更改盾牌的 缩放比例 (scale) 以及它们在怪物头部上方的 水平/垂直偏移量 (horizontal/vertical offset)。
高级设置 (Advanced Settings):
自定义怪物设置 (Custom Mob Settings)
列在此处的怪物可以拥有自己特定的设置。
格式(组合顺序无关紧要,您无需写出并指定所有内容,只需填写您需要的部分即可):
minecraft:zombie;flat=10;percent=0.1;bonusflat=5;bonuspercent=0.05;totalflat=10;totalpercent=0.1;hits=5;minhits=3;mode=FATAL;adapt=0.8;speed=0.1-0.2;reset=100;threshold=0.5;trigger=20;playeronly=false;bypass=ONLY,minecraft:magic;question_mark=true;exclamation_mark=true
有关高级设置配置格式的更详细解释,请参见 此处。
示例:
僵尸每次受到的伤害不超过 5 点:
minecraft:zombie;flat=5
僵尸受到的伤害不超过其总生命值的 10%:
minecraft:zombie;percent=0.1
僵尸在 5 次命中内受到的伤害不超过 5 点:
minecraft:zombie;totalflat=5;hits=5
僵尸在 5 次命中内受到的伤害不超过其总生命值的 10%:
minecraft:zombie;totalpercent=0.1;hits=5
僵尸在被击中 5 次之前不会死亡。当上限激活时,它受到的伤害不超过其当前生命值的 50%:
minecraft:zombie;minhits=5
与上一个相同,但仅在僵尸受到致命一击时才激活:
minecraft:zombie;minhits=5;mode=FATAL
每次受到伤害时,僵尸会对造成伤害的物品或伤害类型积累 5% 的伤害抗性,最高可达 50%,持续 10 秒:
minecraft:zombie;adapt=0.50;speed=0.05;reset=200
每次受到伤害时,僵尸会对造成伤害的物品或伤害类型积累 5% 到 10% 之间的随机伤害抗性,最高可达 100%,永久有效:
minecraft:zombie;adapt=1;speed=0.05-0.1;reset=0
当僵尸的生命值低于 50% 时,它每次受到的伤害不会超过 5:
minecraft:zombie;flat=5;threshold=0.50
僵尸每次受到的伤害不会超过 5,但仅针对那些原本会造成 20 点或更多伤害的攻击(较弱的攻击仍按正常伤害计算):
minecraft:zombie;flat=5;trigger=20
僵尸除了武器本身的正常伤害外,额外获得的伤害上限为 5(这对于抑制其他模组或效果添加的额外伤害非常有用):
minecraft:zombie;bonusflat=5
即使僵尸受到非玩家实体(如其他生物)的攻击,其 5 点的固定伤害上限仍然生效;此设置可覆盖全局的“仅限玩家攻击”(Global Player Attacks Only)true 或 false 设置:
minecraft:zombie;flat=5;playeronly=false
只有钻石剑能对僵尸造成超过 5 点伤害的单次攻击:
minecraft:zombie;flat=5;bypass=minecraft:diamond_sword
只有钻石剑和下界合金剑能对僵尸造成超过 5 点伤害的单次攻击:
minecraft:zombie;flat=5;bypass=minecraft:diamond_sword,minecraft:netherite_sword
只有魔法伤害类型能对僵尸造成超过 5 点伤害的单次攻击:
minecraft:zombie;flat=5;bypass=minecraft:magic
除钻石剑外,所有武器都能对僵尸造成超过 5 点伤害的单次攻击:
minecraft:zombie;flat=5;bypass=ONLY,minecraft:diamond_sword
标签化生物设置 (Tag Mob Settings)
拥有特定 注册表标识 或 NBT 标签 的生物可以拥有各自特定的设置。这适用于自定义生物生成场景。
拥有 my_custom_tag NBT 标签的生物每次受到的伤害不会超过 5:
my_custom_tag;flat=5
拥有 #forge:bosses 注册表标签的生物每次受到的伤害不会超过 5:
#forge:bosses;flat=5
物品化生物设置 (Item Mob Settings)
此处列出的物品可以对特定生物、特定生物的注册表标识或 NBT 标签拥有特定的伤害上限。左侧也可以是 伤害类型 或物品的 注册表/NBT 标签,而不仅仅是具体物品。
钻石剑对僵尸造成的单次伤害不会超过 5:
minecraft:diamond_sword|minecraft:zombie;flat=5
钻石剑对拥有 my_custom_tag NBT 标签的生物造成的单次伤害不会超过 5:
minecraft:diamond_sword|my_custom_tag;flat=5
任何带有 #minecraft:swords 标签的物品对僵尸造成的单次伤害不会超过 5:
#minecraft:swords|minecraft:zombie;flat=5
魔法伤害类型对僵尸造成的单次伤害不会超过 5:
minecraft:magic|minecraft:zombie;flat=5
攻击者生物设置 (Attacker Mob Settings)
此处列出的攻击者实体可以对特定生物、特定生物的注册表标识或 NBT 标签拥有各自特定的设置。这对于控制一个生物能对另一个生物造成多少伤害非常有用。
骷髅对僵尸造成的单次伤害不会超过 5:
minecraft:skeleton|minecraft:zombie;flat=5
僵尸会对来自铁傀儡的任何伤害积累适应性:
minecraft:iron_golem|minecraft:zombie;adapt=0.8;speed=0.05;reset=200
This mod preserves game balance by preventing mobs from taking excessive damage through the use of various different types of damage caps. No matter how strong the player becomes, the game's balance will be preserved.
As a developer, YOUR FEEDBACK HELPS ME A LOT! If you have questions, need help, or want clarification about my mod, you are welcome to join my Discord and i'll give you a detailed explanation as soon as i'm able to:
Here are the different types of damage caps this mod offers:
Flat Capped Mobs: Mobs listed here won't take more damage than the value defined in Flat Damage Limit per hit.
Percent Capped Mobs: Mobs listed here won't take more damage than the % of their total health defined in Max Health Percentage.
Min Hit Mobs: Mobs listed here will need to be hit the number of times defined in Min Hits Required before they can die. While the cap is active, each hit won't deal more than 50% of the mob's current health (see Global Min Hits Mode to change this behavior).
Total Hit Mobs Flat: Mobs listed here won't take more damage than the value defined in Total Hits Flat Damage Limit the number of times defined in Total Hits Flat Required.
Total Hit Mobs Percentage: Mobs listed here won't take more damage than the % of their health defined in Total Hits Percentage Limit the number of times defined in Total Hits Percentage Required.
Cap Indicator: Whenever any of the damage caps above is hit, a cap indicator texture will show up next to the entity's head (it appears to the right by default, and its position can be moved with the UI settings).
Adaptation: This damage cap causes mobs to adapt to specific damage types and items with each hit. You can configure the adaptation speed per hit, the maximum damage reduction (from 1% to 100%), and the duration of the adaptation. This encourages weapon variety by preventing players from relying on a single strategy. Players are notified of the adaptation via specific visual particles and sound cues.
1. Adaptation buildup: smoke particles will come towards the entity and a metallic sound will play, whose pitch gets higher as the adaptation reaches its maximum.
2. Adaptation max: large smoke particles will come from the entity and a heavier metallic sound will play.
3. Adaptation reset: campfire particles will come from the entity and an extinguishing sound will play.
Adaptation cap indicators: Question mark shield: shows up when an entity has an adaptation active, but the player is not holding the item the entity is adapted to. Exclamation mark shield: shows up when the player is holding an item that the entity is adapting to. The higher the adaptation, the more red-ish the texture gets. If the player hits the entity when it has reached its 100% in adaptation, it'll play a shake animation.
Utility Settings:
Global Player Attacks Only: If enabled (default), damage caps will ONLY apply when the attacker is a player. Non-player attacks (like skeletons or wolves) will bypass all caps unless a specific rule overrides this with playeronly=false in the advanced settings.
Minimum Damage To Count: The minimum damage that has to be dealt for the minimum and total hits features to start their countdown (to avoid these features from being cheesed by simply throwing snowballs "x" number of times).
Threshold Mobs: Mobs listed here will activate their damage caps once they've fallen below the threshold of their hp defined in Health Threshold Percentage.
Bypass Items: Items listed here completely ignore all damage caps.
Bypass Damage Types: Damage Types listed here completely ignore all damage caps.
Visual UI Settings: You can enable or disable all the shield indicators with Enable Visual UI, and you can also change the scale of the shields and their horizontal/vertical offset above the mob's head.
Advanced Settings:
Custom Mob Settings
Mobs listed here can have their own specific settings.
Format (combination order does not matter, you don't need to write and specify everything, just what you need):
minecraft:zombie;flat=10;percent=0.1;bonusflat=5;bonuspercent=0.05;totalflat=10;totalpercent=0.1;hits=5;minhits=3;mode=FATAL;adapt=0.8;speed=0.1-0.2;reset=100;threshold=0.5;trigger=20;playeronly=false;bypass=ONLY,minecraft:magic;question_mark=true;exclamation_mark=true
More detailed explanation on the Advanced Settings Configuration format can be found here.
Examples:
The zombie won't take more than 5 damage per hit:
minecraft:zombie;flat=5
The zombie won't take more damage than 10% of its total hp:
minecraft:zombie;percent=0.1
The zombie won't take more than 5 damage 5 times:
minecraft:zombie;totalflat=5;hits=5
The zombie won't take more damage than 10% of its total hp 5 times:
minecraft:zombie;totalpercent=0.1;hits=5
The zombie will need to be hit 5 times before it can die. While the cap is active it won't take more damage than 50% of its current hp:
minecraft:zombie;minhits=5
Same as the previous one, but it only gets active when the zombie has received a fatal blow:
minecraft:zombie;minhits=5;mode=FATAL
With each hit it receives, the zombie will build up a 5% damage resistance against whatever item or damage type that's hurting it, up to a maximum of 50% for 10 seconds:
minecraft:zombie;adapt=0.50;speed=0.05;reset=200
With each hit it receives, the zombie will build up a random % of damage resistance between 5 and 10, against whatever item or damage type that's hurting it, up to a maximum of 100% permanently:
minecraft:zombie;adapt=1;speed=0.05-0.1;reset=0
After the zombie has fallen below 50% of its hp, it won't receive more than 5 damage per hit:
minecraft:zombie;flat=5;threshold=0.50
The zombie won't take more than 5 damage per hit, but only from hits that would deal 20 or more damage (weaker hits are dealt normally):
minecraft:zombie;flat=5;trigger=20
The zombie won't take more than 5 points of bonus damage on top of the weapon's normal damage (useful for reining in extra damage added by other mods or effects):
minecraft:zombie;bonusflat=5
The zombie's flat cap of 5 will apply even when it's hit by non-players (like other mobs), can override the Global Player Attacks Only true or false setting:
minecraft:zombie;flat=5;playeronly=false
Only the diamond sword can deal more than 5 damage per hit to the zombie:
minecraft:zombie;flat=5;bypass=minecraft:diamond_sword
Only the diamond and netherite sword can deal more than 5 damage per hit to the zombie:
minecraft:zombie;flat=5;bypass=minecraft:diamond_sword,minecraft:netherite_sword
Only the magic damage type can deal more than 5 damage per hit to the zombie:
minecraft:zombie;flat=5;bypass=minecraft:magic
Everything except the diamond sword can deal more than 5 damage per hit to the zombie:
minecraft:zombie;flat=5;bypass=ONLY,minecraft:diamond_sword
Tag Mob Settings
Mobs that have a specific registry or nbt tags can have their own specific settings. Useful for custom mob spawns.
Mobs with the my_custom_tag NBT tag won't receive more than 5 damage per hit:
my_custom_tag;flat=5
Mobs with the #forge:bosses registry tag won't receive more than 5 damage per hit:
#forge:bosses;flat=5
Item Mob Settings
Items listed here can have specific damage caps against specific mobs or specific mob registry and NBT tags. The left side can also be a damage type or an item registry/nbt tag, not just an item.
The diamond sword won't deal more than 5 damage per hit to the zombie:
minecraft:diamond_sword|minecraft:zombie;flat=5
The diamond sword won't deal more than 5 damage per hit to mobs with the my_custom_tag NBT tag:
minecraft:diamond_sword|my_custom_tag;flat=5
Any item with the #minecraft:swords tag won't deal more than 5 damage per hit to the zombie:
#minecraft:swords|minecraft:zombie;flat=5
The magic damage type won't deal more than 5 damage per hit to the zombie:
minecraft:magic|minecraft:zombie;flat=5
Attacker Mob Settings
Attacker entities listed here can have their own specific settings against specific mobs or specific mob registry and NBT tags. Useful for controlling how much damage one mob can deal to another.
The skeleton won't deal more than 5 damage per hit to the zombie:
minecraft:skeleton|minecraft:zombie;flat=5
The zombie will build up adaptation against any damage coming from the iron golem:
minecraft:iron_golem|minecraft:zombie;adapt=0.8;speed=0.05;reset=200
评论 0
登录后参与评分
还没有评论,来抢沙发吧