boskid, work like a charm!
Big thanks you!))
Search found 2 matches
- Sat May 16, 2020 12:12 pm
- Forum: Modding help
- Topic: About obtain container context.
- Replies: 3
- Views: 642
- Sat May 16, 2020 11:57 am
- Forum: Modding help
- Topic: About obtain container context.
- Replies: 3
- Views: 642
About obtain container context.
Hi!
I need information about contents of the container.
for _, entity in pairs(player.surface.find_entities_filtered{area = radius, name = "wooden-chest"}) do
player.print(entity.get_contents)
end
With I expect some table output with print like
iron-ore - 1000
iron-plate - 100
copper-plate ...
I need information about contents of the container.
for _, entity in pairs(player.surface.find_entities_filtered{area = radius, name = "wooden-chest"}) do
player.print(entity.get_contents)
end
With I expect some table output with print like
iron-ore - 1000
iron-plate - 100
copper-plate ...