External Publication
Visit Post

Modding Discussion • Re: How to do an Underground Magma/Lava Lake or Lava pocket?

Luanti Forums - Index page [Unofficial] April 18, 2026
Source

Ah! Thanks Krock! :-)

  1. Probe a few positions by scanning upwards or downwards in the vmanip data for "air" nodes.

That did the trick, albeit a bit different. I had been replacing air with lava already, but that always created either massive amounts of lava_source in large caves or endless streams of lava flowing down or illogical lava in the air.

So I did it the other way around: scan upwards and replace stone with lava but only if y is above a limit and the density noise is above a threshold and the candidate positions are completely surrounded by either stone or lava.

I'm still testing, but that seems to confine the lava into pockets which don't run wild outside of the mapchunk.

It's not perfect yet, but good enough.

Thanks again! :-)

Statistics: Posted by Mik — Sat Apr 18, 2026 22:23


Discussion in the ATmosphere

Loading comments...