promotional bannermobile promotional banner

Dispense Cauldron Fluid

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

File Details

dispense-cauldron-fluid-1.0.1.jar

  • R
  • Nov 24, 2024
  • 172.41 KB
  • 65
  • 1.21
  • Fabric

File Name

dispense-cauldron-fluid-1.0.1.jar

Supported Versions

  • 1.21

Curse Maven Snippet

Fabric

modImplementation "curse.maven:dispense-cauldron-fluid-1145113:5933590"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

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.