First of all, sorry if I created the subject in the wrong subforum, i'm new here :d (even though i played factorio for hundreds of hours

I'm creating a map (a custom scenario), something huge and i'm loosing my mind puting coal in each of my 5600 boilers and burner inserter... (yeah, that's a lot xD)
I still can't make sense of lua language (I swear i'm trying to ^^) but i've already seen functions that should help me do that. Here's my pseudocode :
at the start of map (game.oninit ?) get a list of entities containing my boilers and inserters (game.findentities ?) then do a for each loop on this list that will test if the entity is a boiler or an burner inserter and then insert a stack of coal inside them
I'm sure this is actually quite a simple script to write so i'm asking if someone's nice enough could write it for me :d (or at least give me scripts examples so i can study lua & factorio) and tell me if i can put it in a file that would be loaded when I start my map, I'm sure I read it's possible on the wiki but i couldn't find how to name the file and where to place it (in the map folder next to the blueprint.dat ?)
Thanks in advance for who bothers answering me
