Commit Graph

109 Commits

Author SHA1 Message Date
Vanessa Ezekowitz 050b19e463 Get rid of old ownership code, use Minetest's own code instead 2014-01-30 16:09:23 -05:00
Vanessa Ezekowitz b0a559ed0b Put all saplings into "sapling" group 2014-01-16 13:44:56 -05:00
Vanessa Ezekowitz 6498cf5ec0 incorrect check for drop rarity for palms 2014-01-13 05:22:27 -05:00
Vanessa Ezekowitz 61e2c96df7 make jungletree leaves wave (how the hell did I miss this?) 2013-12-25 04:20:51 -05:00
Vanessa Ezekowitz 0df62c3e35 local-ize several variables 2013-12-15 13:30:17 -05:00
Vanessa Ezekowitz d8752b308e oops, extra comma 2013-11-27 17:32:21 -05:00
Vanessa Ezekowitz dee888f7a8 oops, put that flag in the wrong place 2013-11-27 17:31:38 -05:00
Vanessa Ezekowitz 91779abef1 Add a metadata flag that's set when an empty rubber tree is placed in
the world (keeps it from regrowing into a full one)
2013-11-27 17:23:15 -05:00
Vanessa Ezekowitz e814cdcc7d Add waving=1 (equivalent) to all leaves nodes, but only when
regular cubic leaves are in use (the default).  This affects default trees
also.
2013-11-27 02:48:43 -05:00
Vanessa Ezekowitz a939fc1448 Clean up code that redefines default leaves and default jungle leaves
(it was redefining more stuff than was necessary).  As a side effect,
this fixes a bug where non-plantlike leaves were using the wrong
textures in the inventory.

Remove all of the previous waving leaves changes as the shader that provides
that feature is about to change in a way that will break what I had here.

Clean up code that sets default drawtype and visual_scale of leaves
2013-11-22 23:51:42 -05:00
Vanessa Ezekowitz d15ff706a2 Actually make the leaf waving work right 2013-11-21 20:33:02 -05:00
Vanessa Ezekowitz 374116bc6e Make leaves wave when shaders are on and regular cubical drawtype is selected. 2013-11-21 18:40:55 -05:00
Vanessa Ezekowitz 98d76a8ea1 fix crash when regular cubical leaves mode is enabled 2013-11-16 17:38:46 -05:00
Vanessa Ezekowitz d3e68b3149 Made all leaves draw as cubes in the inventory regardless of whether
they are plantlike or not in the world.  This has the side effect that a
dropped leaf block will look like a flat sprite.  Oh well, no other way
to fix it.

Adjusted the offset of the textures so that leaves place more accurately
in the world (blame this on the engine, it has no option for me to
adjust the precise vertical visual scale independently from the
horizontal scale, so I have to fake it with the textures).
2013-11-14 20:39:07 -05:00
Vanessa Ezekowitz 2a85996d00 fix incorrect clone_node() call 2013-11-14 18:47:20 -05:00
Vanessa Ezekowitz 15601c6c51 Use clone node method to redefine the default apple 2013-11-14 18:11:42 -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 88eb73af90 forgot to return the modified itemstack on empty rubber trees 2013-11-08 19:02:47 -05:00
Vanessa Ezekowitz 9870e92737 Oops, forgot to return the modified item stack 2013-11-07 22:06:27 -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 b320a7db8f All leaf decay values sped up a bit and palm leaf decay radius changed
to 15, by default (does not affect existing world - admins will need to
change the moretrees_settings.txt file manually, if so desired)

Palms make more saplings now. (Affects all worlds)
2013-10-02 13:43:50 -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 d32993e355 Made moreblocks dependency optional and configurable 2013-07-22 03:55:12 -04:00
Vanessa Ezekowitz 1377d69f54 adjusted apples to heal 1/2 heart to match defaults. 2013-07-21 12:30:09 -04:00
Vanessa Ezekowitz 1c5dd852f4 put wood planks stairs/slabs/micros/panels into separate groups (wood_xxxxx=1)
did the same for tree trunks (tree_xxxxx=1)
2013-07-04 23:03:40 -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 c41195acc8 deleted sideways, empty rubber tree trunk, added conversion abm for it 2013-04-26 20:12:22 -04:00
Vanessa Ezekowitz ae09c948ff get rid of sideways tree trunks and their stairs/slabs
Add conversion code to handle them.  Minor formatting fixes.
2013-04-24 08:54:48 -04:00
Vanessa Ezekowitz ea61c08ae0 Merge branch 'master' into newstuff 2013-04-18 18:28:34 -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 7a7ee2d168 Added alises for farming_plus rubber trees, added "empty" rubber tree trunk
for technic (also a sideways version).
2013-04-13 13:58:35 -04:00
Vanessa Ezekowitz 6184e4a4e8 technic has discontinued rubber trees in favor of this mod. Added some aliases
to cover old technic nodes.
2013-04-10 16:56:46 -04:00
Vanessa Ezekowitz 93248e883f Merge branch 'master' into newstuff 2013-04-10 14:32:06 -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 f13f83d9d1 Added stairsplus/circular saw support 2013-04-07 22:42:01 -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 0380556e71 Forgot to manually define sideways jungle tree trunks. 2013-03-19 17:32:16 -04:00
Vanessa Ezekowitz f100397cfd Jungle nodes are defined and used by minetest_game now,
so we don't need them in moretrees anymore.  They're still used by moretrees
to generate out versions of jungletrees, though, and red/green/yellow leaves
are also still provided and defined.
2013-03-19 17:01:09 -04: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 c854f526d4 put all tree leaves into leaves and moretres_leaves groups, fixed incorrect
inclusion of "tree" group for leaves.
2013-02-13 21:25:24 -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 9208a8bd75 forgot to account for legacy node name default:jungletree in leafdecay code 2013-02-11 11:07:44 -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 ff976f7151 Fixed missing facedir on horizontal trunks 2013-02-10 23:10:35 -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 b3fd739039 fixed another naming issue 2013-01-27 13:17:27 -05:00
Vanessa Ezekowitz 5bb78cd60f Fixed naming of planks 2013-01-27 13:06:42 -05:00
Vanessa Ezekowitz ddb17f7e35 fixed missing jungletree sapling alias 2013-01-25 16:36:14 -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 6dc817acb0 added wood planks for fir trees. 2013-01-22 12:58:16 -05:00
Vanessa Ezekowitz 44a79f96a2 fixed too-small images for some saplings and cones in inventory
and in world.
2013-01-22 12:51:04 -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 7f5b7065cb removed saplings, added leaves to avoidnodes list 2013-01-20 16:15:54 -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 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