我喜欢使用 MCA Reborn 和 Naturalist 等模组,但整合包中的模组越多,出现各种奇怪边缘情况的可能性就越大。
例如,如果一只小熊崽走进了村庄,所有村民都会无视它,熊妈妈也会无视村民。但如果玩家靠小熊崽太近,熊妈妈就会生气并发起攻击!
这类细微的交互会破坏“村民与玩家属于同类型角色”的沉浸感,因此我决定着手解决这一问题!
通过添加自定义标签来指向我所整合的整合包(Uncharted Paths)中其他模组添加的各种生物,然后将这些标签添加到 guardsTargetEntities 列表中,如下所示:
"#parrishpotato:village_threats_disengate": -1,
"#parrishpotato:village_threats_very_high_priority": 0,
"#parrishpotato:village_threats_high_priority": 1,
"#parrishpotato:village_threats_medium_priority": 2,
"#parrishpotato:village_threats_low_priority": 3,
"#parrishpotato:village_threats_very_low_priority": 4
这样守卫就能对不同的生物做出适当的反应了!但这只解决了交互的一半问题,因为现在如果生物没有主动攻击守卫,守卫有时会无缘无故地攻击动物。因此,下一步合乎逻辑的做法是扩展 Naturalist 的标签,使其包含那些看起来适合它们进行交互的生物!
免责声明:我并非此兼容层所支持的任一模组的所有者或关联方。我喜欢这些模组,希望让它们能够彼此交互,同时也希望分享我为实现这一目标所做的少量兼容性工作,供任何需要的人使用!欢迎在任何你喜欢的整合包或项目中使用本内容!
I like using mods such as MCA Reborn and Naturalist, but the more mods that are in a modpack, the more likely weird edge cases are to appear.
For example, if a bear cub wanders its way into a village, all the villagers just ignore the cub, and the momma bear also ignores the villagers. But if a player gets too close to the cub, the momma bear gets mad and attacks!
Little interactions like that break the illusion that the villagers are the same type of character as the players, so I set out to address that!
By adding custom tags that point to assorted mobs added by other mods in the modpack I put together (Uncharted Paths), then adding those tags to the guardsTargetEntities list like so:
"#parrishpotato:village_threats_disengate": -1,
"#parrishpotato:village_threats_very_high_priority": 0,
"#parrishpotato:village_threats_high_priority": 1,
"#parrishpotato:village_threats_medium_priority": 2,
"#parrishpotato:village_threats_low_priority": 3,
"#parrishpotato:village_threats_very_low_priority": 4
Then the guards actually react to the different mobs appropriately! But that only fixed have of the interaction, as now the guards were attacking animals for seemingly no reason if the mobs weren't attacking them too, so the next logical step was to extend Naturalist's tags to include mobs that seemed to make sense for them to interact with as well!
As a disclaimer, I do not own nor am I associated with any of the mods that this compatibility layer supports, I like these mods and wanted to get them interacting with each other, and I also wanted to share the small amount of compatibility I worked on for anyone else looking for this to be able to use! Feel free to use this in any modpack or project you'd like!
评论 0
登录后参与评分
还没有评论,来抢沙发吧