Add custom tooltips for ingredients and products, similar to quality-related tooltips

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
MeteorSwarm
Inserter
Inserter
Posts: 49
Joined: Thu Sep 25, 2025 10:49 pm
Contact:

Add custom tooltips for ingredients and products, similar to quality-related tooltips

Post by MeteorSwarm »

Factorio 2.1 introduced more specific quality effects for individual products in recipes, including tooltips for individual products.
07-28-2026, 10-08-59.png
07-28-2026, 10-08-59.png (99.96 KiB) Viewed 306 times
Now that on_crafted events are capable of performing effects on crafting recipes in a relatively performant way, it's possible to do effects that would benefit from ingredient and product tooltips, similar to the tooltips added for quality changes. The example that comes to mind is the following: An input ingredient acts as a catalyst for a crafting recipe, and it only has a 10% chance of being consumed on craft. To achieve this effect, the recipe would be given an on_craft effect that has a 90% chance of adding a copy of the ingredient to the machine's input inventory. This catalyst ingredient would have a tooltip saying the ingredient has a "90% return chance."
User avatar
Thremtopod
Long Handed Inserter
Long Handed Inserter
Posts: 56
Joined: Wed Nov 06, 2024 8:52 pm
Contact:

Re: Add custom tooltips for ingredients and products, similar to quality-related tooltips

Post by Thremtopod »

+1

Rigor Module would definitely benefit from this this. The recipe-level tooltip that Rigor Module uses visible in the screenshot MeteorSwarm attached; it works, but it'd be more straightforward to have the tooltip on the product itself.

This could also benefit PlanetsLib, which adds some recipe-level tooltips for product freshness (e.g. always_fresh). And it'd be beneficial to have the ability to add tooltips for other non-obvious properties like spoil_weight too.

In Planet Crucible, there's a recipe that uses reset_freshness_on_craft, spoil_weight, and ignored_by_productivity (and it has a rigor module tooltip). None of these properties necessarily needs a tooltip on its own, but the way they interact can be pretty complex.
MeteorSwarm
Inserter
Inserter
Posts: 49
Joined: Thu Sep 25, 2025 10:49 pm
Contact:

Re: Add custom tooltips for ingredients and products, similar to quality-related tooltips

Post by MeteorSwarm »

Here's a working prototype of my custom recipe property.
07-28-2026, 14-06-46.png
07-28-2026, 14-06-46.png (95.9 KiB) Viewed 251 times
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 539
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Add custom tooltips for ingredients and products, similar to quality-related tooltips

Post by protocol_1903 »

+1
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 496
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Re: Add custom tooltips for ingredients and products, similar to quality-related tooltips

Post by Stringweasel »

+1

SE would benefit from this. There's some of our recipes that should have complex product probabilities. And the only reason we didn't do it is because the tooltip don't provide good player feedback. A tooltip on the tooltip could help clear things up for the player.
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
Post Reply

Return to “Modding interface requests”