Add surface_conditions on items - desintegrate if not met on surface change

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

Add surface_conditions on items - desintegrate if not met on surface change

Post by snouz »

Hi,

Feature
My suggestion is to add surface_conditions on items, structured the same as recipes or entities, but the effect would be that the item gets destroyed when changing surface.
Another possibility, maybe more optimized, would be to add "forbidden_items" in the planet properties. That way, the check doesn't even happen if the new surface doesn't have that property. This would even be easier for modders, who don't have to change vanilla items properties (potentially breaking compatibility)

Use case examples
- ice melting over a given temperature
- organic material being poisoned
- electric stuff being fried...

Why?
This would allow modders to put restrictions on imports, and thus allow for more restrictive challenges. It solves the fact that at a certain point, every additional planet becomes somewhat trivial when you can import everything.
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Rseding91
Factorio Staff
Factorio Staff
Posts: 16012
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add surface_conditions on items - desintegrate if not met on surface change

Post by Rseding91 »

This is simply not something the engine supports. Items have no idea when they are moved between surfaces and some items aren’t even on any surface.
If you want to get ahold of me I'm almost always on Discord.
meifray
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: Add surface_conditions on items - desintegrate if not met on surface change

Post by meifray »

snouz wrote: Fri Aug 15, 2025 11:36 am Hi,

Feature
My suggestion is to add surface_conditions on items, structured the same as recipes or entities, but the effect would be that the item gets destroyed when changing surface.
Another possibility, maybe more optimized, would be to add "forbidden_items" in the planet properties. That way, the check doesn't even happen if the new surface doesn't have that property. This would even be easier for modders, who don't have to change vanilla items properties (potentially breaking compatibility)

Use case examples
- ice melting over a given temperature
- organic material being poisoned
- electric stuff being fried...

Why?
This would allow modders to put restrictions on imports, and thus allow for more restrictive challenges. It solves the fact that at a certain point, every additional planet becomes somewhat trivial when you can import everything.
I think you can make it a spoilable item and turn into a temporary item with a spoil trigger, them use event to catch where it happen and turn it into correct item
Quorken
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Aug 18, 2025 3:53 pm
Contact:

Re: Add surface_conditions on items - desintegrate if not met on surface change

Post by Quorken »

For items produced on planets, you could also set the item's weight so high that it cannot be sent into space, which would for at least some cases (esp. where the item can only be produced on one planet).
Post Reply

Return to “Modding interface requests”