About obtain container context.
Posted: Sat May 16, 2020 11:57 am
Hi!
I need information about contents of the container.
With I expect some table output with print like
But get this
I need information about contents of the container.
Code: Select all
for _, entity in pairs(player.surface.find_entities_filtered{area = radius, name = "wooden-chest"}) do
player.print(entity.get_contents)
end
etc etciron-ore - 1000
iron-plate - 100
copper-plate - 100
But get this
Pic
What I'm doing wrong?