Commit Graph

56 Commits

Author SHA1 Message Date
bri cassa cd93d09d01 Merge remote-tracking branch 'upstream/master' 2023-11-25 15:30:28 +01:00
Niklp 72572bb5c8
Use proper creative mode check (#59) 2023-09-23 13:18:18 -04:00
wsor4035 12cfbe3cb5
Luacheck things (#53)
* add luacheck workflow

* get rid of ancient settings in dryplants

* toss settings.txt code file

* get rid of settings in trunks

* Update .github/workflows/luacheck.yml

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

---------

Co-authored-by: OgelGames <olliverdc28@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-07-21 15:29:53 -04:00
Wuzzy f4185762d5
Some minor German translation fixes (#47) 2023-07-14 07:07:24 -04:00
Niklp c7f65aac83
cleanup codebase (#46)
* cleanup codebase

* fix typo

* add nil checks to on_place

* nuke all mod loaded statements
2023-07-10 18:24:25 -04:00
bri cassa ac33f684b2 Merge remote-tracking branch 'upstream/master' 2023-06-07 22:23:22 +02:00
unknown 577404c850 fix https://github.com/mt-mods/plantlife_modpack/issues/38 - add use_texture_alpa param to nodes that have textures with alpa 2023-01-21 15:48:24 -05:00
jolesh 9483fee7b3
Added Esperanto translation (#36)
used the template.txt's
2022-11-06 12:53:16 -05:00
reusityback 8287ae2476
Add German translation (#29)
* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German transaltion

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add German translation

Add German translation

* Add support for i18n

Add support for i18n, make loading translateable

* Add template for translation

* Add German translation

Add German translation
2022-09-01 21:02:37 -04:00
bri cassa 156d31280a Merge remote-tracking branch 'upstream/master' 2022-06-25 16:53:46 +02:00
A S Lewis d33907ca75
Fix typo in crafting recipes in trunks
Fixes #24 
Co-authored-by: A S Lewis <aslewis@cpan.org>
2022-06-08 22:03:52 +10:00
bri cassa 3239650e68 Merge remote-tracking branch 'upstream/master' 2022-03-06 16:17:20 +01:00
Jordan Leppert cb2373f089
Trunks: Prevent crashing when unknown nodes exist (#9)
Extension of commit 9ed4771515

Co-authored-by: OgelGames <olliverdc28@gmail.com>
2021-12-16 20:10:36 +11:00
bri cassa 6bdb533906 Fix trunk duplication 2021-08-24 12:15:54 +02:00
bri cassa c62610f544 Try to fix crash 2021-08-18 16:20:56 +02:00
bri cassa 8e2148ffc3 Merge remote-tracking branch 'upstream/master' 2021-07-24 13:12:23 +02: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
bri cassa 5ac025cda4 Merge remote-tracking branch 'upstream/master' 2021-07-03 17:29:19 +02:00
Vanessa Dannenberg 52b2d18523 make moss buildable_to
and make sunflower attached_node like other plants
2021-06-29 13:44:00 -04:00
bri cassa efe869d386 Fix crash caused by the previous merge 2021-06-26 20:04:36 +02:00
bri cassa b597f99014 Merge remote-tracking branch 'upstream/master' 2021-06-26 19:07:22 +02: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 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
bri cassa 637f96e215 Merge remote-tracking branch 'upstream/master' 2021-06-20 17:27:50 +02: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
Sys Quatre 86896848d5 Merge remote-tracking branch 'upstream/master' 2020-12-03 20:55:06 +01:00
VanessaE 622016713e respect protection when placing twigs 2020-12-02 10:05:01 -05:00
Sys Quatre 5b66d54632 Add protection check when placing twigs from trunks mod 2020-07-24 23:14:34 +02:00
Sys Quatre d4e83d7e78 [trunks] Tidy code and disable auto roof corners ABM 2020-07-24 00:03:48 +02:00
Sys Quatre 80b548535a Merge branch 'master' of yunohost.local:mtcontrib/plantlife_modpack into nalc-1.2-dev 2020-03-25 23:11:23 +01:00
Louis Royer 47c20dc550 Remove translations in minetest.log output
because they are not translated anyway
2020-02-15 14:32:06 +00:00
Sys Quatre 45a8064d3d Merge branch 'master' of yunohost.local:mtcontrib/plantlife_modpack into nalc-1.2-dev 2019-12-22 14:34:30 +01: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
Sys Quatre 091ce416d0 [trunks] Ajoute moss et moss_fungus dans le groupe attached_node.
* Permet de les dropper quand on récolte le bloc où ils sont attachés.
2019-04-26 20:00:38 +02: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
Auke Kok 1ccfeb6214 Reduce usage of debug `print` statements for no good reason (console floods) 2018-02-17 16:27:12 -08:00
LeMagnesium 824a77672c
Fix two typos 2018-02-10 17:17:09 +01:00
fat115 5ca1ed261e global i18n : add plantlife_i18n mod
idea taken from homedecor_modpack and its homedecor_i18n
all translated mods have a new dependency : plantlife_i18n
translations are stored in po/pot file : one file for all mods

added french translation (almost complete)
transfered de/es/tr/pt translations to corresponding .po file
(only for some mods, unfortunately translations are incomplete)
2017-08-03 15:02:56 +02:00
Rogier 2ad8c73f66 Fix trunks mod start failure if some type of trunk does not exist. 2015-11-03 12:46:15 +01: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 e110b09920 use default pines 2015-07-19 16:38:32 -04:00
Vanessa Ezekowitz 01555c10c1 better groups settings in trunks "twigs" and "moss" nodes 2015-02-16 17:53:06 -05:00
Vanessa Ezekowitz 3eaf687da4 OPTIMIZE _ALL_ THE TEXTURES! \:D/ 2015-01-23 14:08:08 -05:00
Vanessa Ezekowitz d6e9d0a46e local-ize a couple more variables 2014-11-20 11:48:57 -05:00