Page 1 of 1
Event for when a agri-tower prototype plants trees?
Posted: Wed Dec 11, 2024 11:48 pm
by AshenEngineer
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.
Re: Event for when a agri-tower prototype plants trees?
Posted: Thu Dec 12, 2024 2:05 am
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.
Re: Event for when a agri-tower prototype plants trees?
Posted: Thu Dec 12, 2024 2:48 am
by curiosity
Does a created effect on tree not work?
Re: Event for when a agri-tower prototype plants trees?
Posted: Thu Dec 12, 2024 4:30 am
by s6x
Works great, actually!
Thanks.
Re: Event for when a agri-tower prototype plants trees?
Posted: Thu Dec 12, 2024 11:36 pm
by AshenEngineer
I guess that works, I was struggling to understand the api docs. - It's probably enough to use triggers then.
Re: Event for when a agri-tower prototype plants trees?
Posted: Thu Dec 19, 2024 7:49 pm
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.
Re: Event for when a agri-tower prototype plants trees?
Posted: Thu Dec 19, 2024 8:02 pm
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.
Re: Event for when a agri-tower prototype plants trees?
Posted: Fri Dec 20, 2024 2:35 pm
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.
Re: Event for when a agri-tower prototype plants trees?
Posted: Fri Dec 20, 2024 4:56 pm
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.