Quality Farming


You can now farm plants that are affected by quality. Modded plants are supported! Includes optional setting to tint quality plants to match their quality color.

Content
13 days ago
2.0 - 2.1
853
Manufacturing

g is it possible to use ```on_tower_mined_plant``` instead?

1 year, 12 days ago

not sure which one would be more performant but maybe it's less janky to not use single tick spoiling items

1 year, 11 days ago

So I am going with single tick spoiling items for two main reasons.
- When I started this mod 8 months ago, the on_tower_mined_plant event did not exist, and therefore completing this mod wasn't possible. All I was able to do was create the harvesting aspect of the mod, and not the planting. Without that event, I had to get creative to get minable quality items.
- If I were to detect when a plant is mined in some form (towers, players, robots, scripting) then I have to detect every possible way of breaking the plant and then deal with the corresponding mining results in however many ways that may take. If a player mines it, then put the result in the tree. If a robot mines it, spill it onto the ground, if a tower mines it, put the quality items into the output. Point is, there is a lot more to account for if I were to use events rather than single tick spoiling items.

1 year, 11 days ago

Oh, that makes a lot of sense, haven't considered the breaking method part

1 year, 4 days ago

Additionally, the single tick spoiling items do actually trigger an event when they spoil, which is how I am able to replace them with the real quality items

New response