Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Dispenser: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 16: Line 16:
=== Breaking ===
=== Breaking ===
Dispensers can be mined using a [[Minecraft:pickaxe]], in which case it drops itself and its contents. If mined without a pickaxe, the dispenser drops only its contents.
Dispensers can be mined using a [[Minecraft:pickaxe]], in which case it drops itself and its contents. If mined without a pickaxe, the dispenser drops only its contents.
{{breaking row|horizontal=1|Dispenser|Pickaxe|Wood|foot=1}}
{{MC/Breaking row|horizontal=1|Dispenser|Pickaxe|Wood|foot=1}}


=== Natural generation ===
=== Natural generation ===
Line 45: Line 45:
A dispenser can be used as a container and as a redstone component that dispenses items when activated, with results varying based on the item dispensed. For example, the trap in a jungle pyramid incorporates [[Minecraft:arrow]]s inside a dispenser, which shoots the arrows when activated.  
A dispenser can be used as a container and as a redstone component that dispenses items when activated, with results varying based on the item dispensed. For example, the trap in a jungle pyramid incorporates [[Minecraft:arrow]]s inside a dispenser, which shoots the arrows when activated.  


To place a dispenser, {{control|use}} it while pointing at a surface adjacent to the space it should occupy. A dispenser can be placed so that its output faces in any direction, including up or down. When placed, a dispenser faces the location of the player placing it.
To place a dispenser, {{MC/Control|use}} it while pointing at a surface adjacent to the space it should occupy. A dispenser can be placed so that its output faces in any direction, including up or down. When placed, a dispenser faces the location of the player placing it.


In {{JE}}, a dispenser cannot be moved by [[Minecraft:piston]]s.
In {{MC/JE}}, a dispenser cannot be moved by [[Minecraft:piston]]s.


=== Container ===
=== Container ===
Line 54: Line 54:
A dispenser has 9 slots of inventory space.
A dispenser has 9 slots of inventory space.


To open the dispenser GUI, use the {{control|Use Item}} control. To move items between the dispenser inventory and the player inventory or hotbar while the dispenser GUI is open, drag or shift-click the items. To exit the dispenser GUI, use the {{key|Esc}} control.
To open the dispenser GUI, use the {{MC/Control|Use Item}} control. To move items between the dispenser inventory and the player inventory or hotbar while the dispenser GUI is open, drag or shift-click the items. To exit the dispenser GUI, use the {{MC/Key|Esc}} control.


By default, the GUI of a dispenser is labeled "Dispenser". A dispenser's GUI label can be changed by naming the dispenser in an [[Minecraft:anvil]] before placing it, or by using the [[Minecraft:Commands/data|data]] command.{{only|Java}} For example, to label a dispenser at (0,64,0) "My Dispenser", use <code>data merge block 0 64 0 {CustomName:'"My Dispenser"'}</code>.
By default, the GUI of a dispenser is labeled "Dispenser". A dispenser's GUI label can be changed by naming the dispenser in an [[Minecraft:anvil]] before placing it, or by using the [[Minecraft:Commands/data|data]] command.{{only|Java}} For example, to label a dispenser at (0,64,0) "My Dispenser", use <code>data merge block 0 64 0 {CustomName:'"My Dispenser"'}</code>.
Line 61: Line 61:


=== Redstone component ===
=== Redstone component ===
{{see also|Redstone circuit}}
{{MC/See also|Redstone circuit}}


A dispenser can be used to dispense a randomly selected [[Minecraft:item]] out of the ones it contains.
A dispenser can be used to dispense a randomly selected [[Minecraft:item]] out of the ones it contains.
Line 79: Line 79:
A dispenser has a 4 game [[Minecraft:tick]] (0.2 seconds, barring lag) delay between activation and a response. During this time, additional inputs are ignored.
A dispenser has a 4 game [[Minecraft:tick]] (0.2 seconds, barring lag) delay between activation and a response. During this time, additional inputs are ignored.


{{IN|be}}, the dispenser can only activate on the input/consumer redstone tick (C-tick).
{{MC/In|be}}, the dispenser can only activate on the input/consumer redstone tick (C-tick).


==== Behavior ====
==== Behavior ====
Line 87: Line 87:
If multiple slots are occupied by items, a random occupied slot is chosen for ejection. The slot is chosen when an item is ejected, not when the dispenser is initially activated; thus it is possible to move items into or out of a dispenser between its activation and item dispensing.
If multiple slots are occupied by items, a random occupied slot is chosen for ejection. The slot is chosen when an item is ejected, not when the dispenser is initially activated; thus it is possible to move items into or out of a dispenser between its activation and item dispensing.


The effects of being activated vary with the type of ejected item. Most items are thrown in the direction the dispenser is facing as if a player had used the {{control|Drop Item}} control. Other items behave differently when dispensed, as described in the table below. In general, a dispenser ''cannot'' place blocks into the world, aside for a few exceptions, such as shulker boxes, powder snow, and certain cases where the placed block would do something unusual. When a dispenser uses an item that has durability, such as flint and steel and [[Minecraft:shears]], the item's durability decreases.
The effects of being activated vary with the type of ejected item. Most items are thrown in the direction the dispenser is facing as if a player had used the {{MC/Control|Drop Item}} control. Other items behave differently when dispensed, as described in the table below. In general, a dispenser ''cannot'' place blocks into the world, aside for a few exceptions, such as shulker boxes, powder snow, and certain cases where the placed block would do something unusual. When a dispenser uses an item that has durability, such as flint and steel and [[Minecraft:shears]], the item's durability decreases.


