1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-12-25 01:50:20 +01:00
Commit Graph

419 Commits

Author SHA1 Message Date
Jordan Leppert
e2486ca7f5 Adding default to boolean settings 2021-12-06 09:33:44 +00:00
Jordan Leppert
98f0c6c20f Slight simplification of on_dig. Also minor fix to generating vines of a certain length. 2021-12-05 11:41:49 +00:00
Jordan Leppert
54d3b669be Vines: Simplifying digging logic. 2021-12-05 11:08:51 +00:00
Jordan Leppert
93265656cc Adding vine growth speed settings 2021-12-04 20:28:11 +00:00
Jordan Leppert
c76fd45a2c Option to disable vines:vines item, as it seems pointless.
All recipes allow the vines group, so any vine end item will work.
2021-12-04 20:17:44 +00:00
Jordan Leppert
c7d0fd3c53 Cutting vines with shears now gives the player the vine ends, so they can make their own vine farm 2021-12-04 18:53:39 +00:00
Jordan Leppert
a66b82f1f0 Fixing growth. Vines now grow once every 3-6 minutes. 2021-12-04 17:56:28 +00:00
Jordan Leppert
63914caed1 Removing attached_node from vine groups, as it was causing breaking one vine to break the vine all the way up to the top, instantly 2021-12-04 17:56:28 +00:00
Jordan Leppert
ba98359dd0 When a vine is destroyed, ensure the remaining part of the vine ends with a vine end node. 2021-12-04 17:56:28 +00:00
Jordan Leppert
6df36da4e1 Settings to disable any type of vine and vine rope. Settings to adjust rarity of vines. 2021-12-04 17:55:49 +00:00
Jordan Leppert
28ef3e0c4b Vines now generated at mapgen time. Vines now generated as a vine of random length. 2021-12-04 17:55:08 +00:00
Vanessa Dannenberg
680b02f7e2 fix crash for sure this time 2021-07-19 23:56:47 -04:00
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
46717958bc use biome_lib.get_nodedef_field
instead of biome_lib:get_nodedef_field
(change `.` to `:`)
2021-07-19 14:08:57 -04:00
Vanessa Dannenberg
52b2d18523 make moss buildable_to
and make sunflower attached_node like other plants
2021-06-29 13:44:00 -04:00
Vanessa Dannenberg
bfd08f01c8 Just run the conversion LBM on every load
it won't take any appreciable CPU anyway if there's nothing to do.

Minetest seems to not new (or newly-renamed) LBMs when it should, when
it's set to only run once.  Also covers cases where a crash could
prevent mapblocks being checked later.
2021-06-23 21:09:48 -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
3f107a8067 renamed the LBM in case it got run at the wrong time
between mod updates; forces it to run again
(it's harmless to let it run twice)
2021-06-23 10:09:58 -04:00
Vanessa Dannenberg
b3cbd3df2e fix moss node drops 2021-06-21 05:21:34 -04:00
Vanessa Dannenberg
b1b4a08834 make pebbles fall when ground is dug. 2021-06-21 00:36:14 -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
7b4f54ead0 make youngtrees, bushes fall on dig,
make moss fall when the node holding it is dug,
and make trunk roots decay (exploiting the standard leafdecay function)
2021-06-19 20:36:36 -04:00
Vanessa Dannenberg
c061ef23cf Merge branch 'bls-197' into 'master'
Fixes bug with stalactite placement

See merge request VanessaE/plantlife_modpack!7
2021-06-07 17:04:31 +00:00
Oversword
d87d8e51f5 Fixes bug with stalactite placement 2021-06-07 17:04:31 +00:00
Vanessa Dannenberg
70df655a42 allow pebbles to spawn on a few more surface types 2021-04-06 04:09:34 -04:00
Vanessa Dannenberg
4876fc1265 let biome_lib place pebbles instead of using custom mapgen code 2021-04-06 04:08:41 -04:00
Vanessa Dannenberg
81b2b0898b don't use a function to pick random dry grasses
just use `biome_lib`'s random-choice table feature
(it was only there to let the mod replace junglegrass, but that's pointless
when junglegrass doesn't tend to spawn in the same areas)
2021-04-06 03:32:04 -04:00
Vanessa Dannenberg
a750bac532 Merge branch 'master' into 'master'
Made woodsoils soils tillable.

See merge request VanessaE/plantlife_modpack!6
2021-02-07 23:29:08 +00:00
Tin Švagelj
b4b24dedba Made woodsoils soils tillable. 2021-02-07 21:17:29 +01:00
VanessaE
622016713e respect protection when placing twigs 2020-12-02 10:05:01 -05:00
VanessaE
9963e588d6 add minimum minetest version key for contentdb 2020-06-03 13:00:31 -04:00
Vanessa Dannenberg
686dd21b9d Merge branch 'mt5-locale' into 'master'
MT5 locale

See merge request VanessaE/plantlife_modpack!5
2020-02-15 14:32:06 +00:00
Louis Royer
47c20dc550 Remove translations in minetest.log output
because they are not translated anyway
2020-02-15 14:32:06 +00: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
07b6fc48ea Merge branch 'vines-typo' into 'master'
Fix typo in vines/init.lua

See merge request VanessaE/plantlife_modpack!4
2019-05-15 20:10:45 +00:00
Pierre-Adrien Langrognet
9a3d101c89 Fix typo in vines/init.lua 2019-05-14 17:12:29 +00:00
Vanessa Dannenberg
0d228f705c Merge branch 'pg-grow-fern-saplings' into 'master'
Fix growth of tree fern saplings

See merge request VanessaE/plantlife_modpack!3
2019-04-11 22:44:09 +00:00
Pedro Gimeno
229d6aba88 Fix growth of tree fern saplings
While on it, factor out calls to get_node.
2019-04-12 00:10:44 +02:00
Vanessa Dannenberg
4e32feaa55 Merge branch 'patch-1' into 'master'
more realistic frequency of molehills

See merge request VanessaE/plantlife_modpack!2
2019-03-17 23:49:28 +00:00
John Wayne
b9b592af44 more realistic frequency of molehills 2019-03-17 22:53:50 +00:00
Vanessa Dannenberg
08698ecd60 make spawning of under-dirt roots configurable
(enabled by default, unless explicitly set to false)
2018-12-08 18:51:53 -05:00
Vanessa Dannenberg
45a400f6ce minor license declaration tweak 2018-11-08 19:10:02 -05:00
Vanessa Dannenberg
3dde23cff8 license fixups: use LGPL3.0 for code, CC-by-SA 4.0 for media 2018-11-08 18:29:07 -05:00
Vanessa Dannenberg
feb3092d06 switch to Tenplus1's fork of vines 2018-10-25 11:49:01 -04:00
Vanessa Dannenberg
77093e428a use swap_node() where possible, for speed 2018-10-25 10:27:54 -04:00
Vanessa Dannenberg
2c7a776c7f remove an old outdated alias 2018-08-13 15:57:50 -04:00
Vanessa Dannenberg
3eb2befaa4 defer to farming for sugar 2018-08-13 15:57:45 -04:00
tenplus1
60c3664cbb Update cooking.lua with food_ groups and easier recipes. 2018-08-12 14:23:13 +00:00
sys4-fr
9789d6da3a Fix ferns compatibility with minetest >= 0.4.16 (#78) 2018-03-17 16:37:02 -04:00