1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-11-05 09:50:34 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
Vanessa Ezekowitz
e7f2beda39 use current intllib API 2014-12-27 01:06:09 -05: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
652baa7b32 don't register snow:sapling_pine if snow mod isn't installed 2014-08-15 00:49:27 -04:00
Vanessa Ezekowitz
bb1b668f8f phase out the old clone_node call. use minetest.override_item() instead. 2014-07-30 14:53:27 -04:00
Xanthin
7b32c392cf add support for intllib translation mod 2014-03-20 01:31:23 +01:00
Vanessa Ezekowitz
abb5dd3550 oops, forgot to remove the call to load the old ownership.lua file 2014-01-30 16:13:28 -05:00
Vanessa Ezekowitz
621dc7eb44 fix crash? 2013-11-14 20:46:36 -05:00
Vanessa Ezekowitz
e1baf2018b Made it possible via moretrees config to force all moretrees, default, and
default jungle tree leaves to be plantlike drawtype.

The default setting is now plantlike.  Change moretres_settings.txt in
your world folder if you don't like it.

Rearranged a bit of code to accommodate this.
2013-11-14 18:05:37 -05:00
Vanessa Ezekowitz
620a799fb4 Moretrees' trunks can now be turned sideways when placing,
using minetest.rotate_and_place()

Requires Minetest git commit 1d856b73 or later.
2013-11-07 21:01:09 -05: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
dbf775808a always read default_settings.txt before reading the world-folder's settings file
also close the file after copying.
2013-08-05 04:58:08 -04:00
Vanessa Ezekowitz
c277590fc2 Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz
c1a5cf776b Update 2013-04-17: Got rid of horizontal jungle tree trunk, aliased it
to the one in the moreblocks mod.  Got rid of jungle tree planks recipe,
default already has it.  But that's not the important part...

Acorns, fir/spruce/pine cones, and coconuts are now edible!

Fir/spruce/pine cones can be cooked to extract fir/spruce/pine nuts.  One cone yields 4 portions of nuts, each of which heals 1/2 heart.

Coconuts can be broken apart to get milk and raw coconut solids (e.g. the "meat").  Craft one coconut, one drinking glass, and one cutting tool (*see below).  Yields one portion of coconut solids, one glass full of coconut milk, and the tool is returned.  The coconut milk heals 1 heart and returns the empty glass, while one portion of coconut solids heals two hearts.

Coconut milk can be crafted with four acorns to produce acorn muffin batter.  One portion of this batter can be cooked into four acorn muffins.  Each muffin restores two hearts.

Enjoy :-)

-----
* Since Minetest doesn't have any default cutting tools that would normally be suitable for this purpose, the following tools may be used instead to cut the coconuts open:

Default bronze, diamond, Mese, or steel axe,
...or... glooptest Alatro or Arol axe,
...or... moreores Mithril or silver axe,
...or... titanium axe.

(note that stone and wooden axes are deliberately not usable)
2013-04-17 19:30:17 -04:00
Vanessa Ezekowitz
85e07fb787 forgot to test if the file can be read the second time the mod is run.
Should be fixed now.
2013-04-09 00:32:15 -04:00
Vanessa Ezekowitz
8a1ebec951 Made settings world-specific - look for moretrees_settings.txt in your world
folder.  If it isn't found, the mod will create it with the contents of
default_settings.txt and then read those default settings and use them.
Otherwise, it will read its settings from the world folder.
2013-04-09 00:15:24 -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
4c198fad78 Multiple changes, see below:
Fix replacement of default trees so that it works correctly.  Beeches
now use default tree nodes, but L-systems models.  This redefines the
default tree, wood, leaves, and saplings so that they use moretrees'
textures "Beech" in their descriptions, but only if replacement of
default trees is enabled.

Added backward-compat aliases for this change.

Moved tree replacement mapgen->air aliases to a more logical spot in the
code.

Also, changed out all leaf decay dig_node() calls for nodeupdate(), since the
former calls the latter anyway, and the latter is what does the job.

Increased the palm leaf decay radius to 12.
2013-04-07 22:09:18 -04:00
Vanessa Ezekowitz
d877bd51bb Added settings to enable/disable each tree type, all default to enabled. 2013-04-06 17:21:11 -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
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
Vanessa Ezekowitz
a0af3f26de added the ability to redefine apples so that they'll fall when nearby leaves
disappear (defaults to true).  Moved leafdecay code into its own file.  Moved
sapling configs into settings.lua
2013-02-11 12:23:05 -05:00
Vanessa Ezekowitz
1445263d73 Added ability to do leaf decay on default trees, moved several configuration
settings into a separate file.  You should disable leaf decay in minetest_game
if you enable it here.
2013-02-11 12:09:17 -05:00
Vanessa Ezekowitz
c745c613af tuned leaf decay somewhat - palms need a separate ABM because they have such
wide leaves.
2013-02-11 00:27:58 -05:00
Vanessa Ezekowitz
966c5fc4b0 added leafdecay, fixed broken birch sideways trunk recipe, made all cones +
apple fall when they have nothing to hang onto.
2013-02-11 00:09:53 -05:00
Vanessa Ezekowitz
0e10584a69 forgot to reset sapling growth to normal speed 2013-01-26 14:32:22 -05:00
Vanessa Ezekowitz
4db9b3076d Modified tree generation and sapling growth calls
to comply with new plantlife API

