Natural slabs for smooth hills / valleys

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sat Jul 13, 2013 21:15

Would this "leveled nodeboxes" feature affect buildings? What would happen if a node affected by this was dug up? I hope that this feature will lead to smoother and prettier worlds.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Sat Jul 13, 2013 21:20

I think i need to see screenshots.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

nsd
Member
 
Posts: 23
Joined: Wed May 14, 2014 21:14
In-game: nsd

Re: Natural slabs for smooth hills / valleys

by nsd » Sun Dec 28, 2014 22:06

I think this can easily be done, but since I'm new to lua, I might be wrong. So, here goes:

At least for dirt slabs:

For every dirt_with_grass block:
1) Check if the node above is air. If not, stop.
2) Check if there is a dirt_with_grass block above any of the 4 laterally adjacent nodes.
3) Place a dirt_with_grass slab one node above the block you were originally looking at. Done!

Oh, and bump!
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: Natural slabs for smooth hills / valleys

by paramat » Sun Dec 28, 2014 23:07

Looks like i should update my slabreallm mod to use LVM.
 

Dragonop
Member
 
Posts: 1178
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop

Re: Natural slabs for smooth hills / valleys

by Dragonop » Mon Dec 29, 2014 03:50

Maybe only adding this to caves?
 

Previous

Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 10 guests

cron