promotional bannermobile promotional banner

Dispense Cauldron Fluid

This mod allows Dispenser to push and pull liquids into and out of Cauldrons using buckets.
Back to Files

dispense-cauldron-fluid-1.0.1.jar

File namedispense-cauldron-fluid-1.0.1.jar
Uploader
CubE135CubE135
Uploaded
Nov 24, 2024
Downloads
65
Size
172.4 KB
Mod Loaders
Fabric
File ID
5933590
Type
R
Release
Supported game versions
  • 1.21

Curse Maven Snippet

Fabric

modImplementation "curse.maven:dispense-cauldron-fluid-1145113:5933590"

Learn more about Curse Maven

What's new

Changelog: Bugfix for Dispenser Behavior Overriding

[Version 1.0.1] - 24-11-2024

Fixed
  • Preservation of Default Dispenser Behaviors:
    Fixed an issue where custom dispenser behaviors for LAVA_BUCKET, WATER_BUCKET, and BUCKET unintentionally overrode the default behavior of dispensers, causing fluids to not flow into the world when no block was in front of the dispenser.
Changed
  • Custom Dispenser Behaviors:
    Updated LavaCauldronDispenserBehavior, WaterCauldronDispenserBehavior, and EmptyCauldronDispenserBehavior to integrate with the existing dispenser behavior logic:
    • Custom logic now applies only when a cauldron is in front of the dispenser.
    • Default dispenser behavior is preserved for all other cases by delegating to the pre-existing behavior using DispenserBlock.BEHAVIORS.get(...).
Added
  • Composite Dispenser Behaviors:
    Implemented a fallback mechanism to ensure dispensers default to their original behavior when the custom cauldron logic is not triggered.

Example Use Case

  • A dispenser containing a lava bucket:
    • If a cauldron is in front, it fills the cauldron with lava and replaces the lava bucket with an empty bucket.
    • If no cauldron is in front, lava flows into the world as per the default behavior.

This update ensures compatibility with vanilla dispenser mechanics while enhancing cauldron interactions.

This mod has no additional files