这是模组 NaNy 的一个分支(Fork)。
该分支已针对最新版本的 Forge 进行了更新,并提升了与整合包 MC Eternal 2 的兼容性,包括在特定情况下应用的伤害回退机制,但模组主体基本保持一致。许可证相同,且由于改动极小,所有功劳均归于原作者 qther。
此外,此模组有助于解决当前困扰现代 Minecraft 的最令人头疼的问题之一:实体造成或受到 NaN(非数字)伤害。
理想情况下,应在每个实例中定位此问题的原始根源,而非采用这种修补方案,但这耗时较多,留待日后处理。
请勿就本分支的问题或投诉联系原作者,请联系我。
NaNny
因为有些模组无法控制它们的浮点数。
NaNny 是一款用于 Minecraft Neo/Forge 的模组,用于清理那些将实体的生命值和/或吸收值设置为 NaN 的模组所造成的问题。
通过挂钩以下事件并取消相关操作,可选择性地治疗受影响的实体来实现这一目标:
- LivingAttackEvent(生物攻击事件)
- LivingDamageEvent(生物受伤事件)
- LivingHealEvent(生物治疗事件)
- LivingHurtEvent(生物受击事件)
NaNny 会在 world/serverconfig/nanny-server.toml 中创建一个 TOML 配置文件。
目前配置文件包含以下选项:
- doHeal - 启用在实体受到或治疗 NaN 伤害时将其生命值设为正常值(默认 true)
- health - 当实体受到或治疗 NaN 伤害时,将其生命值设置为最大生命值的百分比(默认 1.0)
- log - 是否记录将实体生命值设置为 NaN 的事件(默认 true)
This is a Fork of the mod NaNy
The fork has been updated for the latest version of forge and with better compatability for the modpack MC Eternal 2, including a damage fallback that is applied in certain circumstances, but the mod is mostly identical. The license is the same and because the changes are so minimal all points are awarded to the original owner qther.
Additionally this mod helps to fix one of the most annoying issues currently plaguing modern minecraft, entities doing and receiving NaN damage.
It would be idea to locate the original source of this issue in every instance instead of a banaid solution but its time consuming and something for later.
Please do not contact the original author with questions or complaints about this fork, contact me.
NaNny
Because some mods can't keep their floats in control.
NaNny is a Minecraft Neo/Forge mod that cleans up after mods that set entities' health and/or absorption to NaN.
This is accomplished by hooking into the following events and cancelling and optionally healing the affected entities:
- LivingAttackEvent
- LivingDamageEvent
- LivingHealEvent
- LivingHurtEvent
NaNny creates a TOML configuration file in world/serverconfig/nanny-server.toml
The configuration file has the following options at present:
- doHeal - Enable setting the health of an entity when NaN is dealt or healed to them (Default true)
- health - Percentage of max health to set the entity to when NaN dealt or healed to them (Default 1.0)
- log - Whether or not to log events that set entities' health to NaN (Default true)
评论 0
登录后参与评分
还没有评论,来抢沙发吧