https://lua-api.factorio.com/latest/cla ... age_filter
Before 2.0, I would set the filter using the item prototype. However, the 2.x API doc does not hint at how to set the quality.
Code: Select all
storage_chest.storage_filter = item_prototype
Code: Select all
storage_chest.storage_filter = item_prototype
Code: Select all
entity.set_filter(1, { type="item", name="iron-plate", quality="rare"})
Code: Select all
entity.storage_filter = { type="item", name="iron-plate", quality="rare"}