Event for when a agri-tower prototype plants trees?

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
AshenEngineer
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Dec 11, 2024 11:31 pm
Contact:

Event for when a agri-tower prototype plants trees?

Post by AshenEngineer »

:space-age:
I'm looking at on_robot_built_entity and on_built_entity , but it seems there isn't an event that runs when the agricultural tower plants a tree. - It would be nice to have for controlling the properties of planted trees.

This would allow, for example, if a mod wants to change properties for a tree entity based on the soil it's planted on.
s6x
Inserter
Inserter
Posts: 39
Joined: Fri Nov 15, 2024 8:22 pm
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by s6x »

This would be nice to have.

Right now, the best we can do is scan the area around agricultural towers, which is how Diversitree works, but an event would be a big improvement.
Last edited by s6x on Thu Dec 12, 2024 4:30 am, edited 1 time in total.
curiosity
Filter Inserter
Filter Inserter
Posts: 570
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by curiosity »

Does a created effect on tree not work?
s6x
Inserter
Inserter
Posts: 39
Joined: Fri Nov 15, 2024 8:22 pm
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by s6x »

Works great, actually! :mrgreen: Thanks.
AshenEngineer
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Dec 11, 2024 11:31 pm
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by AshenEngineer »

I guess that works, I was struggling to understand the api docs. - It's probably enough to use triggers then.
User avatar
MaxAstro
Inserter
Inserter
Posts: 32
Joined: Sun Nov 09, 2014 7:53 am
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by MaxAstro »

Still seems like an event would be helpful, since it would presumably pass the tower that did the planting and save needing to find it.

In fact, if the event also passed the item that was planted, that would allow for quality plantables - you could check if the seed was quality and if so replace the tree with a quality tree.
"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark Twain

"True friends stab you in the front." - Oscar Wilde
curiosity
Filter Inserter
Filter Inserter
Posts: 570
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by curiosity »

The tower is a good point, in case there is overlap.
MaxAstro wrote: Thu Dec 19, 2024 7:49 pm In fact, if the event also passed the item that was planted, that would allow for quality plantables - you could check if the seed was quality and if so replace the tree with a quality tree.
Seems to me like you should instead ask for plants to have quality.
User avatar
MaxAstro
Inserter
Inserter
Posts: 32
Joined: Sun Nov 09, 2014 7:53 am
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by MaxAstro »

curiosity wrote: Thu Dec 19, 2024 8:02 pmSeems to me like you should instead ask for plants to have quality.
Seems to me like you should check the Not Going to Implement forum, unfortunately. :(
"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark Twain

"True friends stab you in the front." - Oscar Wilde
curiosity
Filter Inserter
Filter Inserter
Posts: 570
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Event for when a agri-tower prototype plants trees?

Post by curiosity »

MaxAstro wrote: Fri Dec 20, 2024 2:35 pm Seems to me like you should check the Not Going to Implement forum, unfortunately. :(
You mean viewtopic.php?f=221&t=124708 ? That would be funny, because boskid all but spelled out what I suggested.
Post Reply

Return to “Modding interface requests”