
Disables lava casts with no performance overhead.
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.
CastAway is ideal for servers where lava casts are problematic, offering a seamless solution without performance penalties.
In vanilla Minecraft, when lava and water come into contact, the resulting block depends on several factors:
| 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.
.jar into your mods folder.This mod operates server-side only, meaning clients do not need to install it.
CastAway uses a Mixin to intercept the call that generates a new block when lava interacts with water. It modifies the shouldSpreadLiquid method, which controls the formation of cobblestone during lava-water interactions.
lava or water.FluidBlock logic.boolean Default: trueinteger Default: 1boolean Default: falseCastAway performs the following checks in the config file:
{
"enabled": true,
"water_level": 1,
"water_falling": false
}
