16

I am making a map in Minecraft that other people can play. I have a dispenser with an iron, golden and diamond sword in it. I want the player to be able to use this dispenser only once. How would I do this?

3 Answers 3

3

Make the switch also activate some water (a current passing glitched water will make it flow normally) to wash away part of the redstone, stopping further current.

4
  • 2
    Notch is in bug fixing mode, this glitch may be gone by the time 1.6 is released!
    – fredley
    May 14, 2011 at 16:00
  • 1
    Well that'll ruin thousands of contraptions, I sure hope not...
    – Ronan
    May 14, 2011 at 16:08
  • 2
    He's already 'broken' minecart boosters and boat elevators, so beware!
    – fredley
    May 15, 2011 at 12:01
  • 2
    This can be done with pistons now.
    – user1381
    Oct 1, 2011 at 18:28
19

The simplest way to accomplish this is to build an RS-NOR latch, and wire the input and the dispenser to it. When you activate the input, the RS-NOR will flip, causing it to stay on. This means that no matter how many times you press the button, the dispenser will only dispense one time (unless of course you reset the latch).


This is an example of what the contraption may look like from the outside.

enter image description here

The following image is a look at the actual RS-NOR latch within the circuit. This is a vertical RS-NOR latch, because it only takes up one block wide of space (with the exception of the button, which isn't needed). When the button in the first image is pressed, it triggers the bottom redstone torch in this image to turn off, which then makes the wire running on the top of the latch turn off. The redstone torch on the left side of the latch turns on, giving continuous power the latch and not allowing subsequent button presses to do anything. While this is happening, it also powers the wiring extending downwards, which is wired to the dispenser.

The button pictured, however, acts as a reset switch, which is helpful when doing maintenance.

enter image description here

Finally, here is a broader look at the entire circuit.

enter image description here

2
15

Simple:

Wire up switch to TNT to remove dispenser after use.

Better:

Use a Latch. This way, the first time the switch is activated, it will activate the dispenser. Subsequent presses will not have any effect. This simplest way to do this is to connect the output of an OR gate to one of the inputs (the other input to the switch, and the dispenser also connected to the output). This way it will 'stick' on once activated, and further button presses will do nothing.

Single use dispenser

12
  • The dispenser spits out an item when I complete the circuit but pressing the pressure plate won't have any effect.
    – user1381
    May 14, 2011 at 16:06
  • 2
    @Radek: there is a redstone torch attached to the upper stone block. It's kinda hard to see.
    – Javier
    May 14, 2011 at 16:27
  • @Radek, @Javier I've uploaded a clearer pic.
    – fredley
    May 14, 2011 at 16:33
  • May the problem be that my floor is sand instead of grass? Here is a screenshot: i.imgur.com/ZnXgp.jpg
    – user1381
    May 14, 2011 at 17:05
  • 1
    The N/S quirk shouldn't be affecting this circuit, as it doesn't rely on tick-specific timings. More likely is that the pressure plate wasn't wired up correctly.
    – Kevin Yap
    May 16, 2011 at 3:26

You must log in to answer this question.