Hi guys, this is my first playable mod so dont't expect a lot.
It adds stages of growth to minetest trees so they don't grow direct from sapling to tree.
Known problems:
if a sapling is planted very close to a wall, some leaves will appear on the other side, if i has space
some leaves stop falling correctly for some reason, making me duplicate the leaf abm to "fix"
Features:
there are 3 stages between the sapling and the full tree
the growing time differs on each tree
small trees can be harvested but gives less wood than a full tree
they grow only with in sunlight
License:
Code: WTFPL
Textures: CC BY-SA 3.0
Dependences :
default
Changelog
0.1:
Initial release
apple tree was supported
0.1.1:
apple tree destroy a little less blocks
0.2:
pine tree is now supported
the functions of light and space detection improved a lot,which means zero blocks destroyed by trees :)
apple trees now have apples(i had forgotten to add,my bad)
0.3
aspen tree is now supported
leaf falling abm will search for its own trunk now
1.0
major folder structure improvements,no more files with thousand lines
jungle tree added
acacia tree added
1.0.1
the growth time was set to 5 seconds due to debug purposes,fixed now
1.1(complete changelog on last post)
major internal changes
number of schematics reduced by half
some missing features were added,like sounds and textures
Hi guys,i'm here to announce that the real trees mod have reached the 1.0 version.
I reached my goal with this mod, so there will be less updates from now, the next update will only fix the last issues i've found.
furthermore,the jungle and acacia trees was finally added.
Last edited by yzelast on Thu Jan 05, 2017 18:51, edited 1 time in total.
It's time for a HUGE update!!Most of the changes were internally but there are a few gameplay features too.
As a lot of small things changed,the changelog will be divided between "gameplay changes" and "internal changes".
Gameplay changes:
the large apple tree height were increased by 1 to look less smaller at side of a full apple tree
the pine tree height has reduced by 3 nodes to look better at side of smaller ones
the top leaf of the small aspen tree were removed, didn't look well with the other aspen trees
the small apple tree gained some corner leaves to look more like the other trees
the custom trees can now be used as fuel,respecting the default burn time of the trees
the time of growing was considered increased,at least 3x more longer,but the trees now give 2x more wood
each tree now have its own time growth,using the burn time of trees as base
by example, the small aspen tree has 5.5 minutes of burn time, so the sapling will grow in 5.5 minutes * 1,the next stage will grow in 5.5 * 2, next in 5.5 * 3 and so on
even if the tree don't use it on its growth, some leaves were added so all the trees have the same number of custom leaves
node sounds were added
all the trees(and leaves) now can be rotated
textures for the trees were finally added so now they have borders
an alternative jungle wood texture were added to "fix" that strange rounded corner
Internal changes
the trees now use 50% less schematics to grow, thanks to a new function that is able to handle the space without destroying nodes
some node names were changed to fit better with similars (e.g: "slab pine needles" were changed to "pine needle slab")
the old functions that were merged with the tree folders received minor improvements
a small "config" file were added allowing the change of each tree's growth time
the screenshots folder were moved to another repository, reducing insanely the mod's folder size
the tree growth abms were greatly improved,now it will has much less nodes to scan,and will not create "accidental" trees as could happen in earlier builds
all the functions used by the trees were divided and moved for each tree folder,meaning that all the trees are now independent ,making much easier(to me at least) to add new features,new trees and fix something wrong
all the leaves now use the default leaf falling abm, but some of the leaves are not falling by some reason..but another abm were added to "fix" the remaining leaves
the code had some changes to get closier to the lua codestyle guidelines
Now i think that the mod improved enough to allow me focus on new features and less on tweaks, so expect new things for the next release :)
Is there a way to stop a small tree from growing larger? The smaller versions could be used for decorative purposes, placed inside a flower pot with limited space for the roots.
Would be easy to add an pot to control the growth, in the past i thinked about adding a way to control the size but never decided how. A way of control the tree size will exist for sure but will be added later.
Currently i'm focusing in the death and spread of the trees so it will take a while to a new version.
Maybe in a month i will have an update, it'll depend the time i take to rewrite the code to make it at least decent and to add the new features.
The only problem that could happen is that the leaves will not fall. In a few hours after the 0.4.16 release this will be fixed, don't worry about this.
I have an idea. (though IDK if it will work)
How about starting to place nodes 1 by 1, checking if the space allocated for the next node is empty, and if not, don't place?
The trees are placed with simple schematics, so i don't think it's possible or viable to check node by node. Probably i will just not allow a tree grow close a wall. In fact, the code i'm working now doesn't allow this problem to happen.
You should use Lua schematics instead of mts. Makes a lot of things easier and I don't think it is slower while mapgen. Only loading time is a little bit slower, but once it is in memory both schematics are equal