Storage Inserter

The Storage Inserter is a tile entity added by GregTech 6. It is used to manually mass insert items into Wooden Item Barrels, Plastic Storage Boxes, Mass Storages, Storage Drawers, Better Barrels, and the like.

Behaviour
When right-clicked with an item in hand it will attempt to put that item into a storage. When right-clicked with an empty hand, it will attempt to empty the player's 27 slot inventory of stackable things into the storages. It will leave Arrows and Torches, and it will not take from the hotbar.

It scans up to 50m away left and right, at each point looking for a place a mob could stand on in front of a wall of up to seven storage blocks. It then goes from bottom to top checking if right-clicking with this item from the same cardinal direction as it was clicked on would put the item into that storage inventory. All such fake clicks that do not put the item into an inventory are discarded; then the item is either placed in the first storage that accepted it, or refused if the wall of storages is full.