Ardonel commented 4 days ago
VanessaE,
I am trying to understand the tree generation in the moretrees mod so I can add support for them to the Treecapitator mod. Is the file Tree_models.lua the file where you define the tree models? I had some of the capitating partially working, but I don't really understand how the moretrees trees are generated, so I am not sure how much changing needs to be done to the treecapitator mod to successfully capitate moretrees trees cleanly.
Thank you for your time.
VanessaE commented 4 days ago
Some of the models are defined there, while some are built up with some code in init.lua, using some simple decisions (e.g. jungletrees). Because of the built-in engine randomness of the spawn_tree() call being added to that, it's impossible to predict the shape of a tree, so you'll have to walk the tree nodes manually.
HybridDog,
If we are going to walk the tree, we could set up a table of single trunks and multi-trunks, and just walk up checking all 8 surrounding blocks for more of that particular tree/leave/fruit to change the border to include in capitation. It will still be interesting when two of the same type tree are close enough to mesh with each other.
Ardonel commented 4 days ago
VanessaE,
I am trying to understand the tree generation in the moretrees mod so I can add support for them to the Treecapitator mod. Is the file Tree_models.lua the file where you define the tree models? I had some of the capitating partially working, but I don't really understand how the moretrees trees are generated, so I am not sure how much changing needs to be done to the treecapitator mod to successfully capitate moretrees trees cleanly.
Thank you for your time.
VanessaE commented 4 days ago
Some of the models are defined there, while some are built up with some code in init.lua, using some simple decisions (e.g. jungletrees). Because of the built-in engine randomness of the spawn_tree() call being added to that, it's impossible to predict the shape of a tree, so you'll have to walk the tree nodes manually.
HybridDog,
If we are going to walk the tree, we could set up a table of single trunks and multi-trunks, and just walk up checking all 8 surrounding blocks for more of that particular tree/leave/fruit to change the border to include in capitation. It will still be interesting when two of the same type tree are close enough to mesh with each other.