https://lua-api.factorio.com/latest/cla ... m_filtered states
However, within the debugger I get
because the correct field name is 'filter', not 'filters'
[2.0.76] LuaPrototypes#get_item_filtered documentation bug
[2.0.76] LuaPrototypes#get_item_filtered documentation bug
Last edited by hgschmie on Tue May 12, 2026 5:27 pm, edited 1 time in total.
Re: [2.0.76] LuaPrototypes#get_items_filtered documentation bug
You seem to be confused with 'filter' from https://lua-api.factorio.com/latest/con ... ilter.html and 'filters' parameter. This method does not take named parameters, it directly takes one parameter which is a table. Name "filters" should not appear here in your code.
Re: [2.0.76] LuaPrototypes#get_item_filtered documentation bug
I think I get what you are saying. Basically, it should be
prototypes.get_item_filtered { { filter = 'type', type = 'fuel' }, } and not prototypes.get_item_filtered { { filter = 'fuel' }, }
That makes me curious why the second form worked at all.
prototypes.get_item_filtered { { filter = 'type', type = 'fuel' }, } and not prototypes.get_item_filtered { { filter = 'fuel' }, }
That makes me curious why the second form worked at all.

