Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details
CastAway
CastAway is a lightweight Minecraft mod for Fabric that prevents lava cast griefing by modifying the way lava and water interact. Specifically, it disables the automatic generation of cobblestone when lava meets water, thus breaking lava casts.
Key Features:
- ❌ Cobblestone generators no longer work.
- ✅ Stone generators continue to function as usual.
- ✅ Obsidian generation continue to function as usual.
- ✅ Modded fluid interactions remain unaffected unless involving a lava or water variant.
CastAway is ideal for servers where lava casts are problematic, offering a seamless solution without performance penalties.
How Lava-Water Interactions Work (Vanilla)
In vanilla Minecraft, when lava and water come into contact, the resulting block depends on several factors:
- The type of lava (flowing or source).
- The type of water (flowing or source).
- The direction of interaction.
Interaction Table
| Interaction | Resulting Block | Affected by CastAway? |
|---|---|---|
| Water → source lava | Obsidian | ❌ Unaffected |
| Water → flowing lava | Cobblestone | ✅ Replaced with flowing water |
| Lava → water (from above) | Stone | ❌ Unaffected |
| Lava → water (others) | Cobblestone | ✅ Replaced with flowing water |
CastAway intercepts the interaction and replaces cobblestone with flowing water, preventing lava casts from forming while leaving other mechanics untouched.
Installation
- Drop the CastAway
.jarinto yourmodsfolder. - Start the server or enter the world — the mod is active immediately.
This mod operates server-side only, meaning clients do not need to install it.
Compatibility and Performance
CastAway uses a Mixin to intercept the call that generates a new block when lava interacts with water. It modifies the receiveNeighborFluids method, which controls the formation of cobblestone during lava-water interactions.
if (state.isOf(Blocks.COBBLESTONE)) {
return world.setBlockState(pos, CastAway.FLOWING_WATER);
}
✅ Affected:
- Vanilla lava and water.
- Modded fluids tagged as
lavaorwater.
❌ Not Affected:
- Fluids not tagged as lava or water (e.g., oil, molten metals, gases).
- Manual cobblestone placement or non-fluid generation mechanics.
- Custom fluid systems not using standard
FluidBlocklogic.
Documentation (2.0.0+)
- enabled:
Enables or disables the mod.
Type:booleanDefault:true - water_level:
Property that specifies the height of water on a scale of 1 to 7.
Type:integerDefault:1 - water_falling:
Property that specifies if water is falling.
Type:booleanDefault:false
Checks
CastAway performs the following checks in the config file:
- Water Level Below 1:
Checks if the water level is below 1.
On Failure: Adjusts to 1. - Water Level Above 7:
Checks if the water level is above 7.
On Failure: Adjusts to 7.
Full Configuration Example
{
"enabled": true,
"water_level": 1,
"water_falling": false
}
Stone Generator (Working)




