mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
lava!
This commit is contained in:
parent
c4b707bca2
commit
8f42a8be0c
11 changed files with 255 additions and 89 deletions
|
@ -1817,6 +1817,16 @@ void make_block(BlockMakeData *data)
|
|||
if(noisebuf_ground_wetness.get(x,y,z) < -0.6)
|
||||
vmanip.m_data[i] = MapNode(CONTENT_GRAVEL);
|
||||
}
|
||||
else if(noisebuf_ground_crumbleness.get(x,y,z) <
|
||||
-2.3 + MYMIN(0.1 * sqrt(MYMAX(0, -y)), 1.5))
|
||||
{
|
||||
vmanip.m_data[i] = MapNode(CONTENT_LAVASOURCE);
|
||||
for(s16 x1=-1; x1<=1; x1++)
|
||||
for(s16 y1=-1; y1<=1; y1++)
|
||||
for(s16 z1=-1; z1<=1; z1++)
|
||||
data->transforming_liquid.push_back(
|
||||
v3s16(p2d.X+x1, y+y1, p2d.Y+z1));
|
||||
}
|
||||
}
|
||||
|
||||
data->vmanip->m_area.add_y(em, i, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue