A compact vending machine that I(MasterSpeedz) made. How does this
work? After pressing the button, your emerald is brought into a dispenser full of emeralds which shoots it into a pressure plate. The pressure plate then triggers an RS-NOR latch making the pistons drop down. Once the pistons drop down, you are now able to choose your item. After choosing your item, the RS-NOR latch resets.