many thanks for the help and the answer in the past.

Does anyone know how to set the filter for the smart-inserter and (my problem) the logistic-container in requester-mode?
I tried the following ... but does not work

Code: Select all
game.onevent(defines.events.onbuiltentity, function(event)
if event.createdentity.name == "foo-logistic-container" then
event.createdentity.filter[1]="coal"
-- event.createdentity.filter="coal"
end
end)

I have tried different ways to find out the existing keys.
Thought, if i send the entity to console, i can find some information, so i use:
Code: Select all
game.player.print(serpent.block(event.createdentity))
game.player.print(tostring(event.createdentity) )
game.player.print(table.concat(event.createdentity) )
game.player.print(serpent.block(entity))
game.player.print(tostring(game.entity) )
....

thankful for every tip
greetings Frank
thx Frank