[V0.1] "Another Tree Mod"

I am interested in adding whole new trees of course. New trees on new spots. Replacing the vanilla ones is easy. :blush:
Where exactly do you add the new trees in the landscaper.lua?

If it’s any help, I could recommend reading Jelly’s landscaper part, including its documentation. I don’t think that too many things changed there and you should be able to see some of the code before it was minimized. At the very least, you can get some ideas on what to incorporate.

I will read that and see if it still holds, thanks.

Another Tree Mod, Version 0.1

  • Adding the Ash Tree (2 looks)
  • Adding the Silver Birch Tree (2 looks)
  • Adding new looks for the Oak Tree (2 looks)
  • Adding new looks for the Juniper Tree (2 looks)
  • Adding saplings and replaceable trees

Download: [click me][1]

Have fun!
[1]: Dropbox - Error

4 Likes

looks nice :thumbsup: :thumbsup:

1 Like

[quote=ā€œMiturion, post:25, topic:7922ā€]
looks nice[/quote]
Happy to hear that =)

Huzzah! Our mods don’t crash each other :smile:

2 Likes

hey @Programmierer you somewhat gave me inspiration to do my own Taklu’s Tree Variants and I was wondering if you could help me when I get around to adding the different trees to the landscaper I’m just jumping into modding :smile:

Hey @taklu
Sadly I don’t have much time right now because I’m switching between illness and work stress, so I don’t have the possibility to go in detail. Just download and go into the landscaper.luac and look for the following variables ash/birch. That are new trees and if you search them, you will find all positions where you have to change something.

In short the landscaper using the value of a tree variable like local oak=ā€˜oak_tree’ and picking it out of the local tree_types. Adding a value from local tree_sizes and combining it to the tree name. The definition of these is all found in the second line. Just look for these variables and you will find the changes.

The second step is to finally tell the landscaper how to pick a tree and thats happens in the function Landscaper:_get_tree_type. There you can find the different terrains and the tree chances. For now I just changed the the trees which are picked in the different terrains. I also added some biome-features, but these aren’t in the actual version. So just play a bit around with the pick of the trees, add new trees du the manifest.json and you’re done.

Modding is just about playing around right now^^

2 Likes