Agriculture Tower On Events

MichaelMichael
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 21, 2024 11:44 pm
Contact:

Agriculture Tower On Events

Post by MichaelMichael »

There are currently no on event handlers for Agricultural towers. It would be nice to have an event fired for OnSeedPlanted for example, and OnTreeHarvested.
Such that mods could better access and alter the behaviors of the ag tower - for example changing the quality of harvested materials.

You can for example use the event for robots or the player to detect the planting of seeds, but not an agricultural tower for some reason - it could even reuse the robot one!

I tried to listen for any event that fires when the Ag tower harvests or places a plant, but could not find any, and there are none in the API docs. So please direct me to what to use if it exists already, and I am mistaken.

Cheers,
curiosity
Filter Inserter
Filter Inserter
Posts: 667
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Agriculture Tower On Events

Post by curiosity »

Events would be nice, but it sounds like you are skirting around asking for quality on plants instead of asking directly.
protocol_1903
Filter Inserter
Filter Inserter
Posts: 272
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Agriculture Tower On Events

Post by protocol_1903 »

Asking for events is much more freeing than asking for a very specific implementation detail that is more likely to be overlooked. +1 to the events.
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15880
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Agriculture Tower On Events

Post by Rseding91 »

I've added agricultural tower events on_tower_planted_seed, on_tower_pre_mined_plant, and on_tower_mined_plant for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”