1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-28 11:40:20 +01:00
Commit Graph

15 Commits

Author SHA1 Message Date
wsor4035
f49b1c42c9
makes moretrees game agnostic (#37)
* at least boot into minetest

* start using some xcompat materials

* transition some more materials

* translate and default lock some more stuff

* handle more stuff

* translate leaves and bugfix jungle nodes near

* fallback on moretrees spaling texture when default not present

* fix https://github.com/mt-mods/moretrees/pull/37#discussion_r1615147786
2024-05-26 11:08:14 -04:00
wsor4035
e476b81cf5
Divorce biome lib and cleanup code (#11)
* make it boot without biome lib

* make luacheck semi sane

* make fast growth saplings work

* make fast saplings respect nodes there growing on

* make regualr saplings work

* fix some luacheck warnings

* add github actions for luacheck

* bump luacheck line limit, as to gracefully handle long tree rules

* switch over to inline luacheck length rules

* fix screenshot warning

* make tree generation work

* add settings from last night

* comment out new biome lib nonsense added

* tune spawning to be better

* turn down fallback ratio

* translate new abm patch to not use biome lib

* add ethereal since its still behaving badly :(
2022-10-24 19:09:19 -04:00
Vanessa Dannenberg
62cab1b1d9 use proper log command and log level 2021-04-07 05:39:26 -04:00
Vanessa Dannenberg
acb534d8d0 fix derps in tables 2019-05-22 21:05:04 -04:00
Vanessa Dannenberg
f45ffc09bf Use a "set" for surface list rather than a plain table
(requires biome_lib from commit a96f015c or later)
2019-05-22 20:03:15 -04:00
Vanessa Dannenberg
e912fba6c8 tweak on-gen to be faster still 2019-05-22 19:16:30 -04:00
Vanessa Dannenberg
7161cfbdee rework how sapling growth is defined
if on-gen, saplings grow per their biome_defs.lua settings
if placed, they grow on the surfaces given in the tables:

* anything but palms will grow on the dirt surfaces
* conifers can also grow on a cold surface, but other trees will not
* only palms can grow on sand, but they will not grow on dirt or cold
2019-05-22 19:09:41 -04:00
Vanessa Dannenberg
e474194daf speed up sapling growth.
they're just too damned slow

also sped up the on_gen ones
they were slower than they needed to be
2019-05-22 18:41:03 -04:00
Vanessa Dannenberg
109b2009fb don't register grow actions for "ongen" saplings
if moretrees is not in spawn-saplings mode.
2018-10-25 11:59:44 -04:00
Vanessa Ezekowitz
8e0eeb5747 fix sapling growth
(biome_lib requires "foo.bar" when using "quoted string" function calls)
2015-08-21 15:31:05 -04:00
Vanessa Ezekowitz
2ae8a32aa3 Use default nodes wherever possible
for pines, jungle trees/leaves, acacias
2015-08-14 13:16:51 -04:00
Vanessa Ezekowitz
10ce68961f update to match the renaming of plants_lib --> biome_lib 2015-08-09 10:34:53 -04:00
Vanessa Ezekowitz
5a27405fad forgot to update sapling_ongen spawn chance/interval of some trees. 2013-09-15 01:56:30 -04:00
Vanessa Ezekowitz
fad79d86b7 add option to spawn saplings instead of fully-grown trees at mapgen
time.  Such saplings will grow very quickly into a tree, compared to a
planted sapling.  Defaults to spawning saplings.

add custom jungle tree sapling, alias default one to that, so that
moretrees will be able to grow its own jungle trees.

fix tree density bug
2013-09-14 22:44:32 -04:00
Vanessa Ezekowitz
6da6bda95e made leaves depend on the trunks they spawn with to avoid decaying
rather than just any trunk being enough to stop just any leaves from decaying.
Re-tuned the leaf decay interval/chance values accordingly.  Changed a few
variables to avoid possible conflicts.  Added a setting to allow one to disable
the new leaf decay code.  Moved sapling growth code into its own file.  Minor
changes to comments here and there.  Got rid of simple trees list (made the
code do various checks in realtime instead, since it's just startup code
anyway).  Fixed messed-up crafting for jungle trees; condensed most of the
crafting code into main craft registry loop.  Mostly fixed broken aliases of
default jungletrees.
2013-02-11 22:07:40 -05:00