Dropper

The dropper is a block that drops an item from its inventory as an entity (as if it was dropped by the player) each time it is powered. If there is a chest immediately in front of the dropper when it is powered, it will instead store the item within. A dropper can drop items through a glass block in front of it.

This is in contrast to a dispenser, which behaves differently with certain items, such as firing projectiles, placing liquids from buckets, and spawning mobs from spawn eggs. Dispensers also do not store items in chests.