{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreif7ub7fqtunv5gyoctmhmxfrquaz5aijhnxipcxxhhqxo7y5v2kfi",
"uri": "at://did:plc:smtxv63bbm7vxyzdgcztykuk/app.bsky.feed.post/3mjrezfu6m5a2"
},
"path": "/viewtopic.php?p=450609#p450609",
"publishedAt": "2026-04-18T11:54:07.000Z",
"site": "https://forum.luanti.org",
"tags": [
"Krock"
],
"textContent": "You could detect caves generated by the mapgen and fill those with lava.\n\n1. Use an on_generated callback\n2. Retrieve the VoxelManip objects (+ data)\n3. Probe a few positions by scanning upwards or downwards in the vmanip data for \"air\" nodes.\n4. If there are sufficient \"air\" nodes, do replace all of them under a certain Y coordinate with >= 1 lava source\n5. Write the data back to the map\n6. Test it.\n\nStatistics: Posted by Krock — Sat Apr 18, 2026 11:54\n\n* * *",
"title": "Modding Discussion • Re: How to do an Underground Magma/Lava Lake or Lava pocket?",
"updatedAt": "2026-04-18T11:54:07.000Z"
}