Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

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.

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

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

share|improve this answer
1  
Texture Pack? I like. –  fredley May 14 '11 at 22:28
1  
It's ShortStuf7's Clean Design Pack. –  Kevin Y May 14 '11 at 22:56

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

share|improve this answer
11  
+1 for TNT "invalidation" –  soulBit May 14 '11 at 15:53
    
The dispenser spits out an item when I complete the circuit but pressing the pressure plate won't have any effect. –  rightfold May 14 '11 at 16:06
2  
@Radek: there is a redstone torch attached to the upper stone block. It's kinda hard to see. –  Javier Badia May 14 '11 at 16:27
    
@Radek, @Javier I've uploaded a clearer pic. –  fredley May 14 '11 at 16:33
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 Y May 16 '11 at 3:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.