Unlike a [[Minecraft:dropper]], a dispenser can't push items inside another container.
Unlike a [[Minecraft:dropper]], a dispenser can't push items inside another container.
Line 97: Line 97:
! Effect
! Effect
|-
|-
| {{ItemLink|Iron Chestplate|Armor}}<br>{{ItemLink|Elytra}}
| {{MC/Itemlink|Iron Chestplate|Armor}}<br>{{MC/Itemlink|Elytra}}
| Equips on a player, armor stand, skeleton, wither skeleton, stray, bogged, [[Minecraft:zombie]], [[Minecraft:husk]], pillager, drowned, vindicator, [[Minecraft:villager]]{{only|java}}<ref>{{bug|MCPE-109608|"Villagers cannot be equipped with anything by a dispenser, but that would be a separate issue and a feature request rather than a bug."|Cannot dispense armor or mob heads onto villagers or zombies|Cannot Reproduce}}</ref>, [[Minecraft:piglin]] or zombified piglin within the block the dispenser is facing with empty appropriate armor slot (any armor, made from any material).
| Equips on a player, armor stand, skeleton, wither skeleton, stray, bogged, [[Minecraft:zombie]], [[Minecraft:husk]], pillager, drowned, vindicator, [[Minecraft:villager]]{{only|java}}<ref>{{bug|MCPE-109608|"Villagers cannot be equipped with anything by a dispenser, but that would be a separate issue and a feature request rather than a bug."|Cannot dispense armor or mob heads onto villagers or zombies|Cannot Reproduce}}</ref>, [[Minecraft:piglin]] or zombified piglin within the block the dispenser is facing with empty appropriate armor slot (any armor, made from any material).
{{IN|Java}}, zombies can only be equipped if they are capable of picking up items.<ref>{{bug|MC-190027||Dispensers can only put armor onto zombies with CanPickUpLoot set to true}}</ref>
{{MC/In|Java}}, zombies can only be equipped if they are capable of picking up items.<ref>{{bug|MC-190027||Dispensers can only put armor onto zombies with CanPickUpLoot set to true}}</ref>
|-
|-
| {{ItemLink|Armor stand}}
| {{MC/Itemlink|Armor stand}}
| Placed as an entity in the block the dispenser is facing.{{only|java}}<ref>{{bug|MCPE-80145}}</ref>
| Placed as an entity in the block the dispenser is facing.{{only|java}}<ref>{{bug|MCPE-80145}}</ref>
|-
|-
| {{ItemLink|Arrow}}<br>{{ItemLink|Spectral arrow}}{{only|je|short=1}}<br>{{ItemLink|Tipped arrow}}
| {{MC/Itemlink|Arrow}}<br>{{MC/Itemlink|Spectral arrow}}{{only|je|short=1}}<br>{{MC/Itemlink|Tipped arrow}}
| Fired in the direction the dispenser is facing.
| Fired in the direction the dispenser is facing.
|-
|-
| {{ItemLink|Oak Boat|text=Boat}}<br>{{ItemLink|Boat with chest}}
| {{MC/Itemlink|Oak Boat|text=Boat}}<br>{{MC/Itemlink|Boat with chest}}
| Placed as an entity (i.e., a right-clickable vehicle) in the block the dispenser is facing, if the dispenser is facing the water or an empty block above water &mdash; otherwise dropped.<ref name="LousyDispensers">{{bug|MC-114111}}</ref>
| Placed as an entity (i.e., a right-clickable vehicle) in the block the dispenser is facing, if the dispenser is facing the water or an empty block above water &mdash; otherwise dropped.<ref name="LousyDispensers">{{bug|MC-114111}}</ref>
|-
|-
| {{ItemLink|Bone meal}}<br>{{ItemLink|Super fertilizer}}{{only|be|edu|short=1}}
| {{MC/Itemlink|Bone meal}}<br>{{MC/Itemlink|Super fertilizer}}{{only|be|edu|short=1}}
| Uses bone meal (as [[Minecraft:Bone Meal#Fertilizer|fertilizer]]) or super fertilizer on the block the dispenser is facing, if possible. If the block faced does not react to fertilizers, no bone meal or super fertilizer is used.
| Uses bone meal (as [[Minecraft:Bone Meal#Fertilizer|fertilizer]]) or super fertilizer on the block the dispenser is facing, if possible. If the block faced does not react to fertilizers, no bone meal or super fertilizer is used.
|-
|-
| {{ItemLink|Bottle o' enchanting}}<br>{{ItemLink|Egg}}<br>{{ItemLink|Ice bomb}}{{only|be|edu|short=1}}<br>{{ItemLink|Snowball}}<br>{{ItemLink|Splash potion}}<br>{{ItemLink|Lingering potion}}<br>{{ItemLink|Wind charge}}
| {{MC/Itemlink|Bottle o' enchanting}}<br>{{MC/Itemlink|Egg}}<br>{{MC/Itemlink|Ice bomb}}{{only|be|edu|short=1}}<br>{{MC/Itemlink|Snowball}}<br>{{MC/Itemlink|Splash potion}}<br>{{MC/Itemlink|Lingering potion}}<br>{{MC/Itemlink|Wind charge}}
| Thrown in the direction the dispenser is facing as if the player had right-clicked the item in their inventory. Splash potions and lingering potions are fired farther.
| Thrown in the direction the dispenser is facing as if the player had right-clicked the item in their inventory. Splash potions and lingering potions are fired farther.
|-
|-
| {{ItemLink|Bucket}}
| {{MC/Itemlink|Bucket}}
| Collects lava or water source block the dispenser is facing, adding the newly filled bucket to an empty slot in the dispenser's inventory. If there isn't room in the dispenser for the newly-filled bucket (i.e. the empty bucket was part of a stack and all other slots in the dispenser are also full), drops the filled bucket. If no source block is in front of the dispenser, drops an empty bucket.<ref name="LousyDispensers"/>
| Collects lava or water source block the dispenser is facing, adding the newly filled bucket to an empty slot in the dispenser's inventory. If there isn't room in the dispenser for the newly-filled bucket (i.e. the empty bucket was part of a stack and all other slots in the dispenser are also full), drops the filled bucket. If no source block is in front of the dispenser, drops an empty bucket.<ref name="LousyDispensers"/>
|-
|-
| {{ItemLink|Fire charge}}
| {{MC/Itemlink|Fire charge}}
| Launches fireball (as if produced by a blaze) in the direction the dispenser is facing. When a dispensed fireball hits a mob (including a player) or a block, the mob or block is set on fire. When a dispensed fireball hits a [[Minecraft:boat]] or [[Minecraft:minecart]], the vehicle is destroyed and drops itself as an item.
| Launches fireball (as if produced by a blaze) in the direction the dispenser is facing. When a dispensed fireball hits a mob (including a player) or a block, the mob or block is set on fire. When a dispensed fireball hits a [[Minecraft:boat]] or [[Minecraft:minecart]], the vehicle is destroyed and drops itself as an item.
|-
|-
| {{ItemLink|Firework rocket}}
| {{MC/Itemlink|Firework rocket}}
| Launches in the direction the dispenser is facing. It can be used to inflict damage if it was crafted with stars.
| Launches in the direction the dispenser is facing. It can be used to inflict damage if it was crafted with stars.
|-
|-
| {{ItemLink|Flint and steel}}
| {{MC/Itemlink|Flint and steel}}
| If the dispenser is facing an air block and having an available block below this air block, places fire in the air block. If the dispenser is facing [[Minecraft:TNT]], it ignites the TNT. If the dispenser is facing an extinguished [[Minecraft:campfire]], the campfire is ignited. Otherwise, does nothing.
| If the dispenser is facing an air block and having an available block below this air block, places fire in the air block. If the dispenser is facing [[Minecraft:TNT]], it ignites the TNT. If the dispenser is facing an extinguished [[Minecraft:campfire]], the campfire is ignited. Otherwise, does nothing.
|-
|-
| {{ItemLink|Lava bucket}}<br>{{ItemLink|Water bucket}}<br>{{ItemLink|Bucket of cod}}<br>{{ItemLink|Bucket of salmon}}<br>{{ItemLink|Bucket of tropical fish}}<br>{{ItemLink|Bucket of pufferfish}}<br>{{ItemLink|Bucket of axolotl}}<br>{{ItemLink|Powder snow bucket}}<br>{{ItemLink|Bucket of tadpole}}
| {{MC/Itemlink|Lava bucket}}<br>{{MC/Itemlink|Water bucket}}<br>{{MC/Itemlink|Bucket of cod}}<br>{{MC/Itemlink|Bucket of salmon}}<br>{{MC/Itemlink|Bucket of tropical fish}}<br>{{MC/Itemlink|Bucket of pufferfish}}<br>{{MC/Itemlink|Bucket of axolotl}}<br>{{MC/Itemlink|Powder snow bucket}}<br>{{MC/Itemlink|Bucket of tadpole}}
| Places lava or water in the block the dispenser is facing (replacing the lava or water bucket in the dispenser with an empty bucket) if the block the dispenser is facing is one that the player could use lava or water buckets on (e.g., [[Minecraft:air]], [[Minecraft:flower]]s, grass, etc. &mdash; doesn't work with a [[Minecraft:cauldron]]<ref>{{bug|MC-165196|||Invalid}}</ref>) &mdash; otherwise the bucket is dropped.<ref name="LousyDispensers"/> Water dispensed in [[Minecraft:the Nether]] disappears instantly, leaving only the empty bucket in the dispenser. If the bucket contains an axolotl or fish, the mob is spawned along with the block of water. A dispenser can place or remove powder snow in the block in front of where the dispenser is facing.
| Places lava or water in the block the dispenser is facing (replacing the lava or water bucket in the dispenser with an empty bucket) if the block the dispenser is facing is one that the player could use lava or water buckets on (e.g., [[Minecraft:air]], [[Minecraft:flower]]s, grass, etc. &mdash; doesn't work with a [[Minecraft:cauldron]]<ref>{{bug|MC-165196|||Invalid}}</ref>) &mdash; otherwise the bucket is dropped.<ref name="LousyDispensers"/> Water dispensed in [[Minecraft:the Nether]] disappears instantly, leaving only the empty bucket in the dispenser. If the bucket contains an axolotl or fish, the mob is spawned along with the block of water. A dispenser can place or remove powder snow in the block in front of where the dispenser is facing.
|-
|-
| style="white-space:nowrap;"|{{EntityLink|Minecart}}<br>{{EntityLink|Minecart with chest}}<br>{{EntityLink|Minecart with command block}}<br>{{EntityLink|Minecart with furnace}}<br>{{EntityLink|Minecart with hopper}}<br>{{EntityLink|Minecart with TNT}}
| style="white-space:nowrap;"|{{MC/Entitylink|Minecart}}<br>{{MC/Entitylink|Minecart with chest}}<br>{{MC/Entitylink|Minecart with command block}}<br>{{MC/Entitylink|Minecart with furnace}}<br>{{MC/Entitylink|Minecart with hopper}}<br>{{MC/Entitylink|Minecart with TNT}}
| Placed as an entity (i.e., a right-clickable vehicle) in the block the dispenser is facing, if the dispenser is facing a type of rails &mdash; otherwise dropped.<ref name="LousyDispensers"/>
| Placed as an entity (i.e., a right-clickable vehicle) in the block the dispenser is facing, if the dispenser is facing a type of rails &mdash; otherwise dropped.<ref name="LousyDispensers"/>
|-
|-
| {{BlockLink|Heads}}<br>{{BlockLink|Carved pumpkin}}
| {{MC/Blocklink|Heads}}<br>{{MC/Blocklink|Carved pumpkin}}
| If placement completes the construction of an iron golem, snow golem, or [[Minecraft:wither]], the entity is created as if constructed by a player. If the difficulty is set to peaceful, dispensers never place wither skeleton skulls. Equips on a player, [[Minecraft:mob]] (with exceptions), or armor stand with an empty helmet slot, within the block the dispenser is facing. Otherwise, does nothing.
| If placement completes the construction of an iron golem, snow golem, or [[Minecraft:wither]], the entity is created as if constructed by a player. If the difficulty is set to peaceful, dispensers never place wither skeleton skulls. Equips on a player, [[Minecraft:mob]] (with exceptions), or armor stand with an empty helmet slot, within the block the dispenser is facing. Otherwise, does nothing.
Placement of wither skulls fails under water, even though withers can be manually built under water.
Placement of wither skulls fails under water, even though withers can be manually built under water.
|-
|-
| {{BlockLink|Shulker box}}
| {{MC/Blocklink|Shulker box}}


| Placed as a block.
| Placed as a block.
Line 145: Line 145:
| Summons a mob in front of the dispenser.
| Summons a mob in front of the dispenser.
|-
|-
| {{BlockLink|TNT}}<br>{{BlockLink|Underwater TNT}}{{only|be|edu|short=1}}
| {{MC/Blocklink|TNT}}<br>{{MC/Blocklink|Underwater TNT}}{{only|be|edu|short=1}}
| Summons a TNT entity in the block the dispenser is facing, with upward motion and a small velocity in a random horizontal direction.
| Summons a TNT entity in the block the dispenser is facing, with upward motion and a small velocity in a random horizontal direction.
|-
|-
| {{ItemLink|Trident}}
| {{MC/Itemlink|Trident}}
| Thrown in the direction the dispenser is facing.{{only|bedrock}}{{upcoming|java Combat Tests|nocat=1}}
| Thrown in the direction the dispenser is facing.{{only|bedrock}}{{MC/Upcoming|java Combat Tests|nocat=1}}
|-
|-
| {{ItemLink|Shears}}
| {{MC/Itemlink|Shears}}
| Unleash leashed mobs that is in the block in front of it.
| Unleash leashed mobs that is in the block in front of it.
Shear any bogged, sheep, snow golem, mooshroom, or sulfur cube{{upcoming}} that is in the block in front of it.<br>Harvests [[Minecraft:honeycomb]]s from a full [[Minecraft:beehive]] or bee nest.
Shear any bogged, sheep, snow golem, mooshroom, or sulfur cube{{MC/Upcoming}} that is in the block in front of it.<br>Harvests [[Minecraft:honeycomb]]s from a full [[Minecraft:beehive]] or bee nest.
|-
|-
| {{ItemLink|Glass bottle}}
| {{MC/Itemlink|Glass bottle}}
| Fills bottle with water if the dispenser is facing a water source block or with [[Minecraft:Honey Bottle|honey]] if the dispenser is facing a full beehive or bee nest. If there is no room for the newly-filled bottle (i.e. there are no empty slots in the dispenser), drops the filled bottle. <br>If the dispenser is facing anything else, the empty glass bottle is dropped.<ref name="LousyDispensers"/><ref>{{snap|19w42a|October 16, 2019}}</ref>
| Fills bottle with water if the dispenser is facing a water source block or with [[Minecraft:Honey Bottle|honey]] if the dispenser is facing a full beehive or bee nest. If there is no room for the newly-filled bottle (i.e. there are no empty slots in the dispenser), drops the filled bottle. <br>If the dispenser is facing anything else, the empty glass bottle is dropped.<ref name="LousyDispensers"/><ref>{{snap|19w42a|October 16, 2019}}</ref>
|-
|-
| {{ItemLink|Iron Horse Armor|Horse armor}}
| {{MC/Itemlink|Iron Horse Armor|Horse armor}}
| Place horse armor on any tamed horse or zombie horse that is in the block in front of it.
| Place horse armor on any tamed horse or zombie horse that is in the block in front of it.
|-
|-
| {{ItemLink|Iron Nautilus Armor|Nautilus armor}}
| {{MC/Itemlink|Iron Nautilus Armor|Nautilus armor}}
| Place nautilus armor on any tamed nautilus or zombie nautilus that is in the block in front of it.
| Place nautilus armor on any tamed nautilus or zombie nautilus that is in the block in front of it.
|-
|-
| {{ItemLink|Saddle}}
| {{MC/Itemlink|Saddle}}
| Place a saddle on any pig, strider, camel, camel husk, tamed horse, donkey, mule, zombie horse, skeleton horse,{{only|java}} nautilus, or zombie nautilus that is in the block in front of it.
| Place a saddle on any pig, strider, camel, camel husk, tamed horse, donkey, mule, zombie horse, skeleton horse,{{only|java}} nautilus, or zombie nautilus that is in the block in front of it.
|-
|-
| {{ItemLink|Harness}}
| {{MC/Itemlink|Harness}}
| Place a harness on any happy ghast that is in the block in front of it.
| Place a harness on any happy ghast that is in the block in front of it.
|-
|-
| {{BlockLink|White Carpet|Carpet}}
| {{MC/Blocklink|White Carpet|Carpet}}
| Place a carpet on any tamed llama that is in the block in front of it.
| Place a carpet on any tamed llama that is in the block in front of it.
|-
|-
| {{BlockLink|Chest}}
| {{MC/Blocklink|Chest}}
| Place a chest on any tamed llama, donkey, or mule that is in the block in front of it.
| Place a chest on any tamed llama, donkey, or mule that is in the block in front of it.
|-
|-
| {{BlockLink|Glowstone}}
| {{MC/Blocklink|Glowstone}}
| Charges any empty or partially filled respawn anchor. If facing a full respawn anchor, it does nothing.
| Charges any empty or partially filled respawn anchor. If facing a full respawn anchor, it does nothing.
|-
|-
| {{ItemLink|Honeycomb}}
| {{MC/Itemlink|Honeycomb}}
| Wax any copper block that is in the block in front of it.
| Wax any copper block that is in the block in front of it.
|-
|-
| {{ItemLink|Water bottle}}
| {{MC/Itemlink|Water bottle}}
| Turns [[Minecraft:dirt]], coarse dirt, and rooted dirt into [[Minecraft:mud]].
| Turns [[Minecraft:dirt]], coarse dirt, and rooted dirt into [[Minecraft:mud]].
|-
|-
|{{ItemLink|Brush}}
|{{MC/Itemlink|Brush}}
| Brushes an armadillo in front of the dispenser.
| Brushes an armadillo in front of the dispenser.
|-
|-
| Others
| Others
| Dropped: Ejected toward the block the dispenser is facing as if a player had used the {{control|drop item}} control.
| Dropped: Ejected toward the block the dispenser is facing as if a player had used the {{MC/Control|drop item}} control.
|}
|}


Line 198: Line 198:
== Sounds ==
== Sounds ==
=== Generic ===
=== Generic ===
{{Sound table/Block/Stone}}
{{MC/Sound table/Block/Stone}}


=== Unique ===
=== Unique ===
{{el|je}}:
{{MC/El|je}}:
{{SoundTable
{{SoundTable
| type = java
| type = java
Line 239: Line 239:
|subtitle=Chest locked
|subtitle=Chest locked
|source=block
|source=block
|description=When a player attempts to open a dispenser locked using the {{nbt|compound|lock}} tag
|description=When a player attempts to open a dispenser locked using the {{MC/Nbt|compound|lock}} tag
|id=block.chest.locked|idnote=<ref group=sound name=LousyEvents/>
|id=block.chest.locked|idnote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=LousyEvents/>
Line 248: Line 248:
}}
}}


{{el|be}}:
{{MC/El|be}}:
{{SoundTable
{{SoundTable
| type = bedrock
| type = bedrock
Line 277: Line 277:
== Data values ==
== Data values ==
=== ID ===
=== ID ===
{{edition|java}}:
{{MC/Edition|java}}:
{{ID table
{{ID table
|edition=java
|edition=java
Line 293: Line 293:
|foot=1}}
|foot=1}}


{{edition|bedrock}}:
{{MC/Edition|bedrock}}:
{{ID table
{{ID table
|edition=bedrock
|edition=bedrock
Line 313: Line 313:


=== Block states ===
=== Block states ===
{{see also|Block states}}
{{MC/See also|Block states}}
<!-- This section is used for both dispensers and droppers. Please retain generalized wording. -->
<!-- This section is used for both dispensers and droppers. Please retain generalized wording. -->
<section begin="block states"/>{{el|je}}:
<section begin="block states"/>{{MC/El|je}}:
{{bst|facing|north|down,east,north,south,up,west|The direction in which contents are shot or dropped.<br>The opposite from the direction the player faces while placing the block.}}
{{bst|facing|north|down,east,north,south,up,west|The direction in which contents are shot or dropped.<br>The opposite from the direction the player faces while placing the block.}}
{{bst|triggered|false|false,true|True if this block is activated.|foot=1}}
{{bst|triggered|false|false,true|True if this block is activated.|foot=1}}


{{el|be}}:
{{MC/El|be}}:
{{bst|showaux=1|bits=0x1,0x2,0x4|facing_direction|0|0,1,2,3,4,5,6,7|The direction in which contents are shot or dropped.
{{bst|showaux=1|bits=0x1,0x2,0x4|facing_direction|0|0,1,2,3,4,5,6,7|The direction in which contents are shot or dropped.
*0: facing down
*0: facing down
Line 332: Line 332:
A dispenser has a block entity associated with it that holds additional data about the block.
A dispenser has a block entity associated with it that holds additional data about the block.


{{el|java}}:
{{MC/El|java}}:
{{see also|Block entity format}}
{{MC/See also|Block entity format}}
<section begin="block data"/><div class="treeview">
<section begin="block data"/><div class="treeview">
*{{nbt|compound}} Block entity data
*{{MC/Nbt|compound}} Block entity data
** {{nbt inherit/blockentity}}
** {{MC/Nbt inherit/blockentity}}
** {{nbt inherit/nameable|indent=**}}
** {{MC/Nbt inherit/nameable|indent=**}}
** {{nbt inherit/lockable|indent=**}}
** {{MC/Nbt inherit/Lockable|indent=**}}
** {{nbt inherit/lootable|indent=**}}
** {{MC/Nbt inherit/Lootable|indent=**}}
** {{nbt|list|Items}}: List of items in this container. Represents the {{DCL|minecraft:container}} component. The component is still present on the block entity, even if the tag does not exist (due to a loot table existing instead).
** {{MC/Nbt|list|Items}}: List of items in this container. Represents the {{DCL|minecraft:container}} component. The component is still present on the block entity, even if the tag does not exist (due to a loot table existing instead).
*** {{nbt|compound}}: An item, including the slot tag. Dispenser slots are numbered 0-8 with 0 in the top left corner.
*** {{MC/Nbt|compound}}: An item, including the slot tag. Dispenser slots are numbered 0-8 with 0 in the top left corner.
**** {{nbt inherit/item|indent=****}}
**** {{MC/Nbt inherit/item|indent=****}}
</div><section end="block data"/>
</div><section end="block data"/>


{{el|bedrock}}:
{{MC/El|bedrock}}:
: See [[Minecraft:Bedrock Edition level format/Block entity format]].
: See [[Minecraft:Bedrock Edition level format/Block entity format]].


== Achievements ==
== Achievements ==
{{load achievements|Dispense With This}}
{{MC/Load achievements|Dispense With This}}


== Videos ==
== Videos ==
<div style="text-align:center">{{yt|ooAjvcznzhQ}}{{yt|eD-W88bkmco}}</div>
<div style="text-align:center">{{MC/Yt|ooAjvcznzhQ}}{{MC/Yt|eD-W88bkmco}}</div>


== History ==
== History ==
=== Development ===
=== Development ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine||January 10, 2011|link=https://www.youtube.com/watch?v=cBF2ugTzXqQ&t=181s|[[File:Dispenser (S) (pre-release).png|32px]] Shown dispenser in development as part of  The Story of Mojang.<ref group="note">Supposed time when fragment was filmed. Based on modified date of client.jar/gui/trap.png in Beta 1.2.</ref>
|{{MC/HistoryLine||January 10, 2011|link=https://www.youtube.com/watch?v=cBF2ugTzXqQ&t=181s|[[File:Dispenser (S) (pre-release).png|32px]] Shown dispenser in development as part of  The Story of Mojang.<ref group="note">Supposed time when fragment was filmed. Based on modified date of client.jar/gui/trap.png in Beta 1.2.</ref>
|Currently dispensers dispense items to a fixed distance ~2 blocks away.}}
|Currently dispensers dispense items to a fixed distance ~2 blocks away.}}
|{{HistoryLine||January 18, 2013|link={{tweet|Dinnerbone|292069254017204224}}|Dinnerbone stated that dispensers are to have more features in the future, so players should stick to using [[Minecraft:dropper]]s to dispense [[Minecraft:item]]s.}}
|{{HistoryLine||January 18, 2013|link={{tweet|Dinnerbone|292069254017204224}}|Dinnerbone stated that dispensers are to have more features in the future, so players should stick to using [[Minecraft:dropper]]s to dispense [[Minecraft:item]]s.}}
Line 364: Line 364:
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java beta}}
|{{MC/HistoryLine|java beta}}
|{{HistoryLine||1.2|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE1.png|32px]] [[File:Dispenser (S) JE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] Added dispensers.
|{{MC/HistoryLine||1.2|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE1.png|32px]] [[File:Dispenser (S) JE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] Added dispensers.
|The top and bottom textures of dispensers currently remain fixed regardless of the facing direction.
|The top and bottom textures of dispensers currently remain fixed regardless of the facing direction.
|Dispensers can currently only fire [[Minecraft:arrow]]s, [[Minecraft:snowball]]s, and [[Minecraft:egg]]s. All other items are thrown out as entities.}}
|Dispensers can currently only fire [[Minecraft:arrow]]s, [[Minecraft:snowball]]s, and [[Minecraft:egg]]s. All other items are thrown out as entities.}}
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 6|Dispensers now take less time to destroy, and the breaking time is now tier dependent.}}
|{{MC/HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 6|Dispensers now take less time to destroy, and the breaking time is now tier dependent.}}
|{{HistoryLine||1.2.1|dev=12w03a|Dispensers can spawn [[Minecraft:mob]]s from a spawn egg.}}
|{{MC/HistoryLine||1.2.1|dev=12w03a|Dispensers can spawn [[Minecraft:mob]]s from a spawn egg.}}
|{{HistoryLine|||dev=12w04a|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] The texture of dispensers has been changed.
|{{MC/HistoryLine|||dev=12w04a|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] The texture of dispensers has been changed.
|Dispensers can shoot fire charges and bottles o' enchanting.}}
|Dispensers can shoot fire charges and bottles o' enchanting.}}
|{{HistoryLine||1.3.1|dev=12w15a|Dispensers can place [[Minecraft:boat]]s and [[Minecraft:minecart]]s.}}
|{{MC/HistoryLine||1.3.1|dev=12w15a|Dispensers can place [[Minecraft:boat]]s and [[Minecraft:minecart]]s.}}
|{{HistoryLine|||dev=12w21a|Dispensers can now place the liquids inside [[Minecraft:Water Bucket|water]] and lava buckets.  
|{{MC/HistoryLine|||dev=12w21a|Dispensers can now place the liquids inside [[Minecraft:Water Bucket|water]] and lava buckets.  
|Dispensers can now suck up liquids if activated again, filling up the buckets with the liquid dropped.}}
|Dispensers can now suck up liquids if activated again, filling up the buckets with the liquid dropped.}}
|{{HistoryLine|||dev=12w22a|Dispensers can naturally generate within jungle temples and are filled with a random amount of [[Minecraft:arrow]]s that shoot the player should they touch the tripwire connected to it or destroy it without [[Minecraft:shears]].}}
|{{MC/HistoryLine|||dev=12w22a|Dispensers can naturally generate within jungle temples and are filled with a random amount of [[Minecraft:arrow]]s that shoot the player should they touch the tripwire connected to it or destroy it without [[Minecraft:shears]].}}
|{{HistoryLine||1.4.6|dev=12w49a|Dispensers now shoot firework rockets.}}
|{{MC/HistoryLine||1.4.6|dev=12w49a|Dispensers now shoot firework rockets.}}
|{{HistoryLine||1.5|dev=13w04a|[[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Dispensers can now face all 6 directions.
|{{MC/HistoryLine||1.5|dev=13w04a|[[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Dispensers can now face all 6 directions.
|Dispensers use many new items, including [[Minecraft:TNT]], bone meal, flint and steel, and [[Minecraft:armor]].}}
|Dispensers use many new items, including [[Minecraft:TNT]], bone meal, flint and steel, and [[Minecraft:armor]].}}
|{{HistoryLine|||dev=13w10b|Powered dispensers no longer fire if they receive a [[Minecraft:redstone]] update.}}
|{{MC/HistoryLine|||dev=13w10b|Powered dispensers no longer fire if they receive a [[Minecraft:redstone]] update.}}
|{{HistoryLine||1.8|dev=14w04a|Dispensers can be used to place [[Minecraft:pumpkin]]s to activate iron golems and snow golems.
|{{MC/HistoryLine||1.8|dev=14w04a|Dispensers can be used to place [[Minecraft:pumpkin]]s to activate iron golems and snow golems.
|Dispensers can place wither skeleton skulls to activate the [[Minecraft:wither]].}}
|Dispensers can place wither skeleton skulls to activate the [[Minecraft:wither]].}}
|{{HistoryLine|||dev=14w07a|Dispensers can place command blocks instead of shooting them out.}}
|{{MC/HistoryLine|||dev=14w07a|Dispensers can place command blocks instead of shooting them out.}}
|{{HistoryLine|||dev=14w10a|[[File:Missing Model JE2.png|32px]] Upward-facing dispensers no longer have a model.}}
|{{MC/HistoryLine|||dev=14w10a|[[File:Missing Model JE2.png|32px]] Upward-facing dispensers no longer have a model.}}
|{{HistoryLine|||dev=14w10b|[[File:Dispenser (U) JE1 BE1.png|32px]] Upward-facing dispensers have a valid model again.<ref>{{bug|MC-50259|||Fixed}}</ref>}}
|{{HistoryLine|||dev=14w10b|[[File:Dispenser (U) JE1 BE1.png|32px]] Upward-facing dispensers have a valid model again.<ref>{{bug|MC-50259|||Fixed}}</ref>}}
|{{HistoryLine|||dev=14w25a|[[File:Dispenser (N) 14w25a.png|32px]] [[File:Dispenser (E) 14w25a.png|32px]] [[File:Dispenser (S) 14w25a.png|32px]] [[File:Dispenser (W) 14w25a.png|32px]] [[File:Dispenser (D) JE2.png|32px]] The models of dispenser have been changed - the top and bottom faces for horizontal dispensers now rotate accordingly, and are rotated for downward-facing.}}
|{{MC/HistoryLine|||dev=14w25a|[[File:Dispenser (N) 14w25a.png|32px]] [[File:Dispenser (E) 14w25a.png|32px]] [[File:Dispenser (S) 14w25a.png|32px]] [[File:Dispenser (W) 14w25a.png|32px]] [[File:Dispenser (D) JE2.png|32px]] The models of dispenser have been changed - the top and bottom faces for horizontal dispensers now rotate accordingly, and are rotated for downward-facing.}}
|{{HistoryLine||1.8.6|Dispensers no longer place command blocks, as it constituted a vulnerability.<ref>https://bugs.mojang.com/browse/MC-80671?focusedCommentId=228546&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-228546</ref>}}
|{{MC/HistoryLine||1.8.6|Dispensers no longer place command blocks, as it constituted a vulnerability.<ref>https://bugs.mojang.com/browse/MC-80671?focusedCommentId=228546&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-228546</ref>}}
|{{HistoryLine||1.9|dev=15w33a|Dispensers can shoot splash potions and lingering potions much farther than before.}}
|{{MC/HistoryLine||1.9|dev=15w33a|Dispensers can shoot splash potions and lingering potions much farther than before.}}
|{{HistoryLine|||dev=15w33c|Dispensers can shoot fire charges as ender dragon fireballs, instead of as blaze fireballs.}}
|{{MC/HistoryLine|||dev=15w33c|Dispensers can shoot fire charges as ender dragon fireballs, instead of as blaze fireballs.}}
|{{HistoryLine|||dev=15w39c|Dispensers can equip mob heads and [[Minecraft:pumpkin]]s.}}
|{{MC/HistoryLine|||dev=15w39c|Dispensers can equip mob heads and [[Minecraft:pumpkin]]s.}}
|{{HistoryLine|||dev=15w44b|Dispensers can once again shoot fire charges as blaze fireballs.}}
|{{MC/HistoryLine|||dev=15w44b|Dispensers can once again shoot fire charges as blaze fireballs.}}
|{{HistoryLine||1.9.1|dev=pre1|Dispensers can use loot tables.
|{{MC/HistoryLine||1.9.1|dev=pre1|Dispensers can use loot tables.
|Dispensers generated in jungle temples use loot tables.}}
|Dispensers generated in jungle temples use loot tables.}}
|{{HistoryLine||1.10|dev=16w21a|Dispensers can equip [[Minecraft:shield]]s, like [[Minecraft:armor]].}}
|{{MC/HistoryLine||1.10|dev=16w21a|Dispensers can equip [[Minecraft:shield]]s, like [[Minecraft:armor]].}}
|{{HistoryLine||1.11|dev=16w39a|Dispensers can place shulker boxes.}}
|{{MC/HistoryLine||1.11|dev=16w39a|Dispensers can place shulker boxes.}}
|{{HistoryLine|||dev=16w39c|Dispensers can dispense [[Minecraft:boat]]s facing the same way as the dispenser, instead of toward the dispenser.}}
|{{MC/HistoryLine|||dev=16w39c|Dispensers can dispense [[Minecraft:boat]]s facing the same way as the dispenser, instead of toward the dispenser.}}
|{{HistoryLine||1.13|dev=17w47a|[[Minecraft:Crafting]] a dispenser no longer requires the [[Minecraft:bow]] to be at full durability.<ref>{{bug|MC-122844|||WAI}}</ref>}}
|{{HistoryLine||1.13|dev=17w47a|[[Minecraft:Crafting]] a dispenser no longer requires the [[Minecraft:bow]] to be at full durability.<ref>{{bug|MC-122844|||WAI}}</ref>}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (E) JE4.png|32px]] [[File:Dispenser (S) JE4.png|32px]] [[File:Furnace (W) JE4.png|32px]] [[File:Dispenser (U) JE2 BE2.png|32px]] [[File:Dispenser (D) JE3.png|32px]] The textures of the dispenser have been changed.
|{{MC/HistoryLine||1.14|dev=18w43a|[[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (E) JE4.png|32px]] [[File:Dispenser (S) JE4.png|32px]] [[File:Furnace (W) JE4.png|32px]] [[File:Dispenser (U) JE2 BE2.png|32px]] [[File:Dispenser (D) JE3.png|32px]] The textures of the dispenser have been changed.
|Dispensers with [[Minecraft:shears]] in them now shear sheep with [[Minecraft:wool]].}}
|Dispensers with [[Minecraft:shears]] in them now shear sheep with [[Minecraft:wool]].}}
|{{HistoryLine||1.15|dev=19w34a|Dispensers can harvest [[Minecraft:honeycomb]]s when dispensing shears on bee nests and [[Minecraft:beehive]]s filled with honey.
|{{MC/HistoryLine||1.15|dev=19w34a|Dispensers can harvest [[Minecraft:honeycomb]]s when dispensing shears on bee nests and [[Minecraft:beehive]]s filled with honey.
|Dispensers can collect honey bottles when dispensing glass bottles on beehives.
|Dispensers can collect honey bottles when dispensing glass bottles on beehives.
|Dispensers can collect water bottles when dispensing glass bottles on [[Minecraft:water]].}}
|Dispensers can collect water bottles when dispensing glass bottles on [[Minecraft:water]].}}
|{{HistoryLine|||dev=19w36a|Fireworks dispensed from a dispenser now travel in the direction fired.}}
|{{MC/HistoryLine|||dev=19w36a|Fireworks dispensed from a dispenser now travel in the direction fired.}}
|{{HistoryLine|||dev=19w41a|Dispensers now eject empty bottles properly when not facing [[Minecraft:water]].}}
|{{MC/HistoryLine|||dev=19w41a|Dispensers now eject empty bottles properly when not facing [[Minecraft:water]].}}
|{{HistoryLine|||dev=19w42a|Dispensers can place armor stands.}}
|{{MC/HistoryLine|||dev=19w42a|Dispensers can place armor stands.}}
|{{HistoryLine||1.16|dev=20w13a|Dispensers can charge respawn anchors.}}
|{{MC/HistoryLine||1.16|dev=20w13a|Dispensers can charge respawn anchors.}}
|{{HistoryLine|||dev=20w15a|Dispensers can saddle [[Minecraft:pig]]s, striders, and tamed [[Minecraft:horse]]s, donkeys, and mules.  
|{{MC/HistoryLine|||dev=20w15a|Dispensers can saddle [[Minecraft:pig]]s, striders, and tamed [[Minecraft:horse]]s, donkeys, and mules.  
|Dispensers can put horse armor on horses.
|Dispensers can put horse armor on horses.
|Dispensers can put carpets on llamas.
|Dispensers can put carpets on llamas.
Line 413: Line 413:
|Dispensers can shear a mooshroom.
|Dispensers can shear a mooshroom.
|Dispensers can shear snow golems.}}
|Dispensers can shear snow golems.}}
|{{HistoryLine||1.17|dev=20w46a|Can place powder snow using a powder snow bucket. Also can remove it using a bucket.}}
|{{MC/HistoryLine||1.17|dev=20w46a|Can place powder snow using a powder snow bucket. Also can remove it using a bucket.}}
|{{HistoryLine|||dev=21w11a|Dispensers can dispense [[Minecraft:honeycomb]] onto copper blocks to wax them.}}
|{{MC/HistoryLine|||dev=21w11a|Dispensers can dispense [[Minecraft:honeycomb]] onto copper blocks to wax them.}}
|{{HistoryLine||1.19|dev=22w11a|Dispensers can turn [[Minecraft:dirt]], coarse dirt, and rooted dirt into [[Minecraft:mud]].}}
|{{MC/HistoryLine||1.19|dev=22w11a|Dispensers can turn [[Minecraft:dirt]], coarse dirt, and rooted dirt into [[Minecraft:mud]].}}
|{{HistoryLine|||dev=22w13a|Dispensers can place a boat with chest.}}
|{{MC/HistoryLine|||dev=22w13a|Dispensers can place a boat with chest.}}
|{{HistoryLine||1.19.3|exp=Update 1.20|dev=22w42a|Dispensers can saddle camels.}}
|{{MC/HistoryLine||1.19.3|exp=Update 1.20|dev=22w42a|Dispensers can saddle camels.}}
|{{HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Dispensers now generate in trial chambers.}}
|{{MC/HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Dispensers now generate in trial chambers.}}
|{{HistoryLine||1.20.5|dev=23w51a|Dispensers can brush armadillos.}}
|{{MC/HistoryLine||1.20.5|dev=23w51a|Dispensers can brush armadillos.}}
|{{HistoryLine||1.21|dev=24w18a|Entities shot by dispensers now receive knockback.<ref>{{bug|MC-44280||Entities don't receive knockback from projectiles fired from dispensers|Fixed}}</ref>}}
|{{HistoryLine||1.21|dev=24w18a|Entities shot by dispensers now receive knockback.<ref>{{bug|MC-44280||Entities don't receive knockback from projectiles fired from dispensers|Fixed}}</ref>}}
|{{HistoryLine||1.21.11|dev=pre4|Dispensers can now equip saddles and nautilus armor on tamed nautiluses and zombie nautiluses.}}
|{{MC/HistoryLine||1.21.11|dev=pre4|Dispensers can now equip saddles and nautilus armor on tamed nautiluses and zombie nautiluses.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|pocket alpha}}
|{{MC/HistoryLine|pocket alpha}}
|{{HistoryLine||v0.14.0|dev=build 1|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Added dispensers.}}
|{{MC/HistoryLine||v0.14.0|dev=build 1|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Added dispensers.}}
|{{HistoryLine|||dev=build 5|The [[Minecraft:inventory]] for dispensers is now more consistent with other inventories.}}
|{{MC/HistoryLine|||dev=build 5|The [[Minecraft:inventory]] for dispensers is now more consistent with other inventories.}}
|{{HistoryLine||v0.15.0|dev=build 1|Dispensers can be moved by [[Minecraft:piston]]s.
|{{MC/HistoryLine||v0.15.0|dev=build 1|Dispensers can be moved by [[Minecraft:piston]]s.
|Dispensers now generate in jungle temples.}}
|Dispensers now generate in jungle temples.}}
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (E) BE2.png|32px]] [[File:Dispenser (S) BE2.png|32px]] [[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (U) JE2 BE2.png|32px]] [[File:Dispenser (D) BE2.png|32px]] The textures of the dispenser have been changed.
|{{MC/HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (E) BE2.png|32px]] [[File:Dispenser (S) BE2.png|32px]] [[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (U) JE2 BE2.png|32px]] [[File:Dispenser (D) BE2.png|32px]] The textures of the dispenser have been changed.
|Dispensers with [[Minecraft:shears]] in them now shear sheep with [[Minecraft:wool]].}}
|Dispensers with [[Minecraft:shears]] in them now shear sheep with [[Minecraft:wool]].}}
|{{HistoryLine||1.13.0|dev=beta 1.13.0.15|Damaged bows can no longer be used to craft dispensers.}}
|{{MC/HistoryLine||1.13.0|dev=beta 1.13.0.15|Damaged bows can no longer be used to craft dispensers.}}
|{{HistoryLine||1.14.0|dev=beta 1.14.0.1|Dispensers can harvest [[Minecraft:honeycomb]]s when dispensing shears on bee nests and [[Minecraft:beehive]]s filled with honey.
|{{MC/HistoryLine||1.14.0|dev=beta 1.14.0.1|Dispensers can harvest [[Minecraft:honeycomb]]s when dispensing shears on bee nests and [[Minecraft:beehive]]s filled with honey.
|Dispensers can collect honey bottles when dispensing glass bottles on beehives.
|Dispensers can collect honey bottles when dispensing glass bottles on beehives.
|Dispensers can collect water bottles when dispensing glass bottles on [[Minecraft:water]].}}
|Dispensers can collect water bottles when dispensing glass bottles on [[Minecraft:water]].}}
|{{HistoryLine||1.16.0|dev=beta 1.15.0.51|[[Minecraft:Crafting]] a dispenser no longer requires the [[Minecraft:bow]] to be at full durability.}}
|{{MC/HistoryLine||1.16.0|dev=beta 1.15.0.51|[[Minecraft:Crafting]] a dispenser no longer requires the [[Minecraft:bow]] to be at full durability.}}
|{{HistoryLine||1.16.210|exp=Caves and Cliffs|dev=beta 1.16.210.57|Dispensers can wax copper blocks.}}
|{{MC/HistoryLine||1.16.210|exp=Caves and Cliffs|dev=beta 1.16.210.57|Dispensers can wax copper blocks.}}
|{{HistoryLine||1.19.60|dev=Preview 1.19.60.22|Dispensers can saddle [[Minecraft:pig]]s, striders, tamed [[Minecraft:horse]]s, donkeys, and mules.
|{{MC/HistoryLine||1.19.60|dev=Preview 1.19.60.22|Dispensers can saddle [[Minecraft:pig]]s, striders, tamed [[Minecraft:horse]]s, donkeys, and mules.
|Dispensers can put horse armor on tamed horses.
|Dispensers can put horse armor on tamed horses.
|Dispensers can shear snow golems and mooshrooms.
|Dispensers can shear snow golems and mooshrooms.
|Dispensers can put carpets and chests on llamas.
|Dispensers can put carpets and chests on llamas.
|Dispensers with shears now only shear one sheep at a time.}}
|Dispensers with shears now only shear one sheep at a time.}}
|{{HistoryLine||1.19.60|exp=Next Major Update|dev=Preview 1.19.60.22|Dispensers can saddle camels.}}
|{{MC/HistoryLine||1.19.60|exp=Next Major Update|dev=Preview 1.19.60.22|Dispensers can saddle camels.}}
|{{HistoryLine||1.20.60|exp=Update 1.21|dev=Preview 1.20.60.20|Dispensers now generate in trial chambers.}}
|{{MC/HistoryLine||1.20.60|exp=Update 1.21|dev=Preview 1.20.60.20|Dispensers now generate in trial chambers.}}
|{{HistoryLine||1.21.50|dev=Preview 1.21.50.24|Dispensers drop themselves only if mined using a pickaxe, matching {{JE}}.}}
|{{HistoryLine||1.21.50|dev=Preview 1.21.50.24|Dispensers drop themselves only if mined using a pickaxe, matching {{MC/JE}}.}}
}}
}}


=== Legacy Console Edition ===
=== Legacy Console Edition ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|console}}
|{{MC/HistoryLine|console}}
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE1.png|32px]] [[File:Dispenser (S) JE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] Added dispensers.}}
|{{MC/HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE1.png|32px]] [[File:Dispenser (S) JE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] Added dispensers.}}
|{{HistoryLine||xbox=TU3|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] The dispenser texture has been changed to the Java Edition 1.2.1 (12w04a) texture.}}
|{{MC/HistoryLine||xbox=TU3|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] The dispenser texture has been changed to the Java Edition 1.2.1 (12w04a) texture.}}
|{{HistoryLine||xbox=TU5|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added quick move to the dispenser.}}
|{{MC/HistoryLine||xbox=TU5|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added quick move to the dispenser.}}
|{{HistoryLine||xbox=TU9|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Dispensers can spawn [[Minecraft:mob]]s from a spawn egg.
|{{MC/HistoryLine||xbox=TU9|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Dispensers can spawn [[Minecraft:mob]]s from a spawn egg.
|Dispensers can shoot out the liquids inside [[Minecraft:Water Bucket|water]] and lava buckets.
|Dispensers can shoot out the liquids inside [[Minecraft:Water Bucket|water]] and lava buckets.
|Dispensers can suck up the liquids if activated again, but do not fill up the buckets with the liquid dropped due to a bug.}}
|Dispensers can suck up the liquids if activated again, but do not fill up the buckets with the liquid dropped due to a bug.}}
|{{HistoryLine||xbox=TU10|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Dispensers can place [[Minecraft:boat]]s and [[Minecraft:minecart]]s.}}
|{{MC/HistoryLine||xbox=TU10|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Dispensers can place [[Minecraft:boat]]s and [[Minecraft:minecart]]s.}}
|{{HistoryLine||xbox=TU12|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|The bug where the liquid from dispensers did not properly fill empty [[Minecraft:bucket]]s has been fixed.}}
|{{MC/HistoryLine||xbox=TU12|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|The bug where the liquid from dispensers did not properly fill empty [[Minecraft:bucket]]s has been fixed.}}
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Dispensers now face in any direction.|Dispensers use many new items, including [[Minecraft:TNT]], bone meal, flint and steel, and [[Minecraft:armor]].}}
|{{MC/HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Dispensers now face in any direction.|Dispensers use many new items, including [[Minecraft:TNT]], bone meal, flint and steel, and [[Minecraft:armor]].}}
|{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|Dispensers can place [[Minecraft:pumpkin]]s or wither skeleton skulls to spawn golems and [[Minecraft:wither]]s providing the body is already built in a valid configuration.}}
|{{MC/HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|Dispensers can place [[Minecraft:pumpkin]]s or wither skeleton skulls to spawn golems and [[Minecraft:wither]]s providing the body is already built in a valid configuration.}}
|{{HistoryLine||xbox=TU53|xbone=CU43|ps3=1.49|psvita=1.49|ps4=1.50|wiiu=Patch 23|switch=1.0.3|Dispensers can place shulker boxes.}}
|{{MC/HistoryLine||xbox=TU53|xbone=CU43|ps3=1.49|psvita=1.49|ps4=1.50|wiiu=Patch 23|switch=1.0.3|Dispensers can place shulker boxes.}}
|{{HistoryLine||xbox=TU60|xbone=CU51|ps3=1.64|psvita=1.64|ps4=1.64|wiiu=Patch 30|switch=1.0.11|Fireworks dispensed from a dispenser now travel in the direction fired.}}
|{{MC/HistoryLine||xbox=TU60|xbone=CU51|ps3=1.64|psvita=1.64|ps4=1.64|wiiu=Patch 30|switch=1.0.11|Fireworks dispensed from a dispenser now travel in the direction fired.}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (E) JE4.png|32px]] [[File:Dispenser (S) JE4.png|32px]] [[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (U) JE2 BE2.png|32px]] [[File:Dispenser (D) JE3.png|32px]] The textures of the dispenser have been changed.
|{{MC/HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (E) JE4.png|32px]] [[File:Dispenser (S) JE4.png|32px]] [[File:Furnace (N) JE3 BE2.png|32px]] [[File:Dispenser (U) JE2 BE2.png|32px]] [[File:Dispenser (D) JE3.png|32px]] The textures of the dispenser have been changed.
|Dispensers with [[Minecraft:shears]] in them now shear sheep with [[Minecraft:wool]].}}
|Dispensers with [[Minecraft:shears]] in them now shear sheep with [[Minecraft:wool]].}}
}}
}}
Line 471: Line 471:
=== ''New Nintendo 3DS Edition'' ===
=== ''New Nintendo 3DS Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|3ds}}
|{{MC/HistoryLine|3ds}}
|{{HistoryLine||0.1.0|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Added dispensers.}}
|{{MC/HistoryLine||0.1.0|[[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (E) JE2 BE1.png|32px]] [[File:Dispenser (S) JE2 BE1.png|32px]] [[File:Furnace (N) JE2 BE1.png|32px]] [[File:Dispenser (U) JE1 BE1.png|32px]] [[File:Dispenser (D) JE1 BE1.png|32px]] Added dispensers.}}
}}
}}


Line 483: Line 483:
=== Data history ===
=== Data history ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.8|dev=14w06a|Dispensers now use the newly-implemented model json file {{code|models/block/cube.json}}; previously the geometry was defined in the game code itself.}}
|{{HistoryLine||1.8|dev=14w06a|Dispensers now use the newly-implemented model json file {{MC/Code|models/block/cube.json}}; previously the geometry was defined in the game code itself.}}
|{{HistoryLine||1.11|dev=16w32a|The [[Minecraft:block]] entity ID for dispensers has been changed from <code>Trap</code> to <code>minecraft:dispenser</code>.}}
|{{MC/HistoryLine||1.11|dev=16w32a|The [[Minecraft:block]] entity ID for dispensers has been changed from <code>Trap</code> to <code>minecraft:dispenser</code>.}}
|{{HistoryLine||1.13|dev=17w47a|Prior to ''The Flattening'', this block's numeral ID was 23.}}
|{{MC/HistoryLine||1.13|dev=17w47a|Prior to ''The Flattening'', this block's numeral ID was 23.}}
}}
}}


== Issues ==
== Issues ==
{{Issue list}}
{{MC/Issue list}}


== Trivia ==
== Trivia ==
* A dispenser was shown inside a minecart in one of the Java Edition 1.5 teaser images, although this was never added to the game.
* A dispenser was shown inside a minecart in one of the Java Edition 1.5 teaser images, although this was never added to the game.
* Dispensers resemble a face when not facing up or down, a fact which is briefly brought up by {{MCSM|Axel}} in {{Story Mode episode|1|1}}.
* Dispensers resemble a face when not facing up or down, a fact which is briefly brought up by {{MC/MCSM|Axel}} in {{MC/Story Mode episode|1|1}}.


