[Tutorial] How to remove the lava from caves in custom dimensions

Started by Catnip on

Topic category: User side tutorials

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] How to remove the lava from caves in custom dimensions

I've found a lot of forum topics asking how to remove the lava from custom dimensions, so I figured that I might as well try to make a tutorial for it. Please note that this isn't a perfect solution, but it should remove most of the lava and work relatively well for most dimensions.

In this tutorial, I am going to assume three things. 1, that you already have a custom dimension with properly tagged biomes for it (mod:is_dimension). 2, that you are relatively familiar with features. And 3, that you are relatively familiar with procedures.

Step 1: create a new block with a fully transparent texture and cutout transparency type. This is your lava remover block, and most of its properties don't matter, however, you will need to make it tick randomly.

Step 2: create a procedure on tick update for the lava remover and start with the check for block in 6*6*6 box template. Replace the part that sets found to true with replacing the block at x+sx y+sy z+sz (which will be lava) with your lava remover. Then replace the empty if found part with replacing the block at x y z with air.

Step 3: set the when neighbor block changed procedure trigger of the lava remover to also run the same procedure to spread it into lava, then remove itself.

Step 4: create a feature that only generates in biomes tagged as part of your dimension. Have it run several times per chunk (the more times it runs, the laggier it will be, but the more lava it will remove), and on Y levels -56 to the bottom of your dimension, of course only if the biome has the feature (which should be any biome in your dimension).

Step 5: for the feature itself, use a blob replacing lava with your lava remover (which will spread to remove the entire lava lake once one block gets a random tick update). Also, the higher the size of the blob, the quicker it will run.

As I said previously, this isn't the best solution, it does cause a bit of lag when a large lava lake is removed, the lava remover needs to wait for a random tick before it activates, and small lava pockets may be skipped as well. However, it will at least remove the majority of the large lava lakes and caves from your dimension.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And I don't know of a better…
Wed, 08/27/2025 - 12:08

And I don't know of a better solution.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is actually pretty much…
Wed, 08/27/2025 - 12:28

This is actually pretty much what datapack creators have to do in vanilla, they just use the geode feature.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure anyway
Wed, 08/27/2025 - 12:31

I'm pretty sure anyway