That was what I received as the subgroup for the wooden chest.
Here is the code I used:
Code: Select all
for __, item in pairs(game.item_prototypes) do
if not item.has_flag("hidden") then--and item.subgroup == "raw-resource" then
table.insert(raw, {item.name, item.subgroup})
end
end
The code is in control.lua and the result was printed to a label on the screen as a caption using this ( table.tostring() and its requirements) to turn the table to a string.