== Gallery ==
== Gallery ==
Line 528: Line 528:
File:BlockWeek dispenser.png|Artwork of dispensers used in Block of the Week
File:BlockWeek dispenser.png|Artwork of dispensers used in Block of the Week
File:Dispenser MCC Event.png|Dispenser as it appeared in [[Minecraft:MCC x Minecraft 15th Anniversary Party]]
File:Dispenser MCC Event.png|Dispenser as it appeared in [[Minecraft:MCC x Minecraft 15th Anniversary Party]]
File:Dispenser (inventory) MCE.png|alt=Dispenser as it appeared in <nowiki>''Minecraft Earth''</nowiki>|{{MCE|Dispenser}} as it appeared in {{MCE}}
File:Dispenser (inventory) MCE.png|alt=Dispenser as it appeared in <nowiki>''Minecraft Earth''</nowiki>|{{MC/MCE|Dispenser}} as it appeared in {{MC/MCE}}
</gallery>
</gallery>


Line 544: Line 544:


== References ==
== References ==
{{Reflist}}
{{MC/Reflist}}


== External links ==
== External links ==
Line 550: Line 550:


== Navigation ==
== Navigation ==
{{Navbox redstone|components}}
{{MC/Navbox redstone|components}}
{{Navbox blocks|Utility}}
{{MC/Navbox blocks|Utility}}


