Custom metadata associated with an item
Custom metadata associated with an item
I'm wondering if this is possible. I'd like to create an item you use for selecting entities. This item would save a list of entities for later use. Then, when using the item, it would refer to the saved list within the item itself rather than a global variable. Is there a way to assign metadata to an item after it's use (similar to how blueprints work)?
Re: Custom metadata associated with an item
There's currently no way to do that in mods.
If you want to get ahold of me I'm almost always on Discord.
- Ranakastrasz
- Smart Inserter
- Posts: 2172
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Custom metadata associated with an item
The only workaround I am aware of at this time is the Factorisimo mod. It uses the item's durability as a array index.
Obviously any mod that screws with item health will break it.
Obviously any mod that screws with item health will break it.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Custom metadata associated with an item
Also there was talk of merging damaged items in inventory (to reduce number of slots taken) which would break the factorissimo approach.
Only other thing I can think of is to experiment with "item with label" and see if that might work?
Only other thing I can think of is to experiment with "item with label" and see if that might work?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
- Ranakastrasz
- Smart Inserter
- Posts: 2172
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Custom metadata associated with an item
Yea. I think we need this functionality before they implement item merging. Although I still think letting you use repair kits on items in your inventory is a better approach.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16