生物粉碎者伤害扩展与物种修复
调整 Mob Grinding Utils 的 锯子 / 生物粉碎者 与部分“高难度”生物的交互方式,并修复 Species 中的若干问题。
修复内容
1. 屏幕震动崩溃(Species – NPE)
问题: 在某些情况下(例如加载过程中或特定的整合包设置下),当相机实体为 null 时,Species 的屏幕震动逻辑会触发,导致游戏崩溃。
修复: 在使用相机实体前增加了空值检查。当相机为 null 时,震动幅度被强制设为 0,从而避免游戏崩溃。
配置项: screenShakeFix(默认值:true)
2. 生物粉碎者 vs 高难度生物(Quake, Limpet, Grottol, …)
问题: 由于自定义的伤害逻辑(如格挡、偏转、“仅镐子伤害”等),某些生物实际上免疫 Mob Grinding Utils 的锯子 / 生物粉碎者。例如来自 Species 的 Quake 和 Limpet,以及来自 Mowzie’s Mobs 的 Grottol。
修复: 当锯子的 FakePlayer 击中配置列表中的实体时,该生物会被立即击杀,并跳过正常的 hurt 逻辑。这使得锯子/生物粉碎者能够可靠地作用于这些目标。
配置项: 受影响的实体列表完全可通过 sawKillEntities 进行配置(见下文)。
新功能
灵魂抑制器(Forbidden Arcanus – 防止亡魂生成)
新增一个方块:灵魂抑制器。
- 放置并处于 开启 状态时,它会在可配置的半径内阻止 Forbidden Arcanus 的
lost_soul 生成。
- 该方块有两种状态:开启/关闭。默认为 开启。
- 通过 右键点击 或 红石脉冲 切换状态。
- 合成配方仅在存在
forbidden_arcanus 模组时才会加载。
配置项: soulInhibitorEnabled, soulInhibitorRadius
配置文件
配置文件:config/species_fix-common.toml
- screenShakeFix(默认值:true)– 防止 Species 屏幕震动期间因相机为空而导致的崩溃。
- sawKillEntities(字符串列表,默认值:
["species:quake", "species:limpet", "mowziesmobs:grottol"])– 需要让锯子的 FakePlayer 立即击杀的实体 ID(格式为 modid:entity),以绕过其自定义免疫机制。
- soulInhibitorEnabled(默认值:true)– 启用灵魂抑制器的生成阻挡行为。
- soulInhibitorRadius(默认值:16)– 围绕灵魂抑制器方块检查的半径(以方块为单位)。
要禁用屏幕震动修复,请将 screenShakeFix = false。
要更改受生物粉碎者影响的生物,请编辑 sawKillEntities 列表并重启游戏(或重新加载配置)。
Mob Smasher Damage Extension and Species Fixes
Tweaks how the Mob Grinding Utils Saw / Mob Smasher interacts with some “hard” mobs and fixes a couple of issues in Species.
Fixes
1. Screen shake crash (Species – NPE)
Problem: In some situations (e.g. during loading or in certain modpack setups), Species’ screen shake runs when the camera entity is null, causing a crash.
Fix: A null-check is applied before using the camera entity. When the camera is null, the shake degree is forced to 0 so the game does not crash.
Config: screenShakeFix (default: true)
2. Mob Smasher vs hard mobs (Quake, Limpet, Grottol, …)
Problem: Some mobs are effectively immune to the Mob Grinding Utils Saw / Mob Smasher because of custom damage logic (parry, deflect, “only pickaxe damage”, etc.). Examples: Quake and Limpet from Species, Grottol from Mowzie’s Mobs.
Fix: When the Saw’s FakePlayer hits one of the configured entities, the mob is killed immediately and the normal hurt logic is skipped. This lets the Saw/Mob Smasher work reliably on those targets.
Config: the list of affected entities is fully configurable via sawKillEntities (see below).
New Feathures
Soul Inhibitor (Forbidden Arcanus – Lost Soul spawn prevention)
Adds a new block: Soul Inhibitor.
- When placed and ON, it prevents Forbidden Arcanus
lost_soul spawns in a configurable radius.
- The block has two states: ON/OFF. Default is ON.
- Toggle with right click or with a redstone pulse.
- The crafting recipe is only loaded when
forbidden_arcanus is present.
Config: soulInhibitorEnabled, soulInhibitorRadius
Configuration
Config file: config/species_fix-common.toml
- screenShakeFix (default: true) – Prevents crash when camera is null during Species screen shake.
- sawKillEntities (list of strings, default:
["species:quake", "species:limpet", "mowziesmobs:grottol"]) – Entity IDs (modid:entity) that the Saw’s FakePlayer should kill instantly, bypassing their custom immunity.
- soulInhibitorEnabled (default: true) – Enables Soul Inhibitor spawn blocking behavior.
- soulInhibitorRadius (default: 16) – Radius (in blocks) checked around Soul Inhibitor blocks.
To disable the screen shake fix, set screenShakeFix = false.
To change which mobs are affected by the Mob Smasher, edit the sawKillEntities list and restart the game (or reload the config).
评论 0
登录后参与评分
还没有评论,来抢沙发吧