[Mod] [Real Trees] [real_trees] [1.1]

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

[Mod] [Real Trees] [real_trees] [1.1]

by yzelast » Fri Dec 30, 2016 21:38

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

Image

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

Download or browse the code:https://github.com/Yzelast/real_trees
Last edited by yzelast on Thu Jan 05, 2017 19:43, edited 11 times in total.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

KCoombes
Member
 
Posts: 403
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt

Re: [Mod] [Real Trees] [real_trees] [0.1.1]

by KCoombes » Sat Dec 31, 2016 13:24

This is fantastic! I will be keeping a close eye on this mod. +10
 

User avatar
DS-minetest
Member
 
Posts: 1021
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] [Real Trees] [real_trees] [0.1.1]

by DS-minetest » Sat Dec 31, 2016 16:11

nice and cute!
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
D00Med
Member
 
Posts: 937
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med
 

User avatar
ManElevation
Member
 
Posts: 893
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [0.2]

by yzelast » Sun Jan 01, 2017 17:26

Pine tree was added :) although i think the full tree is looking unproportional with the others(or the others are smaller, who knows?)

Besides that,the trees will no more destroy blocks on its way(only leaves can be destroyed)

Image
Last edited by yzelast on Thu Jan 05, 2017 18:49, edited 2 times in total.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [0.3]

by yzelast » Sun Jan 01, 2017 21:48

Aspen tree is now supported!

Image
Last edited by yzelast on Thu Jan 05, 2017 18:50, edited 2 times in total.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

KCoombes
Member
 
Posts: 403
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt
 

User avatar
ManElevation
Member
 
Posts: 893
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
 

User avatar
jordan4ibanez
Member
 
Posts: 1893
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Re: [Mod] [Real Trees] [real_trees] [0.3]

by jordan4ibanez » Mon Jan 02, 2017 07:22

That's really cool!
If you can think it, you can make it! My Patreon :D
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [1.0]

by yzelast » Mon Jan 02, 2017 21:12

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.

Image

Image
Last edited by yzelast on Thu Jan 05, 2017 18:51, edited 1 time in total.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

KCoombes
Member
 
Posts: 403
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt
 

User avatar
DS-minetest
Member
 
Posts: 1021
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] [Real Trees] [real_trees] [1.0.1]

by DS-minetest » Tue Jan 03, 2017 11:40

Nice!
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [1.1]

by yzelast » Thu Jan 05, 2017 19:42

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
    Image

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 :)
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

KCoombes
Member
 
Posts: 403
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [Mod] [Real Trees] [real_trees] [1.1]

by Sokomine » Sun Feb 26, 2017 02:33

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.
A list of my mods can be found here.
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [1.1]

by yzelast » Sun Feb 26, 2017 03:13

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.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

User avatar
azekill_DIABLO
Member
 
Posts: 7459
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
ErrorNull
Member
 
Posts: 199
Joined: Thu Mar 03, 2016 00:43

Re: [Mod] [Real Trees] [real_trees] [1.1]

by ErrorNull » Wed Mar 01, 2017 16:24

there have been dev updates coming with leaf decay ABM now based on LBM or node timers. will that impact this mod in any way?
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [1.1]

by yzelast » Wed Mar 01, 2017 18:37

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.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

User avatar
ErrorNull
Member
 
Posts: 199
Joined: Thu Mar 03, 2016 00:43

Re: [Mod] [Real Trees] [real_trees] [1.1]

by ErrorNull » Thu Mar 02, 2017 02:26

Very cool. Keep up the great work! To me having these different size trees are so important and make the game more realistic.
 

ABJ
Member
 
Posts: 3015
Joined: Sun Jan 18, 2015 13:02
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
GitHub: ABJ-MV
In-game: ABJ

Re: [Mod] [Real Trees] [real_trees] [1.1]

by ABJ » Tue Mar 07, 2017 08:43

About the "leaves vs wall" thing.

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?
 

User avatar
yzelast
Member
 
Posts: 53
Joined: Sun Oct 02, 2016 01:18
Location: Far Far Away
GitHub: yzelast
In-game: yzelast

Re: [Mod] [Real Trees] [real_trees] [1.1]

by yzelast » Tue Mar 07, 2017 10:46

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.
Have a free time? So check it out my mods: Real Trees and Wood Plus
 

User avatar
burli
Member
 
Posts: 1608
Joined: Fri Apr 10, 2015 13:18

Re: [Mod] [Real Trees] [real_trees] [1.1]

by burli » Tue Mar 07, 2017 11:00

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
 

User avatar
Phoenixflo44
Member
 
Posts: 600
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44

Re: [Mod] [Real Trees] [real_trees] [1.1]

by Phoenixflo44 » Fri Jul 28, 2017 18:24

Really coooooooooooooooooooooooool :-)
You can't see it here. I'm doing everything wrong anyway.
 

Next

Return to WIP Mods



Who is online

Users browsing this forum: gpcf, runs and 3 guests