[[Category:Mechanisms]]
[[Category:Mechanisms]]

Latest revision as of 20:20, 9 April 2026

Template:Infobox block A dispenser is a low-capacity storage Minecraft:block that can fire projectiles, use certain items or tools or place certain blocks, fluids or entities when given a Minecraft:redstone signal. Items that do not have unique dispenser functions are instead ejected into the world.

Obtaining

Breaking

Dispensers can be mined using a Minecraft:pickaxe, in which case it drops itself and its contents. If mined without a pickaxe, the dispenser drops only its contents. Script error: No such module "breaking row".

Natural generation

Jungle temples

  • Two dispensers are naturally generated in every jungle temple.

Trial chambers

  • Several dispensers can generate inside the trial chambers with random surprises.

Crafting

Template:Crafting

Usage

A dispenser can be used as a container and as a redstone component that dispenses items when activated, with results varying based on the item dispensed. For example, the trap in a jungle pyramid incorporates Minecraft:arrows inside a dispenser, which shoots the arrows when activated.

To place a dispenser, {{#vardefine: control | right click on mouse or left trigger on gamepad }}use it while pointing at a surface adjacent to the space it should occupy. A dispenser can be placed so that its output faces in any direction, including up or down. When placed, a dispenser faces the location of the player placing it.

In Java Edition, a dispenser cannot be moved by Minecraft:pistons.

Container

File:Dispenser GUI.png
The GUI of the dispenser.

A dispenser has 9 slots of inventory space.

To open the dispenser GUI, use the {{#vardefine: control | right click on mouse or left trigger on gamepad }}Use Item control. To move items between the dispenser inventory and the player inventory or hotbar while the dispenser GUI is open, drag or shift-click the items. To exit the dispenser GUI, use the

  1. REDIRECT Template:Keys

Template:Redr control.

By default, the GUI of a dispenser is labeled "Dispenser". A dispenser's GUI label can be changed by naming the dispenser in an Minecraft:anvil before placing it, or by using the data command.Template:Only For example, to label a dispenser at (0,64,0) "My Dispenser", use data merge block 0 64 0 {CustomName:'"My Dispenser"'}.

A dispenser can be "locked" by setting the dispenser's lock tag. If a dispenser's lock tag is not blank, the dispenser cannot be accessed except by players holding an item that matches the item predicate in the lock tag. A dispenser's lock tag can be set or unset with the data command. For example, to lock a dispenser at (0,64,0) so that only players holding an item named "My Key" can access the dispenser, use data merge block 0 64 0 {lock:{components:{"custom_name":"My Key"}}}.

Redstone component

{{#vardefine:params|0 }}Template:Hatnote

A dispenser can be used to dispense a randomly selected Minecraft:item out of the ones it contains.

Activation

A dispenser is a redstone mechanism and can be activated by:

  • an adjacent active power component: for example, a redstone torch (except that a redstone torch does not activate a dispenser it is attached to), a block of redstone, a daylight sensor, etc.
  • an adjacent powered conductive block (for example, a block with an active redstone torch under it)
  • a powered redstone repeater or redstone comparator facing the dispenser
  • powered redstone dust configured to point at the dispenser, or on top of it, or a directionless "cross" next to it; a dispenser is not activated by adjacent powered redstone dust that is configured to point in another direction.

Some of these methods can activate a dispenser (in the sense of triggering an action) without powering the dispenser (in the sense of whether the dispenser can power adjacent redstone dust, etc.).

In addition to the methods above, a dispenser can also be activated by quasi-connectivity.Template:Only A dispenser becomes activated if one of the methods above would activate a mechanism component in the block above the dispenser, even if there is no mechanism component there (even if the block above the dispenser is Minecraft:air or a non-conductive block), but only when the dispenser receives a block update (including a redstone update within two blocks of the dispenser).

A dispenser has a 4 game Minecraft:tick (0.2 seconds, barring lag) delay between activation and a response. During this time, additional inputs are ignored.

in Template:Editions, the dispenser can only activate on the input/consumer redstone tick (C-tick).

Behavior

When activated, a dispenser waits for 4 game ticks (0.2 seconds, barring lag) and then ejects one item. The dispenser does not continue to eject items while activated; ejection occurs only on the initial activation (the rising edge of an input signal). To eject multiple items, repeatedly activate the dispenser with a clock circuit.

If multiple slots are occupied by items, a random occupied slot is chosen for ejection. The slot is chosen when an item is ejected, not when the dispenser is initially activated; thus it is possible to move items into or out of a dispenser between its activation and item dispensing.

The effects of being activated vary with the type of ejected item. Most items are thrown in the direction the dispenser is facing as if a player had used the {{#vardefine: control | Q on keyboard or D-pad down on gamepad }}Drop Item control. Other items behave differently when dispensed, as described in the table below. In general, a dispenser cannot place blocks into the world, aside for a few exceptions, such as shulker boxes, powder snow, and certain cases where the placed block would do something unusual. When a dispenser uses an item that has durability, such as flint and steel and Minecraft:shears, the item's durability decreases.

Unlike a Minecraft:dropper, a dispenser can't push items inside another container.

Dispenser behavior
Item Effect
  1. REDIRECT Template:ItemLink
  2. REDIRECT Template:ItemLink
Equips on a player, armor stand, skeleton, wither skeleton, stray, bogged, Minecraft:zombie, Minecraft:husk, pillager, drowned, vindicator, Minecraft:villagerTemplate:Only<ref>Template:Bug</ref>, Minecraft:piglin or zombified piglin within the block the dispenser is facing with empty appropriate armor slot (any armor, made from any material).

in Template:Editions, zombies can only be equipped if they are capable of picking up items.<ref>Template:Bug</ref>

  1. REDIRECT Template:ItemLink
Placed as an entity in the block the dispenser is facing.Template:Only<ref>Template:Bug</ref>
  1. REDIRECT Template:ItemLink
  2. REDIRECT Template:ItemLinkTemplate:Only
  3. REDIRECT Template:ItemLink
Fired in the direction the dispenser is facing.
  1. REDIRECT Template:ItemLink
  2. REDIRECT Template:ItemLink
Placed as an entity (i.e., a right-clickable vehicle) in the block the dispenser is facing, if the dispenser is facing the water or an empty block above water — otherwise dropped.<ref name="LousyDispensers">Template:Bug</ref>
  1. REDIRECT Template:ItemLink
  2. REDIRECT Template:ItemLinkTemplate:Only
Uses bone meal (as fertilizer) or super fertilizer on the block the dispenser is facing, if possible. If the block faced does not react to fertilizers, no bone meal or super fertilizer is used.
  1. REDIRECT Template:ItemLink
  2. REDIRECT Template:ItemLink
  3. REDIRECT Template:ItemLinkTemplate:Only
  4. REDIRECT Template:ItemLink
  5. REDIRECT Template:ItemLink
  6. REDIRECT Template:ItemLink
  7. REDIRECT Template:ItemLink
Thrown in the direction the dispenser is facing as if the player had right-clicked the item in their inventory. Splash potions and lingering potions are fired farther.
  1. REDIRECT Template:ItemLink
Collects lava or water source block the dispenser is facing, adding the newly filled bucket to an empty slot in the dispenser's inventory. If there isn't room in the dispenser for the newly-filled bucket (i.e. the empty bucket was part of a stack and all other slots in the dispenser are also full), drops the filled bucket. If no source block is in front of the dispenser, drops an empty bucket.<ref name="LousyDispensers"/>
  1. REDIRECT Template:ItemLink
Launches fireball (as if produced by a blaze) in the direction the dispenser is facing. When a dispensed fireball hits a mob (including a player) or a block, the mob or block is set on fire. When a dispensed fireball hits a Minecraft:boat or Minecraft:minecart, the vehicle is destroyed and drops itself as an item.
  1. REDIRECT Template:ItemLink
Launches in the direction the dispenser is facing. It can be used to inflict damage if it was crafted with stars.
  1. REDIRECT Template:ItemLink
If the dispenser is facing an air block and having an available block below this air block, places fire in the air block. If the dispenser is facing Minecraft:TNT, it ignites the TNT. If the dispenser is facing an extinguished Minecraft:campfire, the campfire is ignited. Otherwise, does nothing.
  1. REDIRECT Template:ItemLink
  2. REDIRECT Template:ItemLink
  3. REDIRECT Template:ItemLink
  4. REDIRECT Template:ItemLink
  5. REDIRECT Template:ItemLink
  6. REDIRECT Template:ItemLink
  7. REDIRECT Template:ItemLink
  8. REDIRECT Template:ItemLink
  9. REDIRECT Template:ItemLink
Places lava or water in the block the dispenser is facing (replacing the lava or water bucket in the dispenser with an empty bucket) if the block the dispenser is facing is one that the player could use lava or water buckets on (e.g., Minecraft:air, Minecraft:flowers, grass, etc. — doesn't work with a Minecraft:cauldron<ref>Template:Bug</ref>) — otherwise the bucket is dropped.<ref name="LousyDispensers"/> Water dispensed in Minecraft:the Nether disappears instantly, leaving only the empty bucket in the dispenser. If the bucket contains an axolotl or fish, the mob is spawned along with the block of water. A dispenser can place or remove powder snow in the block in front of where the dispenser is facing.
  1. REDIRECT Template:EntityLink
  2. REDIRECT Template:EntityLink
  3. REDIRECT Template:EntityLink
  4. REDIRECT Template:EntityLink
  5. REDIRECT Template:EntityLink
  6. REDIRECT Template:EntityLink
Placed as an entity (i.e., a right-clickable vehicle) in the block the dispenser is facing, if the dispenser is facing a type of rails — otherwise dropped.<ref name="LousyDispensers"/>
  1. redirect Template:blockLink

Template:Redr

  1. redirect Template:blockLink

Template:Redr

If placement completes the construction of an iron golem, snow golem, or Minecraft:wither, the entity is created as if constructed by a player. If the difficulty is set to peaceful, dispensers never place wither skeleton skulls. Equips on a player, Minecraft:mob (with exceptions), or armor stand with an empty helmet slot, within the block the dispenser is facing. Otherwise, does nothing.

Placement of wither skulls fails under water, even though withers can be manually built under water.

  1. redirect Template:blockLink

Template:Redr

Placed as a block.
Spawn egg Summons a mob in front of the dispenser.
  1. redirect Template:blockLink

Template:Redr

  1. redirect Template:blockLink

Template:RedrTemplate:Only

Summons a TNT entity in the block the dispenser is facing, with upward motion and a small velocity in a random horizontal direction.
  1. REDIRECT Template:ItemLink
Thrown in the direction the dispenser is facing.Template:Only​{{#vardefine: $version | java Combat Tests

}}{{#vardefine: $version2 | }}<upcoming: Template:Version link & Template:Version link></upcoming: Template:Version link & Template:Version link>

  1. REDIRECT Template:ItemLink
Unleash leashed mobs that is in the block in front of it.

Shear any bogged, sheep, snow golem, mooshroom, or sulfur cube​{{#vardefine: $version | }}{{#vardefine: $version2 | }}<upcoming: Template:Version link & Template:Version link></upcoming: Template:Version link & Template:Version link> that is in the block in front of it.
Harvests Minecraft:honeycombs from a full Minecraft:beehive or bee nest.

  1. REDIRECT Template:ItemLink
Fills bottle with water if the dispenser is facing a water source block or with honey if the dispenser is facing a full beehive or bee nest. If there is no room for the newly-filled bottle (i.e. there are no empty slots in the dispenser), drops the filled bottle.
If the dispenser is facing anything else, the empty glass bottle is dropped.<ref name="LousyDispensers"/><ref>Template:Snap</ref>
  1. REDIRECT Template:ItemLink
Place horse armor on any tamed horse or zombie horse that is in the block in front of it.
  1. REDIRECT Template:ItemLink
Place nautilus armor on any tamed nautilus or zombie nautilus that is in the block in front of it.
  1. REDIRECT Template:ItemLink
Place a saddle on any pig, strider, camel, camel husk, tamed horse, donkey, mule, zombie horse, skeleton horse,Template:Only nautilus, or zombie nautilus that is in the block in front of it.
  1. REDIRECT Template:ItemLink
Place a harness on any happy ghast that is in the block in front of it.
  1. redirect Template:blockLink

Template:Redr

Place a carpet on any tamed llama that is in the block in front of it.
  1. redirect Template:blockLink

Template:Redr

Place a chest on any tamed llama, donkey, or mule that is in the block in front of it.
  1. redirect Template:blockLink

Template:Redr

Charges any empty or partially filled respawn anchor. If facing a full respawn anchor, it does nothing.
  1. REDIRECT Template:ItemLink
Wax any copper block that is in the block in front of it.
  1. REDIRECT Template:ItemLink
Turns Minecraft:dirt, coarse dirt, and rooted dirt into Minecraft:mud.
  1. REDIRECT Template:ItemLink
Brushes an armadillo in front of the dispenser.
Others Q on keyboard or D-pad down on gamepad }}drop item control.

When a dispenser dispenses an item, it emits a clicking sound (unless the item is a projectile or a spawn egg) and a smoke particle. If it is empty when activated, it emits a slightly higher-pitched click. The noise of a dispenser can be heard up to 16 blocks away.

A dispenser is a conductive block, so powering it directly can cause adjacent mechanism components (including other dispensers) to activate as well.

Sounds

Generic

Template:Edition: Template:Sound table/Block/Stone/JE

Template:Edition: Template:Sound table/Block/Stone/BE

Unique

  1. REDIRECT Template:Edition

Template:Rcat: Template:SoundTable

  1. REDIRECT Template:Edition

Template:Rcat: Template:SoundTable

Data values

ID

Template:!((Java EditionTemplate:))!: Template:ID table Template:ID table

Template:!((Bedrock EditionTemplate:))!: Template:ID table Template:ID table

Block states

{{#vardefine:params|0 }}Template:Hatnote <section begin="block states"/>

  1. REDIRECT Template:Edition

Template:Rcat: Template:Bst Template:Bst

  1. REDIRECT Template:Edition

Template:Rcat: Template:Bst Template:Bst<section end="block states"/>

Block data

A dispenser has a block entity associated with it that holds additional data about the block.

  1. REDIRECT Template:Edition

Template:Rcat: {{#vardefine:params|0 }}Template:Hatnote

<section begin="block data"/>

  1. REDIRECT Template:Nbt inherit/lockable
  1. REDIRECT Template:Nbt inherit/lootable
    • Template:Nbt/sprite Items: List of items in this container. Represents the Template:DCL component. The component is still present on the block entity, even if the tag does not exist (due to a loot table existing instead).

<section end="block data"/>

  1. REDIRECT Template:Edition

Template:Rcat:

See Minecraft:Bedrock Edition level format/Block entity format.

Achievements

Script error: No such module "Achievement".

Videos

History

Development

Template:HistoryTable

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Legacy Console Edition

Template:HistoryTable

New Nintendo 3DS Edition

Template:HistoryTable

Historical images

Data history

Template:HistoryTable

Issues

Script error: No such module "Issue list".

Trivia

  • A dispenser was shown inside a minecart in one of the Java Edition 1.5 teaser images, although this was never added to the game.
  • Dispensers resemble a face when not facing up or down, a fact which is briefly brought up by Axel in {{#vardefine: e |The Order of the Stone}}Template:MCSM.

Gallery

Renders

Java Edition

Bedrock Edition

Screenshots

In other media

See also

Some other blocks can also be used to move items:

  • Minecraft:Droppers can throw items or push them into adjacent containers.
  • Minecraft:Hoppers can push items into adjacent containers.
  • Minecraft:Ice, packed ice, and blue ice have reduced friction to the item entity movement.
  • Slime blocks can impart velocity to item entities when pushed by a piston.
  • Minecraft:Water can push item entities.
  • Quasi-connectivity applies to dispensers.

Notes

Template:Notelist

References

<references group="">

 </references>

External links

Navigation

Power emission
Signal transmission
Item and entity transportation
Comparator-readable
Observer-related
Pistons/related
Sculk sensor-related
Mechanisms/misc.
Creative or commands only

Template:Article other

Wood/Hypha
Stone-based
Template:EnvLink
Upcoming
Template:EnvLink
Template:EnvLink
Ore/Mineral
Decorative
Partial Blocks
Dyeable/Dyed
Lighting
Template:Els only
Sediment/Soil
Misc. rock
Ore/Mineral
Plant
Flower
Fungus & Related
Fauna & Related
Aquatic
Sculk
Fluid & Related
Non-physical
Interactable
Utilizable
Redstone/
Mechanical
Template:Els only
April Fools 2013
April Fools 2016
April Fools 2020
April Fools 2022
April Fools 2023
April Fools 2024
April Fools 2025
April Fools 2026

Template:Article otherTemplate:Article other

cs:Dávkovač de:Werfer es:Dispensador fr:Distributeur hu:Adagoló it:Distributore ja:ディスペンサー ko:발사기 nl:Dispenser pl:Dozownik pt:Ejetor ru:Раздатчик uk:Роздавач zh:发射器