Can spoilage decay into nothing?

Place to get help with not working mods / modding interface.
User avatar
Fishbus
Inserter
Inserter
Posts: 42
Joined: Sat Sep 28, 2024 8:20 pm
Contact:

Can spoilage decay into nothing?

Post by Fishbus »

More of a query!

I was thinking a little about spoilage (I haven't touched it much as I'm not really working with SA) and I had the question pop into my head:

Can an item spoil into nothing? As in, is it possible to make an item decay completely.

This would be useful if something drops on the ground and you would like it to disappear over time so it doesn't clog up the floor if units drop them. Or perhaps you just want to make something disintegrate over time. (e.g. Fish -> Rotten Fish -> Spoilage -> 'nil' )

Is it possible? or must a spoilage_result link to an item?
eugenekay
Filter Inserter
Filter Inserter
Posts: 692
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Can spoilage decay into nothing?

Post by eugenekay »

Code: Select all

data.raw.capsule["raw-fish"].spoil_ticks = 60
data.raw.capsule["raw-fish"].spoil_result = null


Good Luck!
Attachments
2025-09-05 12-55-31.mp4
(1.98 MiB) Downloaded 9 times
User avatar
Fishbus
Inserter
Inserter
Posts: 42
Joined: Sat Sep 28, 2024 8:20 pm
Contact:

Re: Can spoilage decay into nothing?

Post by Fishbus »

Deliciously succinct!

Can't wait to try and eat fish before they slip straight out of my hands!

Thanks!
Post Reply

Return to “Modding help”