Please explain to me: Prototype/ItemWithEntityData
Posted: Sun Jan 31, 2021 7:29 pm
I'm looking for a way to store some data on an entity itself. I need this data to persist even if the item is mined.
I was told the only way of achieving this is using something like http://afforess.github.io/Factorio-Stdl ... ntity.html to store the data "outside" the entity. Then I found https://wiki.factorio.com/Prototype/ItemWithEntityData, which by it's name implies the functionality I need. But I don't see anything in the definition that allows me to persist data per-entity as well as per-item.
Is this the prototype I am looking for or am I barking up the wrong tree?
I was told the only way of achieving this is using something like http://afforess.github.io/Factorio-Stdl ... ntity.html to store the data "outside" the entity. Then I found https://wiki.factorio.com/Prototype/ItemWithEntityData, which by it's name implies the functionality I need. But I don't see anything in the definition that allows me to persist data per-entity as well as per-item.
Is this the prototype I am looking for or am I barking up the wrong tree?