Serene & Slice Compat
ModMIT

Serene & Slice Compat

Fixes irrigation logic and restores sprinkler sound

870
Downloads
4
Followers
3 months ago
Updated
📦
4
Versions

📖About Serene & Slice Compat

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.