Page 1 of 1

Document allowable equipment types

Posted: Sat Jul 04, 2026 3:59 pm
by robot256
I could be missing it, but it seems like the fastest way to tell what values LuaEquipment::type or LuaEquipmentPrototype::type can take is to go to [EquipmentPrototype](https://lua-api.factorio.com/latest/pro ... otype.html) and expand the list of children prototypes. I was trying to use LuaPrototypes::find_equipment_filtered() with the 'type' filter and it took me way too long to find that what I was looking for was "inventory-bonus-equipment".

It would be really nice to have a direct reference to that list in LuaPrototypes::find_equipment_filtered(), LuaEquipment::type and LuaEquipmentPrototype::type.

Re: Document allowable equipment types

Posted: Sat Jul 04, 2026 7:05 pm
by Osmo
As far as a i know, this is not a thing that happens with items, entities, or anything else, so adding it to just equipments will be weird.

Re: Document allowable equipment types

Posted: Sun Jul 05, 2026 3:52 am
by robot256
Yeah, I know it was mostly my brain being stupid and wondering why "type='toolbelt'" wasn't working. For some reason it didn't click for me that "type" for equipment was in the same flat namespace as the types of all the other entities/items. I was thinking about it like defines.inventory... If I had gone and looked at the toolbelt prototype I would have seen the type listed there.