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

User avatar
yzelast
Member
 
Posts: 43
Joined: Sun Oct 02, 2016 01:18
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: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

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: 707
Joined: Thu Jun 19, 2014 19:49
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: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

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

by D00Med » Sat Dec 31, 2016 20:12

That's really cool
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

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

by ManElevation » Sun Jan 01, 2017 12:15

wow thats a great idea
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 

User avatar
yzelast
Member
 
Posts: 43
Joined: Sun Oct 02, 2016 01:18
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: 43
Joined: Sun Oct 02, 2016 01:18
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: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

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

by KCoombes » Sun Jan 01, 2017 23:43

Fantastic work! +10
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

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

by ManElevation » Mon Jan 02, 2017 00:29

great!!
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
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.
 

User avatar
yzelast
Member
 
Posts: 43
Joined: Sun Oct 02, 2016 01:18
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: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

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

by KCoombes » Mon Jan 02, 2017 23:42

Thank you again :)
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 43
Joined: Sun Oct 02, 2016 01:18
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: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

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

by KCoombes » Fri Jan 06, 2017 13:04

Amazing! +10 again
 

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

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: 43
Joined: Sun Oct 02, 2016 01:18
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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

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

by azekill_DIABLO » Mon Feb 27, 2017 12:21

it's absolutly awesome! it will be added to voxellar!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
ErrorNull
Member
 
Posts: 94
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: 43
Joined: Sun Oct 02, 2016 01:18
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: 94
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: 2344
Joined: Sun Jan 18, 2015 13:02
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: 43
Joined: Sun Oct 02, 2016 01:18
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: 1313
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
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 43 guests

cron