1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-12-27 03:00:24 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
Niklp
c15250a03a
Rename some vars to reduce the mess in the mapgen code 2024-10-14 19:12:36 +02:00
Niklp
517c9dc516
[no squash] Disable jungletree generation when default isn't available (#43)
* Remove unused params from biome_defs

* Disable jungletree generation when `default` isn't available
2024-05-30 18:34:01 -04:00
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
FrostRanger
06aaee3187 Fixed cedars spawning deep underground 2020-11-22 05:12:09 +00:00
Vanessa Ezekowitz
cccfb1953b remove acacia trees entirely.
they're handled by minetest_game now (have been for a while)
only some aliases and an "avoid" setting for other trees remain.
2017-08-12 18:59:41 -04:00
Rogier
d72574d288 Add poplar tree
Poplars exist in two kinds: small and large trees. Both use the same
nodes, except for the sapling. Poplar leaves may drop one or the
other sapling.

Poplar trees require a humid environment, and water nearby.
Provided there is water, an occasional poplar will grow under less humid
conditions.
2016-07-03 07:16:36 +02:00
Rogier
afab0692df Add date palm
Spawns in hot and dry desert, but requires water. This makes it a bit harder to
find, but where found, it can be more abundant.
If found in the middle of a desert, its presence indicates a water source below
the surface.

As an additional optional feature, dates (slowly) grow back after harvesting.
2016-06-27 23:23:54 +02:00
Rogier
cd9926f9e5 Restore previous pine as cedar
Commit ad0cbbc0f disabled the previous moretrees pine, and aliased it to the
default minetest pine.  The default pine is a completely different tree though,
with different apppearance and different textures.

This commit restores the previous pine tree, renaming it to cedar to avoid a tree
name clash with the default game. Any existing moretrees pine trees will be
converted to cedar, so that their appearance does not change. Moretrees pine
trees that have already been converted to the default pine tree are not converted
back.
2016-05-18 16:54:45 +02:00
Vanessa Ezekowitz
6694b8da61 made birch, spruce, fir, and jungle trees spawn again
turned out to be I was using foo:bar for their function calls, which
biome_lib filters out (only group defs can use that format).  Changed
them to quoted-string "foo.bar" format.  Also, jungle trees need a
moretrees-specific copy of the default jungle trunk node so that there's
something unique to match against for the density limit.

also, made jungle trees use the same biome settings as giant tree ferns
2015-08-14 14:40:45 -04:00
Chris Routh
8276d82bac Add default:dirt_with_dry_grass to acacia_biome. 2015-07-19 16:44:22 -04:00
Vanessa Ezekowitz
ff0df53829 add acacia trees
grows in the desert near the edges of the biome
2014-08-24 03:14:08 -04:00
Vanessa Ezekowitz
4184caa641 removed all code that tries to disable default trees because the minetest dev
team is being completely obstinant about letting me properly disable them from
this mod.

Instead, made beech trees respond to enable flags in settings.lua (disabled by
default).  If you want beeches, turn that flag on in settings.lua and remove
the "trees" flag from yourworld/map_meta.txt in the mg_flags line.
2013-04-08 22:54:22 -04:00
Vanessa Ezekowitz
6d74d09c9d Added support for spawning small fir trees in snow biomes. Made jungletrees
and palms require at least +15°C to grow.  This is supposed to keep them away
from snow biomes, but the engine doesn't let me tell the snow mod to always
run first.  Also please note that due to the load that snow biomes + moretrees
adds to the map generator, well... stuff will look cut off, broken, etc. due
to bugs in the map generator.
2013-02-23 12:34:01 -05:00
Vanessa Ezekowitz
bc86a3e2ab made jungle trees more numerous and able to spread further from water, took
leaves out of the avoidnodes table, there's really no reason to have them
there and having them causes too much spacing between trees.  Reduced the
prevalence of sequoias.
2013-02-20 12:01:47 -05:00
Vanessa Ezekowitz
bf4d4929f7 made leaves drop saplings at a lower rate (was 1/20, now 1/100) 2013-01-30 21:51:18 -05:00
Vanessa Ezekowitz
7118057c6b added an additional density control to the tree biomes to further limit how
many nodes have to be checked before a tree can spawn. This causes trees to be
just a tad more sparse than intended, but greatly speeds up the map generator.

Worst case drops from thousands of nodes to test per tree type to a 5-15 nodes
per tree type.
2013-01-21 23:43:15 -05:00
Vanessa Ezekowitz
71e0fce57a Added fir cones, more tweaks to weed out old conifer/jungletree refs.
Changed fir models so that they include the new cones.
2013-01-21 21:08:11 -05:00
Vanessa Ezekowitz
d37d847fdd Added sapling spawning, tuned rarity of some of the trees. 2013-01-20 13:38:23 -05:00
Vanessa Ezekowitz
0125bc13b9 changed default rarity in example at top of biome_defs.lua to 50. 2013-01-20 12:35:29 -05:00
Vanessa Ezekowitz
8cf7f09b0f Added rarity control to biomes, all default to 50% for now. 2013-01-20 12:01:33 -05:00
Vanessa Ezekowitz
2c3345aa04 Enabled several new types of trees, all spawned at mapgen time!
This code will slow the map generator down a little due to bugs therein, and is
generally still in the experimental stages, but it works and is actually quite
fast!
2013-01-20 00:59:42 -05:00
Vanessa Ezekowitz
1bd0afbc84 Working on adding a whole new set of trees to the mod
Most of the added code written by RealBadAngel
Also adds a couple of additional biome controls to jungle trees and conifers.
Also adds a text file describing the biome settings in a human-readable manner.

At present, this doesn't actually add anything new, it just refactors the
code to allow for more trees, and adds a bunch of biome definitions, tree
models, textures, etc. but no code to use them, yet.
2013-01-19 23:26:16 -05:00