I want to loop over every entity in data.raw in my data-updates.lua. Unfortunately they are categorized, and I can't find a way to tell entity categories from non-entity categories.
My immediate solution is to just copy this list: https://github.com/Suprcheese/Squeak-Th ... lua#L8-L32
I'd love to know if there's a more appropriate way to dynamically build this list.
List of data.raw categories that contain entities?
Re: List of data.raw categories that contain entities?
What property are you reading/changing from entities?
You could check to see if the property exists.
You could check to see if the property exists.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: List of data.raw categories that contain entities?
Unlike items where item subtypes are in the list, EG, data.raw.tool is a fairly common alternative to data.raw.item... I thought ALL entities were just under data.raw.entity.
Re: List of data.raw categories that contain entities?
I have used here this list of entities:
code
And yes, it's now impossible to get them with a one command or iterate them.