跳到正文

Serene & Slice Compat

作者:ptayur

Fixes irrigation logic and restores sprinkler sound

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A small compatibility mod that restores proper sprinkler behavior when
Create Slice & Dice is used together with
Serene Seasons.

Showcase

Incompatibility reasons
  • Both mods inject mixins into Minecraft’s isRainingAt() method. Each mixin targets @At("HEAD"), uses the same priority, and is marked as cancellable.

When multiple cancellable HEAD injections 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 支持哪些 Minecraft 版本?

Serene & Slice Compat 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Serene & Slice Compat 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

ptayur 的其他作品

查看全部 →