A dispenser can be used both as a container and as a red stone components that dispenses items when activated and the result varies depending on the item dispensed. The trap in a jungle plyramid, for example incorportaes arrows hidden inside a dispenser that shoots when activated placing the dispensers involves pointing it at a surface adjacent to the one it should occupy. In an upwad or downward position, a dispenser can have its output facing any direction. When a dispenser is placed, it faces the location from which it was placed.
https://myhomewatertreatment.com/category/dispensers/