In addition to that, there have been numerous other, smaller changes:

* Tweaked palm tree model to add coconuts

* Tweaked size of all "fruit" items (really just cones).  Rotated their images
  in inventory and wield.

* Changed descriptions of sideways trunks to "Sideways Xxxx Trunk"

* Tweaked names of jungle tree leaves to be Jungle Tree Leaves (Xxxx)

* Moved jungletree trunk, sideways trunk, sapling into nodedef loop

* Renamed trunks and trunk tops to bear "_trunk" and "_trunk_top" in their
  filenames.

* Added copies of default jungle tree trunks and tops, with naming similar to
  the above change.

* Re-arranged init.lua to put all leaves/needles definitions in one place.

* Deleted some outdated textures.

* combined leaves definitions back into main loop with an exception for
  jungletrees (if that one is called for, it is skipped, because leaves for
  those trees are explicitly defined later)

* Made all leaves drop saplings when dug, 1/20 chance.

* Added leafdecay radii to main tree table but disabled the use of it.  To be
  implemented in the future.  Disabled leaf decay for firs.
2013-01-25 16:10:28 -05:00
Vanessa Ezekowitz
df59dee090 fixed a bug where firs sometimes drew as trunks + cones 2013-01-22 11:29:20 -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
466fb89ec1 Forgot some references to the old jungletrees and conifers nodes
when I was weeding out the legacy names and textures.  This should fix
the last of it.
2013-01-21 20:50:41 -05:00
Vanessa Ezekowitz
1b14c24ea1 weeded out all the old node and texture names from jungletree and conifers
mods, added aliases for backwards compatibility.

All nodes are named
moretrees:something_sapling,
moretrees:something_trunk
moretrees:something_leaves
moretrees:something_planks

Also, added sideways trunks for all trees and crafting recipes for them, plus
added in the missing trunks -> planks recipes.
2013-01-21 20:31:28 -05:00
Vanessa Ezekowitz
399671141a disabled beech trees 2013-01-20 15:01:30 -05:00
Vanessa Ezekowitz
8952d61c06 set sapling interval/chance to their defaults, enabled beech
tree code which replaces the default trees.
2013-01-20 14:53:42 -05:00
Vanessa Ezekowitz
d80cfb4a7f Made surface-based sapling growth depend on surface value
in each tree's biome
2013-01-20 14:45:45 -05:00
Vanessa Ezekowitz
cd188b8ad2 typo 2013-01-20 14:17:04 -05:00
Vanessa Ezekowitz
2fff77f195 Added tweak to make sure planted saplings only grow on the same surfaces as
they would normally spawn on.
2013-01-20 14:15:33 -05:00
Vanessa Ezekowitz
70940adb50 fixed birch and spruce always appearing above their planted saplings 2013-01-20 14:04:10 -05:00
Vanessa Ezekowitz
59bfc5ea51 disable debugging info, set sapling growth values to normal
(interval = 500, chance = 10)
2013-01-20 13:51:34 -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
e46586a58d updated the date in init.lua 2013-01-20 01:39:00 -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
Vanessa Ezekowitz
c4f79a76cd just tweaks to the names of some table entries. 2013-01-19 02:10:01 -05:00
Vanessa Ezekowitz
103d75886e Transition trees to only spawn at mapgen time instead of using abms
(growing from saplings still uses an abm, however).
2013-01-19 00:45:03 -05:00
Vanessa Ezekowitz
59a6323ceb make trees spawn as saplings only at mapgen time
...rather than using an abm to do so (abms are still used to grow them from
the spawned saplints)
2013-01-18 21:35:39 -05:00
Vanessa Ezekowitz
a275fd876f fixed a bug in conifers generation - I left out a few variable slots
so some of the last few variables were being set wrong.
2013-01-13 20:37:05 -05:00
Vanessa Ezekowitz
41501b668d made jungle trees spawn farther apart (was 8, now 15 nodes). Made them need
to be closer to water (was radius 30, now 15).  Made them grow only at lower
elevations (was -5 to +15, now -5 to +10).
2013-01-11 19:36:04 -05:00
Vanessa Ezekowitz
f05480d78d Added feature to check for air surrounding a tree's target spawn location, so
that trees won't grow on top of stuff line rails, other plants, etc.  Also
helps keep them from growing half-way into a wall.
2013-01-11 11:54:41 -05:00
Vanessa Ezekowitz
c679cf94b7 made all trees require default:dirt_with_grass in all 8 of the nodes that
surround the spawn point (to keep them from spawning in a desert->grass
transition area).
2013-01-11 11:18:40 -05:00
Vanessa Ezekowitz
750e3aa6ee Added more variety to jungle trees and conifers shapes
Also improved the look of both a little bit, and re-balanced the spawn/growth
chances, and reduced the wait time sicne we're not using a ton of code to do
this anymore.

Also made the spawn routine clear out any leaves that are in the way of a
spawning tree's trunk, so the trunks don't look like they've been cut by
leaves.
2013-01-11 10:29:38 -05:00
Vanessa Ezekowitz
e5706b8cdd typo 2013-01-09 23:24:08 -05:00