跳到正文

Cast Away

作者:Riser876

Disables lava casts with no performance overhead

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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:

  1. The type of lava (flowing or source).
  2. The type of water (flowing or source).
  3. 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

  1. Drop the CastAway .jar into your mods folder.
  2. 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 shouldSpreadLiquid method, which controls the formation of cobblestone during lava-water interactions.

✅ Affected:

  • Vanilla lava and water.
  • Modded fluids tagged as lava or water.

❌ 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.

Documentation (2.0.0+)

  • enabled:
    Enables or disables the mod.
    Type: boolean Default: true
  • water_level:
    Property that specifies the height of water on a scale of 1 to 7.
    Type: integer Default: 1
  • water_falling:
    Property that specifies if water is falling.
    Type: boolean Default: 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)

Alternative/Working Stone Generator

常见问题

Cast Away 支持哪些 Minecraft 版本?

Cast Away 支持 Minecraft Java 版 1.19–26.3,共 29 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Cast Away 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Riser876 的其他作品

查看全部 →