Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+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 works.
- ✅ Stone generators continues to function as usual.
- ✅ Obsidian generation continues 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
.jar
into yourmods
folder. - 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
lava
orwater
.
❌ 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
FluidBlock
logic.