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?