Dispenser
| Stackable | Yes (64) |
|---|---|
| Hardness | 3.5 |
| Blast resistance | 3.5 |
| Luminous | No |
| Block ID | 23 |
Dispenser is a block that holds items and fires one out when powered.
Obtaining
Crafting
Breaking
A dispenser drops itself only when mined with a pickaxe. Its contents drop whatever breaks it.
Usage
Placing
A dispenser is placed with its front facing the player.
Loading
Right-clicking a dispenser opens its 9 slots.
Behaviour
Power
A dispenser fires 4 ticks after it, or the block above it, is powered, and only if it is still powered then. Power through the block above is quasi-connectivity. It checks only at a block update from a power source, so it misses a repeater switching beside it, and power reaching it only by quasi-connectivity.
While it stays powered, every block update it acts on makes it fire again 4 ticks later, even one from a power source that has nothing to do with it. Only one shot can wait at a time: block updates that arrive while one is waiting are lost. It fires at most once every 4 ticks, 5 times a second.
Firing
Each shot takes one item from a random occupied slot, every slot equally likely:
| Item | Leaves the front as |
|---|---|
| an arrow in flight, which a player can pick up | |
| a thrown egg | |
| a thrown snowball | |
| Anything else | a dropped item |
An empty dispenser clicks instead.
Data values
- Block ID:
23 - Translation key:
tile.dispenser