Back to mods
Create: Deep Seas - Lava Fix project artwork

CurseForge · Minecraft mod

Create: Deep Seas - Lava Fix

Fixes a bug in Create: Deep Seas where players inside a sealed submarine still take fire/lava damage while submerged in lava, even though the interior is correctly emptied.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Create: Deep Seas - Lava Fix release matches NeoForge?

Updated 5 months ago
Best match for your filters submarinefix-1.0.1.jar
Game version 1.21.1, 1.21.10, 1.21.11
Loader NeoForge

Create: Deep Seas - Lava Fix submarinefix-1.0.1.jar targets 1.21.1, 1.21.10, 1.21.11 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Create: Deep Seas - Lava Fix required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Create: Deep Seas - Lava Fix submarinefix-1.0.1.jar need?

submarinefix-1.0.1.jar on NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Create: Deep Seas - Lava Fix without breaking your instance.

Built for Create: Deep Seas - Lava Fix submarinefix-1.0.1.jar on NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use submarinefix-1.0.1.jar. It targets 1.21.1, 1.21.10, 1.21.11 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside submarinefix-1.0.1.jar. It opens that exact file at the source.

About this project

What does Create: Deep Seas - Lava Fix add?

Create: Deep Seas - Lava Fix

A small NeoForge mod for Minecraft 1.21.1 that fixes a bug in Create: Deep Seas (CDS) where players inside a hermetically sealed submarine still take fire/lava damage while the submarine is submerged in lava, even though CDS correctly empties the interior of lava.

> Author: Diyksfol
> License: MIT
> Note: This mod was developed with the help of an AI assistant; my own role was primarily that of a tester and director. The full source is provided here so anyone — including the Create: Deep Seas authors — may study, reuse, or integrate it.


What it fixes

In Create: Deep Seas, a sealed submarine can pump out all fluid (including lava) from its interior, letting you move around inside as if in open air. However, the game's damage code still applied fire/lava damage to players standing in that "emptied" space, because the damage checks did not account for the sealed sub.

This mod detects when a player is inside (or climbing out of) a sealed compartment and suppresses the fire/lava damage and the on-screen fire overlay in that case.

Specifically fixed

  • Fire/lava damage while standing inside a sealed, lava-submerged submarine.
  • Damage while standing in hatches/doorways at the lava surface (entry/exit).
  • Damage while seated (Create seats), on ladders, or in doorways inside the sub.
  • Endless fire ticks after the hull is breached and then re-sealed.
  • The persistent fire overlay (flames at the bottom of the screen) while inside.

What it does NOT fix (and why)

These behaviours are internal to Create: Deep Seas. Fixing them from an external mod would require overriding core CDS systems and risks breaking the sealed-sub mechanic itself, so they are intentionally left alone:

  1. Lava surface texture is still visible inside the sub. CDS hides the water surface visually but not lava. This is a CDS rendering matter.
  2. Trapdoors don't work as climbable "ladders" when below the lava/water level inside the sub. CDS hides the fluid, and vanilla's trapdoor-climb mechanic depends on a fluid being present, so the climb is disabled. Same effect occurs with water in CDS.
  3. Fire placed by the player inside the sub causes a fluid-like effect. Standing in that fire applies slowness and, over lava, burning. This is a CDS interaction.
  4. Lava or water poured directly inside the sub deals no damage / no drowning. This is a deliberate CDS feature (the interior is treated as sealed), not a bug.
  5. Mobs and animals inside the submarine still take fire/lava damage. The fix only protects the player. Other entities are not covered — do not keep animals or passive mobs inside a lava-submerged submarine.
  6. The pressure system does not work under the lava.

If the Create: Deep Seas authors wish to address any of the above, they are welcome to use this code as a starting point.


Installation (players)

  1. Install NeoForge for Minecraft 1.21.1.
  2. Install Create: Deep Seas and its dependencies (Create, Sable, etc.).
  3. Drop submarinefix-1.0.1.jar into your mods/ folder.
  4. Launch the game. That's it.

The mod is safe to install even without Create: Deep Seas — it simply does nothing in that case.


Building from source (developers)

This repository contains the uncompiled source. To build the jar yourself:

Prerequisites

  • JDK 21
  • The Create: Deep Seas jar and the bundled Sable Companion jar (used as compile-only references — they are not redistributed here).

Steps

  1. Clone this repository: https://github.com/Diyksfol/create-deep-seas-lava-fix

  2. Create a libs/ folder in the project root and place two jars in it:

    • create_submarine-2.1.6.jar — from your Create: Deep Seas download.
    • sable-companion-common-1.21.1-1.5.0.jar — extracted from the CDS jar's META-INF/jarjar/ folder (CDS bundles it).

    Your build.gradle already references these via compileOnly files(...):

   compileOnly files('libs/create_submarine-2.1.6.jar')
   compileOnly files('libs/sable-companion-common-1.21.1-1.5.0.jar')

If your CDS version differs, update the filenames in build.gradle accordingly.

  1. Build:
   ./gradlew build

On Windows:

   .\gradlew.bat build
  1. The compiled jar will be in build/libs/.

> These jars are third-party and are intentionally not included in this > repository. You must supply them yourself from your own Create: Deep Seas install.


How it works (technical overview)

The fix combines several layers:

  • LivingIncomingDamageEvent (server, primary): cancels incoming LAVA / IN_FIRE / ON_FIRE / HOT_FLOOR damage when the player is inside a sealed compartment.
  • Entity#baseTick mixin (server): suppresses the lavaHurt() call.
  • LocalPlayer#baseTick mixin (client): suppresses the client-side lavaHurt() so no fire ticks are produced locally.
  • ScreenEffectRenderer#renderFire mixin (client): hides the fire overlay while inside the sub.
  • PlayerTickEvent.Post (server): clears any residual fire ticks each tick.

Detection

To decide whether a player is "inside a sealed sub", the mod:

  1. Iterates registered submarines via CompartmentTracker.getSubsSnapshot().
  2. Rejects subs whose world-space AABB (getWorldAABB) doesn't contain the player.
  3. Transforms the player's world position into the sub's plot-local space via subLevelAccess.logicalPose().transformPositionInverse(...).
  4. Checks the resulting block against each sealed Component's internal() and hull() sets from CompartmentTracker.getCompartments(uuid).
  5. Checks both feet and eye positions (so seated players, ladder-climbers and players in doorways are covered), and — when the player is on a climbable — additionally scans vertically to cover ladder shafts that extend above the hull.

This mirrors the internal logic CDS itself uses, but avoids the CDS public methods that only work when called from inside a sub-level.


Compatibility

  • Minecraft: 1.21.1
  • Mod loader: NeoForge 21.1+
  • Requires: Create: Deep Seas (optional dependency; mod no-ops without it)

If you find a compatibility issue with another mod, please open an issue.


License

Released under the MIT License. You are free to use, copy, modify, and redistribute this code, including in other projects or mods, provided the original attribution is retained. See LICENSE for the full text.

Anyone is welcome to reuse this code — including the authors of Create: Deep Seas, should they wish to integrate the fix directly.

Project description from CurseForge.

Pick your setup

Create: Deep Seas - Lava Fix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

11 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Create: Deep Seas - Lava Fix versions and loaders

2 of 2 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.