6 Commits

Author SHA1 Message Date
FaceDeer
bd5b1d22c8
"Overgenerate" caverns to open up border regions (#11)
Previously, only nodes strictly within the map block were being carved out as open space. This meant that multi-node decorations (such as giant mushrooms) would collide with walls and ceilings that would be carved out by adjacent block generation later, leaving them sliced off.

Now Subterrane carves out border regions too. Make note of the is_ground_content function, put all your decoration nodes into this to prevent them from being removed. Can't rely on just is_ground_function node properties for most situations, it's too simplistic.
2020-01-27 20:34:30 -07:00
FaceDeer
d10e0a6e5a
Major rewrite of the API to support more complex decoration methods. Old API still available in legacy.lua
This major rewrite grew out of a desire to be able to have stalactites placed according to a global noise function, which meant the whole decoration approach had to be changed to allow for data to be efficiently carried over between nodes. In the process I cleaned up a lot of old inefficient code, some of it written back when I was still learning LUA in general.

The legacy.lua file contains the old deprecated code so in theory any mods depending on subterrane should still function as they did before.
2018-12-29 12:56:30 -07:00
FaceDeer
d5cd5ba3e1 update documentation with new features 2018-05-24 00:18:58 -06:00
FaceDeer
fcf7415536 update documentation for stalagmites, add table of content ids from register function 2018-05-24 00:11:10 -06:00
FaceDeer
7d83fb54cf markdown formatting 2017-04-01 18:04:15 -06:00
FaceDeer
a367ff08b7 rename 2017-03-25 17:46:49 -06:00