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

You could detect caves generated by the mapgen and fill those with lava.

  1. Use an on_generated callback
  2. Retrieve the VoxelManip objects (+ data)
  3. Probe a few positions by scanning upwards or downwards in the vmanip data for "air" nodes.
  4. If there are sufficient "air" nodes, do replace all of them under a certain Y coordinate with >= 1 lava source
  5. Write the data back to the map
  6. Test it.

Statistics: Posted by Krock — Sat Apr 18, 2026 11:54


Discussion in the ATmosphere

Loading comments...