55 Commits

Author SHA1 Message Date
FaceDeer
7d0b7e3d4b cleanup with luacheck, remove old depends and description files 2023-09-29 20:15:23 -06:00
FaceDeer
e5f8457e93 better creative check 2022-08-24 20:41:38 -06:00
FaceDeer
75fe53f5eb small bug in the structure of the narrowest of giant mushrooms 2022-08-19 00:16:30 -06:00
FaceDeer
c5f46e113e make legacy code not crash when default mod isn't present. Remove the old cave registration code, it's been years and this is easier than fixing it. 2022-08-04 11:45:24 -06:00
FaceDeer
40215b772e remove duplicated legacy code, add a get_cavern_value method, and store registered layers by name 2022-07-23 20:44:52 -06:00
FaceDeer
2e523b1ba1 make subterrane test for buildability for giant mushroom stems 2022-07-15 15:06:27 -06:00
FaceDeer
331d08b156 make subterrane cross-compatible with minetest_game and mineclone2 2021-05-06 20:28:37 -06:00
FaceDeer
1f385fc84a add an API to allow other mods to test positions for the presence of caverns 2021-04-10 03:28:13 -06:00
FaceDeer
6cc2fe8fae fix a bug in how column decoration happens 2021-03-27 17:08:33 -06:00
FaceDeer
6439ca59bf add stub translations 2020-11-15 15:26:00 -07:00
FaceDeer
561b121bc0 compact translation files a bit 2020-02-19 21:05:07 -07:00
FaceDeer
ded00262aa fix textdomain headers 2020-02-19 13:42:21 -07:00
FaceDeer
8faf748175 update translation file formatting 2020-02-19 12:21:31 -07:00
FaceDeer
2ad5864a11 switch to native translator for legacy nodes 2020-02-17 22:31:58 -07:00
FaceDeer
4b0ae3bce7 switch to the new mapgen_helper metrics function 2020-02-08 23:07:15 -07:00
FaceDeer
1abfc23dd3 update deprecated function call 2020-02-01 15:32:39 -07:00
FaceDeer
6940ae1585 remove deprecated function calls 2020-01-30 17:32:21 -07:00
FaceDeer
6662133650 free cave node array memory if a cave hasn't been generated in a minute 2020-01-28 22:57:30 -07:00
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
28d1aa3634 math.random can have trouble when given more than a 32 bit maxint range 2019-07-09 23:55:24 -06: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
c590d55587 Minetest 0.5 adds an "unregister_biome" function 2018-06-04 19:32:45 -06:00
FaceDeer
af9982786e add a check to prevent mushrooms from getting cut off 2018-05-29 20:54:20 -06:00
FaceDeer
3f5abecef7 fix legacy function redirection 2018-05-25 23:56:18 -06:00
FaceDeer
c3fd6f1bed differentiate legacy stalagmite function from newer one 2018-05-25 23:52:18 -06:00
FaceDeer
c2000ac612 enable legacy dripstone by default, at least for now. 2018-05-24 00:30:53 -06: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
4aaeaabc5f adding the option to define the old dripstone nodes 2018-05-23 23:54:23 -06:00
FaceDeer
234588dd08 reusing node definition table resulted in odd side effects 2018-05-19 17:05:43 -06:00
FaceDeer
eb1c26fcc5 plull flowstone out of library - shouldn't register nodes in here. 2018-05-19 17:05:43 -06:00
FaceDeer
36ac111eb5 add giant columns, and options for dealing with underground sea levels more cleanly 2018-05-19 17:05:43 -06:00
FaceDeer
7ebed63c78 Allow for manual construction of horizontal stalactites and "regular" stalagmite fences 2018-04-11 23:58:39 -06:00
FaceDeer
9ee9187388 incorrect usage of 'vm:write_to_map(data)' 2017-12-10 17:25:07 -07:00
FaceDeer
ed6fdfa4ca actually, this is unnecessary. 2017-10-19 20:46:04 -06:00
FaceDeer
a2c177be8e node groups for digtron support 2017-10-19 19:53:59 -06:00
FaceDeer
86b0f18d48 dripstone wasn't removing itself from inventory when placed 2017-09-05 20:52:29 -06:00
FaceDeer
84de29259e Mapgen defaults for fresh installs
A fresh install that had never had its mapgen flags tinkered with would
return nil when requesting them, which would normally mean "go with the
defaults." This mod overrides those defaults, so a fallback is needed.
2017-07-05 00:05:54 -06:00
LNJ
89b82ae3ad Add German l10n 2017-04-14 12:22:30 -06:00
LNJ
54a920eb34 Add shell script for updating translations 2017-04-14 12:22:30 -06:00
FaceDeer
2355e2c86a disable mapgen caverns if subterrane is being used 2017-04-09 22:36:37 -06:00
FaceDeer
13fb066d0e memory optimization: buffers for noise values 2017-04-02 23:12:01 -06:00
FaceDeer
7d83fb54cf markdown formatting 2017-04-01 18:04:15 -06:00
FaceDeer
b1b38f57fd Switch to MIT license per request 2017-04-01 08:44:07 -06:00
FaceDeer
2606ca0fe7 update template 2017-03-28 01:08:46 -06:00
FaceDeer
03418f23dc Add a "screenshot"
This is actually just a representation of Perlin noise that's been
edited to look like the minimap, but it conveys the basic intent of this
mod reasonably well IMO.
2017-03-26 13:49:52 -06:00
FaceDeer
a367ff08b7 rename 2017-03-25 17:46:49 -06:00
FaceDeer
71c01a62d0 header 2017-03-25 17:46:11 -06:00
FaceDeer
072999b881 add readme and license text 2017-03-25 17:44:20 -06:00
FaceDeer
6ffab2662a force placement of first stalactite/stalagmite block 2017-03-25 02:50:07 -06:00