一个小型兼容模组,用于在使用 Create Slice & Dice 与 Serene Seasons 搭配时恢复洒水器的正确行为。
不兼容原因
-
两个模组都将 Mixin 注入到 Minecraft 的
isRainingAt()方法中。 每个 Mixin 都针对@At("HEAD"),使用相同的优先级,并被标记为cancellable(可取消)。当存在多个具有相同优先级的可取消
HEAD注入时,Mixin 会按照其 Mixin 配置加载的顺序依次应用它们。首先执行的注入回调可能会取消该方法,从而阻止后续注入运行。在本例中,Serene Seasons 的 Mixin 配置解析较早,因此其注入先被应用并取消了该方法。结果导致 Create Slice & Dice 的注入从未执行。
-
由于 Create Slice & Dice 依赖 Minecraft 的原版天气系统来触发雨天音效,而 Serene Seasons 覆盖了原版天气逻辑,这会导致洒水器无法播放预期的下雨声音。
本模组如何解决这些问题
-
本兼容模组没有直接注入 Minecraft 的
isRainingAt()方法,而是将 Create Slice & Dice 的洒水器检测逻辑集成到 Serene Seasons 的isRainingAtHook()中,确保两个模组的逻辑都能一致地得到评估。 -
为了恢复缺失的音频,该模组还会直接在洒水器位置播放相应的下雨音效,从而绕过对原版天气系统的依赖。
A small compatibility mod that restores proper sprinkler behavior when Create Slice & Dice is used together with Serene Seasons.
Incompatibility reasons
-
Both mods inject mixins into Minecraft’s
isRainingAt()method. Each mixin targets@At("HEAD"), uses the same priority, and is marked ascancellable.When multiple cancellable
HEADinjections with equal priority exist, Mixin applies them sequentially in the order their mixin configurations are loaded. The first injected callback executes first and can cancel the method, preventing later injections from running.In this case, Serene Seasons’ mixin configuration is resolved earlier, so its injection is applied first and cancels the method. As a result, Create Slice & Dice’s injection never executes.
-
Because Create Slice & Dice relies on Minecraft’s vanilla weather system to trigger rain-related sound effects, overriding the vanilla weather logic in Serene Seasons prevents the sprinkler from playing its intended rain sounds.
How this mod fixes the issues
-
Instead of injecting directly into Minecraft’s
isRainingAt()method, this compatibility mod integrates the Create Slice & Dice sprinkler check into Serene Seasons’isRainingAtHook(), ensuring both mods’ logic is evaluated consistently. -
To restore the missing audio, the mod also plays the appropriate rain sound directly at the sprinkler’s position, bypassing reliance on the vanilla weather system.
下载 Serene & Slice Compat
下载 Serene & Slice Compat
下载 Serene & Slice Compat
下载 Serene & Slice Compat
下载 Serene & Slice Compat
- 新增对 Slice & Dice 4.3.0 及更高版本的支持
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