promotional bannermobile promotional banner

Fluid Drain

Adds a block for draining water and lava.
Back to Files

fluiddrain-beta-1.3.1.jar

File namefluiddrain-1.3.1.jar
Uploader
mattymarsmattymars
Uploaded
Sep 18, 2025
Downloads
16
Size
104.2 KB
Mod Loaders
Forge
File ID
7008249
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:fluid-drain-1347487:7008249")

Learn more about Curse Maven

What's new

Added
- Debug command system with `/draindebug true/false` toggle
- In-game chat debugging for drain operations with detailed logging
- Configurable maximum drain distance (default: 256 blocks)
- Visual debug system with flame particle outlines showing drain area bounds
- Block limit safety net to prevent memory overflow on massive water bodies
 
Fixed
- **CRITICAL**: Fixed diagonal connection bug where drains incorrectly treated diagonally adjacent blocks as connected
- Flood-fill algorithm now only checks the 6 adjacent faces (not 26 surrounding blocks)
- Eliminated false connections that caused drains to affect unintended water bodies
- Fixed performance issues with large connected water systems
- Resolved drain layer processing inefficiencies
- Fixed fill blocks getting stuck when encountering existing source fluid blocks
- Fixed fill blocks not stopping when all reachable areas are filled
 
Changed
- Drain face particles now always use bubbles for consistent visual feedback
- Drain range control to prevent unintended drainage of large connected water bodies
- Debug particles now show area bounds instead of individual blocks to prevent lag
- Fill blocks now have 256 block distance limit instead of arbitrary block count limits
- Removed 75,000 block limit from fill operations for unlimited area filling within range
 
Improved
- Dramatically improved accuracy of fluid connection detection
- Better error tracking for fluid removal operations
- Streamlined debug output for easier problem diagnosis
- Added configurable `maxDistance` setting in config file for custom drain ranges
- Fill blocks properly detect completion when all reachable fluid is converted to source blocks

This mod has no additional files