Modding Discussion • Re: How to do an Underground Magma/Lava Lake or Lava pocket?
Luanti Forums - Index page [Unofficial]
April 18, 2026
You could detect caves generated by the mapgen and fill those with lava.
- Use an on_generated callback
- Retrieve the VoxelManip objects (+ data)
- Probe a few positions by scanning upwards or downwards in the vmanip data for "air" nodes.
- If there are sufficient "air" nodes, do replace all of them under a certain Y coordinate with >= 1 lava source
- Write the data back to the map
- Test it.
Statistics: Posted by Krock — Sat Apr 18, 2026 11:54
Discussion in the ATmosphere