Agricultural Tower has no on_events

Place to get help with not working mods / modding interface.
MichaelMichael
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Nov 21, 2024 11:44 pm
Contact:

Agricultural Tower has no on_events

Post by MichaelMichael »

Hi all,

I am trying to make a mod that allows planting of quality seeds to retrieve quality fruits.

This has turned out difficult because the harvestable trees are of type "plant" which cannot be assigned a quality as they are not items, and I suspect only plants are used by the agricultural tower to automatically harvest them.

Stuck at an impasse I figured maybe if I make the agricultural-tower have module slots, or force its quality on whatever fruit it gathers (a legendary Ag tower would output legendary fruit as an example)

However I can't seem to find any on_robot_mined_entity etc that the agricultural tower uses when its harvested its surrounding plants?

I am new to modding, and I fear I might of bitten off a complexity here that I wasn't expecting. I am new to Lua, but an experienced coder otherwise.

Does anyone have some advice, and or alternative ideas of how to get this mod made?

- Needs to use the quality system (even more than 5 qualities are added by other mods)
- Somehow needs to allow the harvesting of quality fruit
- Preferably by planting seeds of desired quality to harvest quality fruits
- Alternatively by using the quality of the Ag Tower
- Alternatively by adding module slots to the Ag tower which could accept productivity/quality mods, and thus increase quality of its outputs.
- Alternatively by an infinite research, which increases the chance of quality fruits harvested by Ag tower.

Trees being plant entities, and not even inherited from items is really throwing a spanner in the works!

Many thanks
MichaelMichael
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Nov 21, 2024 11:44 pm
Contact:

Re: Agricultural Tower has no on_events

Post by MichaelMichael »

As an update:

I was not able to find a reasonable system for having plant prototypes convey their quality when harvested.

However, I have made a mod, which I think is really in keeping with the base game, and is called quality-seeds, it will be uploaded shortly, have a look!
MichaelMichael
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Nov 21, 2024 11:44 pm
Contact:

Re: Agricultural Tower has no on_events

Post by MichaelMichael »

Heres a link to the new mod!

https://mods.factorio.com/mod/quality-seeds

If anyone finds a way to make Trees actuallyretain their quality, let me know please!
Post Reply

Return to “Modding help”