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

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

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

by yzelast » Post

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.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by KCoombes » Post

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

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by Desour » Post

nice and cute!
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

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

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

by D00Med » Post

That's really cool
Look! I have a signature :]
My subgame: viewtopic.php?f=15&t=14051#p207242

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

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

by ManElevation » Post

wow thats a great idea
My Public Mods! Discord: Rottweiler Games#3368

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

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

by yzelast » Post

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.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by yzelast » Post

Aspen tree is now supported!

Image
Last edited by yzelast on Thu Jan 05, 2017 18:50, edited 2 times in total.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by KCoombes » Post

Fantastic work! +10

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

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

by ManElevation » Post

great!!
My Public Mods! Discord: Rottweiler Games#3368

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

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

by jordan4ibanez » Post

That's really cool!
hello, am program. do language in rust. make computer do. okay i go now.

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

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

by yzelast » Post

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.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by KCoombes » Post

Thank you again :)

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by Desour » Post

Nice!
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

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

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

by yzelast » Post

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 :)
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by KCoombes » Post

Amazing! +10 again

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

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

by Sokomine » Post

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: 54
Joined: Sun Oct 02, 2016 01:18
GitHub: yzelast
In-game: yzelast
Location: Far Far Away

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

by yzelast » Post

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.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by azekill_DIABLO » Post

it's absolutly awesome! it will be added to voxellar!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ErrorNull
Member
Posts: 271
Joined: Thu Mar 03, 2016 00:43
GitHub: ErrorNull0

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

by ErrorNull » Post

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: 54
Joined: Sun Oct 02, 2016 01:18
GitHub: yzelast
In-game: yzelast
Location: Far Far Away

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

by yzelast » Post

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.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

User avatar
ErrorNull
Member
Posts: 271
Joined: Thu Mar 03, 2016 00:43
GitHub: ErrorNull0

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

by ErrorNull » Post

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
GitHub: ABJ-MV
In-game: ABJ
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.

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

by ABJ » Post

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: 54
Joined: Sun Oct 02, 2016 01:18
GitHub: yzelast
In-game: yzelast
Location: Far Far Away

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

by yzelast » Post

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.
G84mU6AQ9dKaNhxn6dq8P5C0y5r8NssE

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

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

by burli » Post

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: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

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

by Phoenixflo44 » Post

Really coooooooooooooooooooooooool :-)
Spoiler
I hate my life

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 20 guests