I would like to create a mod doing certain things, but based on what I found up to this point, I'm not sure if this is possible with reasonable effort.
The idea is to make a harder version where it is even more important to balance resources. Therefore I would like to implement the following changes:
1. Belts keep on moving items even if there is a jam.
2. Inserters don't stop inserting at a certain limit.
3. Inserters try to insert items that they can grab even if they are not the correct type for the production building (e.g. inserting copper plates into a smelter)
4. All items that are to be inserted into a full or unfitting building or moved by a belt even though there is a jam are scattered on the ground instead.
I tried to find the lua implementation for the corresponding behavior of the inserters and belts, but couldn't find it. Is it possible to find it somewhere, or are these behaviors hardcoded in C?
Would be great if someone with more modding experience could help me out!

Best,
Nick-Nack