Commit Graph

15 Commits (a2976c609add05fa5f7eaa77c1444e3a58e460b2)

Author SHA1 Message Date
Vanessa Dannenberg a2976c609a update all generate, spawn, and grow calls
to use "." instead of ":" notation
(quells all those "deprecated" warnings)
2021-07-19 14:18:01 -04:00
Vanessa Dannenberg 9ed4771515 fix rare edge-case where unknown nodes cause a crash
When a new mapblock is generated and the mod checks the neighbors around
a target to place a fallen twig, if it finds an unknown node (because
it's in a neighboring, old mapblock from a previous session -- perhaps
an old moss node that hadn't converted-over to wallmounted yet), trying
to check its buildable_to state will fail, since that requires that
there be a node def to look at, which an unknown node wouldn't have.

This substitutes a known not-buildable_to node for those cases, so that
the code won't try to overwrite what it found.
2021-06-23 21:03:06 -04:00
Vanessa Dannenberg f01e4bb55f Convert moss to wallmounted mode
I couldn't use leaf decay to make moss disappear when a trunk is dug,
because it breaks leaf decay on that tree's leaves: the leafdecay
function is not a true "register"- type function that can be run more
than once on a given trunk node, it's an all-or-nothing override and
only the last call for any given trunk actually sticks.

Since moss is... was facedir, attached_node didn't work right either, as
it doesn't have a mode to look for a vertical surface behind the
attached object (like how it works with wallmounted items), so this
converts moss to true wallmounted and uses attached_node like I
originally wanted.

To avoid losing the effect where moss can be rotated randomly when
generated, I registered 4 nodes for each moss type, with
increasingly-rotated textures.
2021-06-20 23:30:26 -04:00
Vanessa Dannenberg 31e0066238 oops 2019-06-18 14:59:34 -04:00
Vanessa Dannenberg 3d13053d97 use table copy instead of own clone node 2019-06-18 14:55:29 -04:00
Vanessa Dannenberg 77093e428a use swap_node() where possible, for speed 2018-10-25 10:27:54 -04:00
Auke Kok 0af7b69afa `cleanfile` run: remove trailing whitespace.
When it's this far out of hand you really need to clean up or else
everyone will be submitting patches with more whitespace problems.
2018-02-17 16:28:43 -08:00
Vanessa Ezekowitz afb84c7cc9 Look for default nodes when growing stuff on/around pine trees. 2015-08-14 12:18:12 -04:00
Vanessa Ezekowitz 42732b0636 split plants_lib off into its own repository
renamed it to biome_lib
changed all relevant functions, tables, depends.txt, etc. in this modpack to call for the new name.
2015-08-09 10:37:50 -04:00
Vanessa Ezekowitz d6e9d0a46e local-ize a couple more variables 2014-11-20 11:48:57 -05:00
Vanessa Ezekowitz 2bab75fa9e stop crash from not-registered node being called for in trunks mod 2014-09-06 13:06:24 -04:00
Vanessa Ezekowitz b914e5395b use set_node(), not add_node()
don't use minetest.env:* method (deprecated), use minetest.* instead
2014-08-15 19:34:15 -04:00
Vanessa Ezekowitz da732bb18e use real function calls instead of the old string method where possible
(basically leaving only the old legacy mapgen calls still using the string method)
2014-08-15 10:47:44 -04:00
Vanessa Ezekowitz f3cdd1b7a1 don't disable air checking in biome defs when it isn't necessary
doing so greatly slows down plants_lib by forcing the use of the legacy
mapgen code.
2014-08-12 23:44:00 -04:00
Vanessa Ezekowitz 3b7b242481 Imported dryplants and ferns mods and all components of the Undergrowth modpack 2014-08-12 15:08:11 -04:00