
Video: Minecraft 1.12: Redstone Tutorial - Vending Machine V2 (60fps) by MrCrayfish
How to build it
- Place the Payment Chest and Hoppers
Dig a 3-block deep hole for your payment input. Place a chest at the very bottom and stack two hoppers directly on top of it so items funnel down into the chest.
- Wire the Payment Filter
Clear a small trench in front of and to the left of the middle hopper. Point a redstone comparator out of the middle hopper into a repeater, which leads into a redstone dust in a 1-block dip. Place a block over that dust with a redstone torch attached to its side, then run a repeater from the torch into the block supporting the comparator (with a piece of dust on top).
- Lock the Comparator with Signal Strength
Dig two blocks down directly to the left of the payment comparator. Place a Block of Redstone in the hole with a piece of redstone dust on top so it points into the side of the comparator, and place another block diagonally up-left with a dust on top to carry the payment trigger pulse outward.
- Build the 3x3 Selection Wall
Behind the payment hopper, build a 3x3 vertical wall using your building blocks (you can use a contrasting block like a log in the exact center). Place nine item frames across the front of this 3x3 wall.
- Connect the Item Frame Comparators
Behind the center block of the 3x3 wall, build a small platform and place a comparator reading the center item frame. Chain two more comparators behind it so the signal is carried straight backward into an 8-block long line of solid blocks.
- Build the 8-Block Signal Strength Decoder
Run a line of eight redstone dust along the top of the 8-block bar. On the left side at ground level, place eight repeaters facing away from the bar into eight solid blocks, then crouch-place blocks on top of those repeaters, add a second row of eight repeaters above, and put redstone dust on the blocks behind the top repeaters.
- Install the Decoder Torches and Droppers
Crouch-place a row of eight solid blocks directly in front of the upper repeaters. Attach eight redstone torches to the underside of these blocks, and place eight droppers facing straight up on top of those same blocks.
- Run the Output Hopper Chain
Place your ninth dropper facing forward at the front wall to act as the pickup slot. Run a line of eight hoppers directly above the eight upward-facing droppers, connecting them into two forward hoppers that feed into the back of the front output dropper.
- Wire the Payment Trigger Line
Crouch-place eight solid blocks on top of the upper row of repeaters, and place a second row of temporary blocks above the main 8-dust decoder line to cut off vertical connections. Lay a line of eight redstone dust across the blocks above the repeaters, and connect this line down to the payment circuit using a vertical redstone torch tower and four redstone dust.
- Add the Note Blocks
Place eight note blocks in a row alongside the upper payment trigger dust line. At the front of the circuit near the comparators, place two more note blocks with two repeaters feeding into them to create a two-tone confirmation chime when an item is bought.
- Configure the Currency Filter
Open the middle hopper (above the bottom payment chest). Place 63 emeralds (or your chosen currency) in the first slot, and fill the remaining four slots with four non-stackable items such as beds.
- Load the Display Frames and Droppers
Put an arrow inside the center item frame on the front wall, and place your eight display items in the surrounding आठ frames starting from top-right and going clockwise. Finally, load your stock into the eight back droppers in the exact same order, and decorate the front with logs, fences, and a slab roof.
How it works
This vending machine combines two classic redstone sub-circuits: an item frame signal decoder and a high-threshold item filter.
- Item Frame Decoder: A comparator reading an item frame with an item inside outputs a signal strength between 1 and 8 depending on its rotation. As you rotate the arrow, the redstone line behind the wall powers up to a specific length (1 to 8 blocks).
- Isolating One Dropper: The decoder uses two stacked rows of repeaters. The bottom row turns off the redstone torches underneath the droppers up to the current signal strength, unlocking them. The top row is offset by one block, keeping every dropper before the selected one constantly powered (locked). As a result, only the single dropper matching the exact signal tip is both unlocked and unpowered, ready to fire when the payment pulse arrives.
- Payment Filter: The middle hopper holds 63 emeralds and 4 non-stackable items (beds). A Block of Redstone feeds signal strength 15 into the side of the comparator. When a player drops in a 64th emerald, the hopper becomes completely full and outputs signal strength 15, overpowering the side input. This briefly turns off the redstone torch, letting one emerald drain into the chest while sending a pulse up to the decoder line to fire the selected dropper and ring the note blocks.
Tips & variations
- Selector Item Choice: Use an arrow or a sword in the middle item frame because both naturally point diagonally up-right in their default placement position (signal strength 1), matching the top-right item frame.
- Matching the Stock Order: Dropper #1 (closest to the front wall) corresponds to the top-right item frame. As you click the arrow clockwise around the 3x3 board, each step moves one dropper further toward the back.
- Keep Note Blocks Clear: Make sure you do not place solid blocks directly on top of the note blocks when decorating the roof, or they will be muted.
- Changing the Currency: You can replace the 63 emeralds in the filter hopper with 63 diamonds, iron ingots, or any item that stacks to 64.

