Minecraft Wiki
Advertisement

A candle is a dyeable block that emits light when lit with a flint and steel. Up to four of the same color of candle can be placed in one block space, which affects the amount of light produced.

Obtaining[]

Natural generation[]

Non-dyed candles and white candles can be found in ancient cities, and brown, green, purple, and red candles can be found in trail ruins.

Breaking[]

Candles can be mined using any tool, or without a tool.

Block Candle
Hardness 0.1
Breaking time (secs)
Default 0.15

Crafting[]

Name Ingredients Crafting recipe
Candle String +
Honeycomb

Dyed Candle Candle +
Matching Dye


Chest loot[]

Item Structure Container Quantity Chance
Java Edition
Brown Candle Trail ruins Suspicious gravel 1 4.4%
Candle Ancient City Chest 1–4 23.2%
Green Candle Trail ruins Suspicious gravel 1 4.4%
Purple Candle Trail ruins Suspicious gravel 1 4.4%
Red Candle Trail ruins Suspicious gravel 1 4.4%
Bedrock Edition
Brown Candle Trail ruins Suspicious gravel 1 4.3%
Candle Ancient City Chest 1–4 23.2%
Green Candle Trail ruins Suspicious gravel 1 4.3%
Purple Candle Trail ruins Suspicious gravel 1 4.3%
Red Candle Trail ruins Suspicious gravel 1 4.3%

Usage[]

Light[]

Four Candles (lit)

Candles can be used as a light source, emitting light like a sea pickle. A single candle emits a light level of 3. Up to four identically colored candles may be placed in one block, with each candle increasing the emitted light level by 3, for a maximum light level of 12. They also emit fire particles.

Candles are not lit when they are placed, and must be lit using flint and steel, fire charge, or any flaming projectile. In Bedrock Edition, a mob/player that is burning, a Fire Aspect book or any sword enchanted with Fire Aspect can also be used to light candles. Candles may be waterlogged, but waterlogged candles cannot be lit. Lit candles can be extinguished using water (even a water bottle‌[Java Edition only]) or by the player interacting with the candle.

Cakes[]

Cake with Candle

A single candle of any color may be used on an uneaten cake, turning it into a candle cake, which acts as a normal single candle. Only one candle can be placed on a cake. If the candle cake is eaten or destroyed, the candle is dropped.

Sounds[]

Generic[]

Java Edition:

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Block brokenBlocksOnce the block has brokenblock.candle.breaksubtitles.block.generic.break1.00.816
Block placedBlocksWhen the block is placedblock.candle.placesubtitles.block.generic.place1.00.816
Block breakingBlocksWhile the block is in the process of being brokenblock.candle.hitsubtitles.block.generic.hit0.250.516
None[sound 1]Entity-DependentFalling on the block with fall damageblock.candle.fallNone[sound 1]0.50.7516
FootstepsEntity-DependentWalking on the blockblock.candle.stepsubtitles.block.generic.footsteps0.151.016
  1. a b MC-177082

Bedrock Edition: [sound 1]

SoundSourceDescriptionResource locationVolumePitch
BlocksOnce the block has brokendig.candle1.01.0
BlocksWhen the block is placeddig.candle1.01.0
BlocksWhile the block is in the process of being brokenhit.candle1.01.0
BlocksFalling on the block with fall damagestep.candle1.01.0
BlocksWalking on the blockstep.candle1.01.0
BlocksJumping from the blockstep.candle1.01.0
BlocksFalling on the block without fall damagestep.candle1.01.0
  1. MCPE-130605 — Candles has a few missing sounds from Java

Unique[]

Java Edition:

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Cake squishesBlocksWhen a candle is placed on a cakeblock.cake.add_candlesubtitles.block.cake.add_candle1.01.016
Candle cracklesBlocksRandomly while litblock.candle.ambientsubtitles.block.candle.cracklevaries [sound 1]varies [sound 2]3
Fire extinguishedBlocksWhen a candle is extinguishedblock.candle.extinguishsubtitles.block.fire.extinguishvaries [sound 3]varies [sound 4]8
  1. Can be 1.0-2.0, 0.7-1.4, or 0.8-1.6 for each sound
  2. Can be 0.3-1.0, 0.24-0.8, or 0.27-0.9 for each sound
  3. Can be 1.0 or 0.9 for each sound
  4. Can be 1.0, 1.0, 0.8, or 1.1 for each sound

Bedrock Edition:

SoundSourceDescriptionResource locationVolumePitch
BlocksWhen a candle is placed on a cakecake.add_candle1.01.0
BlocksRandomly while lit [sound 1]ambient.candlevaries[sound 2]varies[sound 3]
BlocksWhen a candle is extinguished [sound 1]extinguish.candlevaries[sound 4]varies[sound 5]
  1. a b MCPE-130605 — Candles has a few missing sounds from Java
  2. Can be 1.0, 0.7, or 0.8 for each sound.
  3. Can be 1.0, 0.8, or 0.9 for each sound.
  4. Can be 1.0 or 0.9 for each sound event
  5. Can be 1.0, 0.9, or 1.1 for each sound event

Data values[]

ID[]

Java Edition:

NameIdentifierFormTranslation key
CandlecandleBlock & Itemblock.minecraft.candle
White Candlewhite_candleBlock & Itemblock.minecraft.white_candle
Orange Candleorange_candleBlock & Itemblock.minecraft.orange_candle
Magenta Candlemagenta_candleBlock & Itemblock.minecraft.magenta_candle
Light Blue Candlelight_blue_candleBlock & Itemblock.minecraft.light_blue_candle
Yellow Candleyellow_candleBlock & Itemblock.minecraft.yellow_candle
Lime Candlelime_candleBlock & Itemblock.minecraft.lime_candle
Pink Candlepink_candleBlock & Itemblock.minecraft.pink_candle
Gray Candlegray_candleBlock & Itemblock.minecraft.gray_candle
Light Gray Candlelight_gray_candleBlock & Itemblock.minecraft.light_gray_candle
Cyan Candlecyan_candleBlock & Itemblock.minecraft.cyan_candle
Purple Candlepurple_candleBlock & Itemblock.minecraft.purple_candle
Blue Candleblue_candleBlock & Itemblock.minecraft.blue_candle
Brown Candlebrown_candleBlock & Itemblock.minecraft.brown_candle
Green Candlegreen_candleBlock & Itemblock.minecraft.green_candle
Red Candlered_candleBlock & Itemblock.minecraft.red_candle
Black Candleblack_candleBlock & Itemblock.minecraft.black_candle

Bedrock Edition:

NameIdentifierNumeric ID FormItem ID[i 1]Translation key
Candlecandle667Block & Giveable Item[i 2]Identical[i 3]tile.candle.name
White Candlewhite_candle668Block & Giveable Item[i 2]Identical[i 3]tile.white_candle.name
Orange Candleorange_candle669Block & Giveable Item[i 2]Identical[i 3]tile.orange_candle.name
Magenta Candlemagenta_candle670Block & Giveable Item[i 2]Identical[i 3]tile.magenta_candle.name
Light Blue Candlelight_blue_candle671Block & Giveable Item[i 2]Identical[i 3]tile.light_blue_candle.name
Yellow Candleyellow_candle672Block & Giveable Item[i 2]Identical[i 3]tile.yellow_candle.name
Lime Candlelime_candle673Block & Giveable Item[i 2]Identical[i 3]tile.lime_candle.name
Pink Candlepink_candle674Block & Giveable Item[i 2]Identical[i 3]tile.pink_candle.name
Gray Candlegray_candle675Block & Giveable Item[i 2]Identical[i 3]tile.gray_candle.name
Light Gray Candlelight_gray_candle676Block & Giveable Item[i 2]Identical[i 3]tile.light_gray_candle.name
Cyan Candlecyan_candle677Block & Giveable Item[i 2]Identical[i 3]tile.cyan_candle.name
Purple Candlepurple_candle678Block & Giveable Item[i 2]Identical[i 3]tile.purple_candle.name
Blue Candleblue_candle679Block & Giveable Item[i 2]Identical[i 3]tile.blue_candle.name
Brown Candlebrown_candle680Block & Giveable Item[i 2]Identical[i 3]tile.brown_candle.name
Green Candlegreen_candle681Block & Giveable Item[i 2]Identical[i 3]tile.green_candle.name
Red Candlered_candle682Block & Giveable Item[i 2]Identical[i 3]tile.red_candle.name
Black Candleblack_candle683Block & Giveable Item[i 2]Identical[i 3]tile.black_candle.name
  1. ID of block's direct item form, which is used in savegame files and addons.
  2. a b c d e f g h i j k l m n o p q Available with /give command.
  3. a b c d e f g h i j k l m n o p q The block's direct item form has the same id as the block.

Block states[]

See also: Block states

Java Edition:

Name Default value Allowed values Description
candles11
2
3
4
Number of candles.
litfalsefalse
true
Whether or not these candles are lit.
waterloggedfalsefalse
true
Whether or not there's water in the same place as these candles.

Bedrock Edition:

NameMetadata Bits Default value Allowed valuesValues for
Metadata Bits
Description
candles0x1
0x2
00
1
2
3
0
1
2
3
Number of candles, starting from 1 to 4.
lit0x4falsefalse
true
0
1
Whether or not these candles are lit.

History[]

October 3, 2020Black Candle (lit) JE1 Two Black Candles (lit) JE1 Three Black Candles (lit) JE1 Four White Candles (lit) JE1 Black and white candles are shown unnamed at Minecraft Live 2020 as part of deep dark caves biome.
Java Edition
1.17
{{Extension DPL}}<ul><li>[[Water Bucket|Water Bucket]]<br/>{{Item
| title = Water Bucket
| renewable = Yes
| image = Water Bucket.png
| stackable = No
}}

A '''water bucket''' is a [[bucket]] filled with [[water]].

== Obtaining ==
=== Interacting ===
To fill an empty [[bucket]] with water, {{control|use}} it on a [[water]] source block. The water is consumed in the process. Flowing water does not fill a bucket.

{{control|Using}} an empty bucket on a [[cauldron]] filled with water (water level 3) empties the cauldron and fills the bucket.

Water buckets can also be filled by placing an empty one in the fuel slot of a [[furnace]], and a wet [[sponge]] into the oven slot. The bucket is filled when the [[smelting]] process completes, which also leaves the sponge dry and ready to be reused.

=== Chest Loot ===

{{LootChestItem|water-bucket}}

== Usage ==
{{Control|Using}} a water bucket on a solid block places a water source block against that block, emptying the bucket; using a water bucket on a [[waterlogging|waterloggable]] block waterlogs the block. In [[the Nether]], however, the water evaporates, making a fire extinguishing sound and displays smoke particles while nothing gets placed.

=== Dispensers ===
A [[dispenser]] can be loaded with a water bucket, and when activated it places a water block directly before it, emptying the bucket. A dispenser loaded with an empty bucket and a water source right in front of it draws the source into the bucket when activated.

=== Cauldrons ===
A single water bucket can fill a [[cauldron]], and using an empty bucket on a water-filled cauldron fills the bucket. Empty buckets cannot be filled from partly-filled cauldrons.

=== Filling bucket with mobs ===
Water buckets can be used on a [[fish]], [[axolotl]] or [[tadpole]] to create a [[bucket of aquatic mob]].

=== Transportation ===
{{main|Tutorials/Elevators#Water elevators}}
Water buckets can be used as a means of quickly descending great heights in the [[Overworld]] and [[the End]], either by creating a waterfall or using the water bucket while falling to create a safe water landing.

Water buckets can also be used to climb vertical surfaces anywhere but [[the Nether]] by repeatedly creating higher waterfalls from the bottom and swimming up them.

== Sounds ==
{{el|je}}:
{{Sound table
|sound=Fill water bucket1.ogg
|sound2=Fill water bucket2.ogg
|sound3=Fill water bucket3.ogg
|subtitle=Bucket fills
|source=player
|description=When a bucket is filled with water
|id=item.bucket.fill
|translationkey=subtitles.item.bucket.fill
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Empty water bucket1.ogg
|sound2=Empty water bucket2.ogg
|sound3=Empty water bucket3.ogg
|subtitle=Bucket empties
|source=block
|description=When the bucket is placed
|id=item.bucket.empty
|translationkey=subtitles.item.bucket.empty
|volume=1.0 <ref group=sound>Except for the second copy of {{cd|empty1}}, which is 0.9</ref>
|pitch=1.0
|distance=16
|foot=1}}

{{el|je}}:
{{Sound table
|type=bedrock
|sound=Fill water bucket1.ogg
|sound2=Fill water bucket2.ogg
|sound3=Fill water bucket3.ogg
|source=block
|description=When a bucket is filled with water
|id=bucket.fill_water
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Empty water bucket1.ogg
|sound2=Empty water bucket2.ogg
|sound3=Empty water bucket3.ogg
|source=block
|description=When a water bucket is emptied
|id=bucket.empty_water
|volume=1.0
|pitch=1.0}}
{{Sound table
|rowspan=2
|sound=Water Splash Old.ogg
|source=block
|description=When a water bucket is placed in a cauldron<wbr><ref group=sound name=bucketsplash>{{Bug|MCPE-135919}}</ref>
|id=cauldron.fillwater
|volume=0.1
|pitch=1.0}}
{{Sound table
|source=block
|description=When a water bucket is removed from a cauldron<wbr><ref group=sound name=bucketsplash/>
|id=cauldron.takewater
|volume=0.1
|pitch=1.0
|foot=1}}

==Data values==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Water Bucket
|spritetype=item
|nameid=water_bucket
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Water Bucket
|spritetype=item
|nameid=water_bucket
|aliasid=bucket / 8
|id=362
|form=item
|translationkey=item.bucketWater.name
|foot=1}}

== Advancements ==
{{load advancements|Tactical fishing;The Cutest Predator;Bukkit bukkit}}

==History==
{{History|java infdev}}
{{History||20100615|[[File:Water Bucket JE1 BE1.png|32px]] Added water buckets.}}
{{History|java alpha}}
{{History||v1.2.6|{{control|use|text=Using}} a water bucket on [[block]]s with GUIs ([[chest]]s, [[furnace]]s, etc.) no longer places the water.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Water buckets can now be used to fill [[cauldron]]s.}}
{{History||1.3.1|snap=12w15a|[[Dispenser]]s have now been given the ability to dispense water buckets. They can also collect if activated again.}}
{{History||1.8|snap=14w25a|A water bucket is now shown as the icon when [[water]] is used as a layer in [[Superflat]].}}
{{History|||snap=14w25b|[[Smelting]] a wet [[sponge]] while an empty bucket is in the fuel slot fills the bucket with water.}}
{{History||1.9|snap=15w44a|A full [[cauldron]] can now be emptied with a bucket, yielding a water bucket.}}
{{History|||snap=15w50a|Added sounds for collecting and pouring water using a bucket.}}
{{History||1.13|snap=17w47a|Prior to the ''[[Flattening]]'' this item's numerical ID was 326.}}
{{History|||snap=18w08b|Water buckets can now be used to pick up [[fish]] mobs.}}
{{History||1.14|snap=18w43a|[[File:Water Bucket JE2 BE2.png|32px]] The texture of water buckets has now been changed.
|Water buckets can now suck up liquids directly adjacent to the side they are facing. How this works is unknown, given the water bucket clearly already contains a liquid.}}
{{History|||snap=18w48a|Water buckets can now be found in [[chest]]s in [[village]] fishing cottages.}}
{{History|||snap=19w02a|Water buckets can now be used to put out [[campfire]]s.}}
{{History||1.17|snap=20w51a|Water buckets can now be used to collect [[axolotl]]s.}}
{{History||1.19|snap=22w11a|Water buckets can now be used to collect [[tadpole]]s.}}
{{History||1.19.3|snap=22w45a|Water buckets can now be emptied into [[waterlogging|waterlogged]] blocks, instead of placing water against them.<ref>{{bug|MC-127110|||Fixed}}</ref>}}
{{History|upcoming java}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=23w31a|[[Wandering trader]]s now have a chance to [[trading|buy]] a water bucket from the player.}}

{{History|pocket alpha}}
{{History||v0.7.0|[[File:Water Bucket JE1 BE1.png|32px]] Added water buckets.
|Water buckets were simply called "Bucket".}}
{{History||v0.7.4|Water buckets no longer stack to 64.}}
{{History||v0.14.0|snap=build 1|Dispensers can now shoot out water from water buckets.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Water buckets can now be used to pick up [[fish mob]]s.
|Moved all bucket items, including water buckets, from the Equipment tab to the Items tab in the [[Creative inventory]].{{verify|type=update}}{{info needed}}<!---please check snapshots, only 1 major release version was checked each--->}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Water Bucket JE2 BE2.png|32px]] The texture of water buckets has now been changed.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of water buckets has been changed from <code>bucket/8</code> to <code>water_bucket</code>.}}
{{History||1.17.0|snap=beta 1.16.230.52|Water buckets can now be used to collect [[axolotl]]s.}}
{{History||1.18.10|snap=beta 1.18.10.24|Water buckets can now be used to collect [[tadpole]]s behind the "Wild Update" experimental toggle.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Water Bucket JE1 BE1.png|32px]] Added water buckets.}}
{{History||xbox=TU9|[[Dispenser]]s have now been given the ability to shoot out the [[liquids]] inside water buckets. They can also suck up the liquids if activated again, but a bug prevents the empty [[bucket]] from being filled. Whether this was ever fixed is unknown.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Water Bucket JE2 BE2.png|32px]] The texture of water buckets has now been changed.}}

{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Water Bucket JE1 BE1.png|32px]] Added water buckets.}}
{{History|foot}}

==Issues==
{{issue list}}

==Gallery==
<gallery>
Water Bucket SDGP.png|Water bucket in the [[Super Duper Graphics Pack]].
</gallery>

==References==
{{Reflist}}

{{Items}}

[[Category:Renewable resources]]
[[Category:Tools]]

[[de:Wassereimer]]
[[ja:水入りバケツ]]
[[pt:Balde de água]]
[[th:ถังน้ำ]]
[[uk:Відро води]]
[[zh:水桶]]</li><li>[[Sweet Berries|Sweet Berries]]<br/>{{Block
| title = Sweet Berries
| image = <gallery>
Sweet Berry Bush Age 0.png| Age 0
Sweet Berry Bush Age 1.png| Age 1
Sweet Berry Bush Age 2.png| Age 2
Sweet Berry Bush Age 3.png| Age 3
</gallery>
| image2 = Sweet Berries JE1 BE1.png
| transparent = Yes
| light = No
| tool = Any
| renewable = Yes
| stackable = Yes (64)
| heals = {{hunger|2}}
| flammable = Yes (60 java, 30 bedrock)
| lavasusceptible = No
}}

'''Sweet berries''' are a [[food]] [[item]] obtained from sweet berry bushes and are used to plant them.

'''Sweet berry bushes''' are quick-growing, [[Bone Meal|bonemealable]] [[Plant|plants]] that grow sweet berries, and damage and slow [[Player|players]] and most [[Mob|mobs]] moving through them. They can be found naturally in [[taiga]] and [[Snowy Taiga|snowy taiga]] biomes.

== Obtaining ==

=== Breaking ===
{{See also|Fortune#Discrete random}}
Sweet berry bushes can be mined instantly with any tool or by hand. A mature sweet berry bush yields 2–3 sweet berries. On its third growth stage, it yields 1–2 sweet berries. Each level of [[Fortune]] can increase the amount of drops by 1.

{{IN|ps4}}, the sweet berries drop into the player's inventory. In other editions, they drop on the ground.

=== Natural generation ===
Berry bushes commonly generate in [[taiga]] and [[snowy taiga]] biomes. Each [[chunk]] has {{frac|1|12}} chance to generate sweet berry bushes in [[random patch]]es. They also generate in both [[old growth pine taiga]] and [[old growth spruce taiga]].

=== Chest loot ===
{{LootChestItem|sweet-berries}}

=== Post-generation ===
Sweet berries can be collected from a sweet berry bush by {{control|using}} or {{control|breaking}} it, which yield 1–2 sweet berries in its third growth stage, and 2–3 sweet berries in its final growth stage.

== Usage ==
=== Placement ===
Placing [[sweet berries]] on a [[grass block]], [[dirt]], [[podzol]], [[coarse dirt]], [[farmland]]{{Only|Java}}, or [[moss block]] creates a small sweet berry bush that eventually becomes a fully grown sweet berry bush.

=== Growth ===
A sweet berry bush grows through four stages after it is planted. Its first growth stage is a small bush without any berries. It becomes a grown plant in its second stage, and produces berries in its third and fourth growth stage. The bush needs to be in light level 9 or greater to grow. {{control|Using}} [[bone meal]] on it increases its growth stage by one, and at full maturity, ejects the sweet berry item. The bush can be placed on a 1 block high space, but it cannot grow with a full, non-transparent block immediately above it.

=== Food ===

To eat sweet berries, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|2}} [[hunger]] and 0.4{{only|je|short=1}} / 1.2{{only|be|short=1}} hunger [[saturation]].

=== Composting ===
Placing sweet berries into a [[composter]] has a 30% chance of raising the compost level by 1.

=== Breeding ===
Sweet berries can be fed to [[fox]]es to [[breeding|breed]] them. Foxes are similar to cats when being fed as a wild animal; a sudden movement by the [[player]] may cause the fox to flee even if the player holds sweet berries. A baby fox bred by a [[player]] trusts the player and does not flee.

=== Trading ===
Master-level butcher [[villager]]s offer to [[trading|buy]] 10 sweet berries for an [[emerald]].

=== Entity movement ===

A sweet berry bush (at any stage) slows down all [[entity|entities]] (except [[Item (entity)|items]]) passing through it. At stage 1 and higher, it causes damage. [[Fox]]es are immune to both characteristics, however. Sweet berry bushes deal {{hp|1}} [[damage]] every 0.5 seconds, only if the entity is moving in the hitbox of the bush. Entities that move through sweet berry bushes slow down to about 34.05% of their normal speed, similar to how a [[cobweb]] slows down mobs to 15% of normal speed. This makes it impossible to jump a full [[block]] while inside the bush.

Mobs at standard block height in a [[minecart]] are not damaged when the minecart is pushed through sweet berries. Players in a sweet berry bush take no damage except from horizontal movement, but are unable to jump out of the bush, similar to a cobweb.

=== Bees ===
[[Bee]]s pollinate sweet berry bushes, and then increase the honey level in [[beehive]]s and bee nests by 1.{{only|java}}

== Sounds ==
=== Generic ===
==== Block ====
{{Sound table/Block/Sweet berry bush}}
==== Item ====
{{Sound table/Entity/Food}}
=== Unique ===
{{edition|java}}:
{{Sound table
|rowspan=2
|sound=Berries pick1.ogg
|sound2=Berries pick2.ogg
|subtitle=Berries pop
|source=block
|description=When sweet berries are picked by a player
|id=block.sweet_berry_bush.pick_berries
|translationkey=subtitles.item.berries.pick
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
{{Sound table
|subtitle=Berries pop
|source=block
|description=When sweet berries are picked by a fox
|id=block.sweet_berry_bush.pick_berries
|translationkey=subtitles.item.berries.pick
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Player hurt sweet berry bush1.ogg
|sound2=Player hurt sweet berry bush2.ogg
|subtitle=Player hurts
|source=player
|description=When a player is damaged by touching a sweet berry bush
|id=entity.player.hurt_sweet_berry_bush
|translationkey=subtitles.entity.player.hurt
|volume=1.0
|pitch=0.8-1.2
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Berries pick1.ogg
|sound2=Berries pick2.ogg
|source=block
|description=When sweet berries are picked
|id=block.sweet_berry_bush.pick
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Player hurt sweet berry bush1.ogg
|sound2=Player hurt sweet berry bush2.ogg
|source=block
|description=When a player is damaged by touching a sweet berry bush
|id=block.sweet_berry_bush.hurt
|volume=1.0
|pitch=1.0
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Sweet Berry Bush
|spritetype=block
|nameid=sweet_berry_bush
|blocktags=azalea_log_replaceable, bee_growables
|form=block}}
{{ID table
|displayname=Sweet Berries
|spritetype=item
|nameid=sweet_berries
|itemtags=fox_food
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Sweet Berry Bush
|spritetype=block
|nameid=sweet_berry_bush
|id=462
|form=block}}
{{ID table
|displayname=Sweet Berries
|spritetype=item
|nameid=sweet_berries
|id=287
|form=item
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

==Advancements==
{{Load advancements|Husbandry;A Balanced Diet;The Parrots and the Bats;Two by Two}}

== History ==
{{History||September 26, 2018|link={{tweet|minecraft|1044587405779451906}}|Berries are announced to be part of the [[biome]] vote at [[MINECON Earth 2018]].}}
{{History||September 29, 2018|link={{tweet|minecraft|1046097775199498245}}|[[Taiga]] wins the [[biome]] vote, meaning berries are to be added to the game first.}}

{{History|java}}
{{History||December 3, 2018|link={{tweet|cojomax99|1069586461173919745}}|[[Cojomax99]] tweets an image of some berries.}}
{{History||1.14|snap=18w49a|[[File:Sweet Berry Bush Age 0 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 1 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 2 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 3 JE1 BE1.png|32px]] Added sweet berry bushes.|
[[File:Sweet Berries JE1 BE1.png|32px]] Added sweet berries.}}
{{History|||snap=18w50a|Sweet berries can now be found within [[taiga]] [[village]] loot [[chest]]s.}}
{{History|||snap=19w03a|Placing a sweet berry into the new [[composter]] has a 10% chance of raising the compost level by 1.
|Added [[sound]]s for sweet berry bushes.}}
{{History|||snap=19w05a|Sweet berries now have a 30% chance of increasing the compost level in a composter by 1.
|The [[sound]] for planting sweet berries has been changed.}}
{{History|||snap=19w07a|Sweet berries can now be fed to [[fox]]es to [[breeding|breed]] them.}}
{{History|||snap=19w11a|Butcher [[villager]]s now [[trading|buy]] sweet berries.}}
{{History||1.15|snap=19w34a|[[Bee]]s can now pollinate sweet berry bushes.}}
{{History|||snap=Pre-Release 2|Sweet berries now generate in [[giant tree taiga]] biomes.}}
{{History||1.16|snap=Pre-release 1|Sweet berry bushes no longer prevent mob spawning inside them.}}
{{History||1.17|snap=21w20a|The sound event for picking berries has been changed as to align better with that of glow berries.<ref>{{bug|MC-220063}}</ref>}}
{{History||1.18|snap=1.18-pre5|Sweet berry bushes in taigas are about 4 times more common than in previous snapshots.}}

{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Sweet Berries JE1 BE1.png|32px]] Added sweet berries, which are available only through Experimental Gameplay.|[[File:Sweet Berry Bush Age 0 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 1 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 2 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 3 JE1 BE1.png|32px]] Added sweet berry bushes, available only through Experimental Gameplay.}}
{{History||1.11.0|snap=beta 1.11.0.1|Sweet berries can now be used to fill [[composter]]s.}}
{{History|||snap=beta 1.11.0.3|Sweet berries and sweet berry bushes have been fully implemented and are now separate from Experimental Gameplay.}}
{{History|||snap=beta 1.11.0.4|Sweet berries can now be [[trading|sold]] to butcher [[villager]]s.}}
{{History||1.13.0|snap=beta 1.13.0.1|Sweet berries can now be fed to [[fox]]es to [[breeding|breed]] them.}}
{{History||1.14.0|snap=beta 1.14.0.1|[[Bee]]s can now pollinate sweet berry bushes.}}
{{History||1.16.100|snap=beta 1.16.100.54|Sweet berry bushes now properly damage entities.<ref>{{Bug|MCPE-56142}}</ref>}}
{{History||1.17.0|snap=beta 1.17.0.56|Bees no longer gather nectar from sweet berry bushes.}}

{{History|PS4}}
{{History||1.91|[[File:Sweet Berries JE1 BE1.png|32px]] Added sweet berries.|[[File:Sweet Berry Bush Age 0 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 1 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 2 JE1 BE1.png|32px]] [[File:Sweet Berry Bush Age 3 JE1 BE1.png|32px]] Added sweet berry bushes.}}
{{History|foot}}

=== Sweet berry bush "item" ===
{{:Technical blocks/Sweet Berry Bush}}

== Issues ==
{{issue list|berry|berries|sweet berry|sweet berries|berry bush|sweet berry bush}}

==Trivia==
* {{IN|java}}, sweet berry bushes absorb [[fall damage]] like [[water]].<ref>{{bug|MC-149990|||WAI}}</ref>
* Foxes harvest mature sweet berry bushes that have grown into their third or fourth stage. Unlike how carrots eaten by rabbits are destroyed and not dropped as items, sweet berry bushes harvested by foxes drop as items, although the fox may pick up one of the dropped berries. The bush remains intact, allowing for automatic sweet berry farms.

== Gallery ==
<gallery>
Berry Bush.png|A close-up look of a sweet berry bush.
Naturally generated berry bushes.png|A naturally generated sweet berry bush.
Multiplebushes.png|Multiple bushes of sweet berries in Taiga biome.
BerryBushCloseToRavine.png|A berry bush that is close to a ravine.
Cozy Cabin Berries.jpg|Berry bushes near a cozy cabin.
</gallery>

==References==
{{Reflist}}

{{Blocks|vegetation}}
{{Items}}

[[Category:Food]]
[[Category:Plants]]
[[Category:Non-solid blocks]]
[[Category:Natural blocks]]
[[Category:Flammable blocks]]

[[cs:Sladké bobule]]
[[es:Bayas dulces]]
[[de:Süßbeeren]]
[[fr:Baies sucrées]]
[[ja:スイートベリー]]
[[ko:달콤한 열매]]
[[pl:Słodkie jagody]]
[[pt:Bagas doces]]
[[ru:Сладкие ягоды]]
[[th:เบอร์รีหวาน]]
[[zh:甜浆果]]</li></ul>
20w45aCandle White Candle Light Gray Candle Gray Candle Black Candle Brown Candle Red Candle Orange Candle Yellow Candle Lime Candle Green Candle Cyan Candle Light Blue Candle Blue Candle Purple Candle Magenta Candle Pink Candle
Candle (lit) JE1 White Candle (lit) JE1 Light Gray Candle (lit) JE1 Gray Candle (lit) JE1 Black Candle (lit) JE1 Brown Candle (lit) JE1 Red Candle (lit) JE1 Orange Candle (lit) JE1 Yellow Candle (lit) JE1 Lime Candle (lit) JE1 Green Candle (lit) JE1 Cyan Candle (lit) JE1 Light Blue Candle (lit) JE1 Blue Candle (lit) JE1 Purple Candle (lit) JE1 Magenta Candle (lit) JE1 Pink Candle (lit) JE1
Candle (item) JE1 White Candle (item) JE1 Light Gray Candle (item) JE1 Gray Candle (item) JE1 Black Candle (item) JE1 Brown Candle (item) JE1 Red Candle (item) JE1 Orange Candle (item) JE1 Yellow Candle (item) JE1 Lime Candle (item) JE1 Green Candle (item) JE1 Cyan Candle (item) JE1 Light Blue Candle (item) JE1 Blue Candle (item) JE1 Purple Candle (item) JE1 Magenta Candle (item) JE1 Pink Candle (item) JE1 Added candles.
20w46aCandle (item) JE2 White Candle (item) JE2 Light Gray Candle (item) JE2 Gray Candle (item) JE2 Black Candle (item) JE2 Brown Candle (item) JE2 Red Candle (item) JE2 Orange Candle (item) JE2 Yellow Candle (item) JE2 Lime Candle (item) JE2 Green Candle (item) JE2 Cyan Candle (item) JE2 Light Blue Candle (item) JE2 Blue Candle (item) JE2 Purple Candle (item) JE2 Magenta Candle (item) JE2 Pink Candle (item) JE2 The textures of candle items have been changed.
20w48aCandle (item) JE3 White Candle (item) JE3 Light Gray Candle (item) JE3 Gray Candle (item) JE3 Black Candle (item) JE3 Brown Candle (item) JE3 Red Candle (item) JE3 Orange Candle (item) JE3 Yellow Candle (item) JE3 Lime Candle (item) JE3 Green Candle (item) JE3 Cyan Candle (item) JE3 Light Blue Candle (item) JE3 Blue Candle (item) JE3 Purple Candle (item) JE3 Magenta Candle (item) JE3 Pink Candle (item) JE3 BE1 The textures of candle items have been changed again, removing the smaller candle in the inventory sprite.
Candles can no longer be placed on blocks that are not solid, such as chests and cobwebs.
21w13aCandles can now be extinguished by splash water bottles and by lingering water bottles.
21w18aCandles can no longer be extinguished when the player is in adventure mode.
21w19aCandles are now only accessible through commands.
Pre-release 1Candle (lit) JE2 White Candle (lit) JE2 Light Gray Candle (lit) JE2 Gray Candle (lit) JE2 Black Candle (lit) JE2 Brown Candle (lit) JE2 Red Candle (lit) JE2 Orange Candle (lit) JE2 Yellow Candle (lit) JE2 Lime Candle (lit) JE2 Green Candle (lit) JE2 Cyan Candle (lit) JE2 Light Blue Candle (lit) JE2 Blue Candle (lit) JE2 Purple Candle (lit) JE2 Magenta Candle (lit) JE2 Pink Candle (lit) JE2 Candles now have a different texture when lit, having the top 20 pixels of the candle being lighter.
Candles have been added back into the creative inventory.
Recipes for dyeing and crafting candles are once again available.
May 28, 2021White Candle (lit) (pre-release) Light Gray Candle (lit) (pre-release) Gray Candle (lit) (pre-release) Black Candle (lit) (pre-release) Brown Candle (lit) (pre-release) Red Candle (lit) (pre-release) Orange Candle (lit) (pre-release) Yellow Candle (lit) (pre-release) Lime Candle (lit) (pre-release) Green Candle (lit) (pre-release) Cyan Candle (lit) (pre-release) Light Blue Candle (lit) (pre-release) Blue Candle (lit) (pre-release) Purple Candle (lit) (pre-release) Magenta Candle (lit) (pre-release) Pink Candle (lit) (pre-release) JAPPA tweets a new iteration of the new lit dyed candle textures.
May 31, 2021White Candle (lit) JE3 Light Gray Candle (lit) JE3 Gray Candle (lit) JE3 Black Candle (lit) JE3 Brown Candle (lit) JE3 Red Candle (lit) JE3 Orange Candle (lit) JE3 Yellow Candle (lit) JE3 Lime Candle (lit) JE3 Green Candle (lit) JE3 Cyan Candle (lit) JE3 Light Blue Candle (lit) JE3 Blue Candle (lit) JE3 Purple Candle (lit) JE3 Magenta Candle (lit) JE3 Pink Candle (lit) JE3 JAPPA tweets another iteration of the new lit dyed candle textures.
1.17
{{Extension DPL}}<ul><li>[[Raw Chicken|Raw Chicken]]<br/>{{about|a food item|the mob "chicken"|Chicken}}{{About|a food item|the cooked version|Cooked Chicken}}{{Item
| title = Raw Chicken
| image = Raw Chicken.png
| heals = {{hunger|2}}
| effects = {{EffectLink|Hunger}} (0:30) (30% chance)
| renewable = Yes
| stackable = Yes (64)
}}

'''Raw chicken''' is a [[food]] item that can be eaten by the [[player]]. It can be cooked in a [[furnace]], [[smoker]], or a [[campfire]] to make [[cooked chicken]].

==Obtaining==

===Mob loot ===

Upon death, an adult [[chicken]] drops 1 raw chicken. The maximum is increased by 1 per level of [[Looting]], for a maximum of 1-4 with Looting III. Chickens that die while on [[fire]] drop [[cooked chicken]] instead.

===Cat gifts===
{{main|Cat#Gifts}}

Tamed [[cat]]s have a 70% chance to give the [[player]] a gift as they wake up from a [[bed]], and the gift has a 16.13% chance to be raw chicken.

==Usage==

=== Food===

To eat raw chicken, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|2}} hunger and 1.2 hunger [[Hunger#Mechanics|saturation]], but has a 30% chance of inflicting food poisoning (the {{EffectLink|link=Hunger (status effect)|Hunger}} effect for 30 seconds).

<nowiki>*This has a similar effect as [[Rotten Flesh]].

===Smelting ingredient===

{{Smelting
|showname=1
|Raw Chicken
|Cooked Chicken
|0.35
}}

===Wolves===

Raw chicken can be used to [[breed]] and heal tamed [[wolves]], lead them around, and make baby tamed wolves grow up faster by 10% of the remaining time.

Wolves are at no risk of food poisoning.

===Trading===
Novice-level Butcher villagers have a {{frac|1|3}} chance to buy 14 raw chicken for an emerald.{{only|bedrock}}

Novice-level Butcher villagers have a 50% chance of offering to buy 14 raw chicken for an emerald.{{only|java}}

==Sounds==
{{Sound table/Entity/Food}}

==Data values==

===ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Raw Chicken
|spritetype=item
|nameid=chicken
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Raw Chicken
|spritetype=item
|nameid=chicken
|id=275
|form=item
|foot=1}}

==Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}

==Video==
<div style="text-align:center">{{yt|ux362Ae8Llc}}</div>

==History==

{{History|java beta}}
{{History||July 19, 2011|link=https://twitter.com/jeb_/status/93330811608240128|A teaser image for [[cooked chicken]] is revealed by [[Jeb]].}}
{{History||July 19, 2011|link=https://twitter.com/jeb_/status/93946593748852736|[[File:Raw Chicken (pre-release).png|32px]] Jens reveals raw chicken with changed texture based on feedback, saying "the chicken may be too smooth compared to other MC [[item]]s."<ref>https://twitter.com/jeb_/status/93335976298033152</ref>}}
{{History||1.8|snap=Pre-release|[[File:Raw Chicken JE1 BE1.png|32px]] Added raw chicken. 
|Raw chicken is a new [[drops|drop]], obtained by killing a [[chicken]], usually along with a [[feather]].}}
{{History|java}}
{{History||1.2.1|snap=12w03a|Raw chicken can now be used to [[breeding|breed]] wolves.}}
{{History||1.3.1|snap=12w21a|Raw chicken can now be [[trading|sold]] to farmer [[villager]]s, at 14–17 raw chicken for 1 [[emerald]].}}
{{History||1.4.2|snap=12w37a|[[File:Raw Chicken JE2 BE2.png|32px]] The texture of raw chicken has been changed, so that it no longer has a dark outline.}}
{{History||1.8|snap=14w02a|Trading has been changed: butcher [[villager]]s now [[trading|buy]] 14–18 raw chicken for 1 [[emerald]].
|Farmer villagers no longer [[trading|trade]] raw chicken.}}
{{History||1.9|snap=15w43a|[[Chicken]]s can now [[drops|drop]] several raw chickens, if killed with a [[Looting]]-[[enchanting|enchanted]] [[weapon]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 365.}}
{{History||1.14|snap=18w43a|[[File:Raw Chicken JE3 BE3.png|32px]] The texture of raw chicken has been changed.}}
{{History|||snap=18w44a|[[Cat]]s now offer raw chicken as [[Cat#Gifts|gift]]s.}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Raw Chicken JE1 BE1.png|32px]] Added raw chicken.}}
{{History||v0.5.0|Raw chicken now restores {{hp|2}} instead of {{hp|1}}.}}
{{History||v0.8.0|snap=build 1|[[File:Raw Chicken JE2 BE2.png|32px]] The texture of raw chicken has been changed, so that it no longer has a dark outline.}}
{{History||v0.11.0|snap=build 1|Raw chicken now sometimes inflicts the [[hunger]] effect, despite the hunger bar not existing yet.}}
{{History||v0.12.1|snap=build 1|Raw chicken now restores [[hunger]] instead of [[health]].}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|Butcher [[villager]]s now [[trading|buy]] 14-18 raw chicken for one [[emerald]].}}
{{History|bedrock}}
{{History||?|[[Chicken]]s can now [[drops|drop]] several raw chicken, if killed with a [[Looting]]-[[enchanting|enchanted]] [[weapon]].}} 
{{History||1.8.0|snap=beta 1.8.0.8|Tamed [[cat]]s can now give the [[player]] raw chicken as a gift.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Raw Chicken JE3 BE3.png|32px]] The texture of raw chicken has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Butcher [[villager]]s now have {{frac|1|3}} of a chance to [[trading|buy]] 14 raw chicken.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|[[File:Raw Chicken JE1 BE1.png|32px]] Added raw chicken.}}
{{History||xbox=TU12|[[File:Raw Chicken JE2 BE2.png|32px]] The texture of raw chicken has been changed, so that it no longer has a dark outline.}}
{{History|PS4}}
{{History||1.90|[[File:Raw Chicken JE3 BE3.png|32px]] The texture of raw chicken has been changed.}}

{{History|new3DS}}
{{History||0.1.0|[[File:Raw Chicken JE2 BE2.png|32px]] Added raw chicken.}}
{{History|foot}}

==Issues==

{{issue list}}

==Gallery ==
<gallery>
Beta 1.8 Dev Chicken 2.png|First image of raw chicken.
</gallery>

==References==
{{reflist}}

{{Items}}

[[de:Rohes Hühnchen]]
[[es:Pollo crudo]]
[[fr:Poulet cru]]
[[hu:Nyers csirkehús]]
[[ja:生の鶏肉]]
[[ko:익히지 않은 닭고기]]
[[nl:Rauwe kip]]
[[pl:Surowy kurczak]]
[[pt:Frango cru]]
[[ru:Сырая курятина]]
[[th:ไก่ดิบ]]
[[zh:生鸡肉]]
[[Category:Food]]
[[Category:Renewable resources]]</li><li>[[Hopper|Hopper]]<br/>{{About|the block|the crash utility|Hopper (crash utility)}}
{{Block
|image=<gallery>
Hopper (D).png|Java
Hopper (D) BE.png|Bedrock
</gallery>
|extratext = View [[#Gallery|all renders]]
|transparent=Yes
|light=No
|tool=wooden pickaxe
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}}
A '''hopper''' is a low-capacity storage [[block]] that can be used to collect [[item (entity)|item entities]] directly above it, as well as to transfer [[item]]s into and out of other containers. A hopper can be locked with [[Redstone Dust|redstone power]] to stop it from moving items into or out of itself.

== Obtaining ==
=== Breaking ===
To obtain a hopper, {{control|mine}} it with a [[pickaxe]]. Using any other item to mine a hopper drops only its contents.
{{breaking row|horizontal=1|Hopper|Pickaxe|Wood|foot=1}}

===Crafting===
A hopper can be crafted from 5 iron ingots and a chest.
{{Crafting
|A1= Iron Ingot
|C1= Iron Ingot
|A2= Iron Ingot
|B2= Chest
|C2= Iron Ingot
|B3= Iron Ingot
|Output= Hopper
|type= Redstone
}}

==Usage==
{{see also|Tutorials/Hopper}}
[[File:Hopper aligment.png|Hoppers can face down or sideways.|thumb]]

A hopper can be used as a container, as a crafting ingredient, and as a redstone component.

A hopper has an "output" tube at its bottom that can face down or sideways and provides a visual indication of which block the hopper is set up to drop its items into, if that block has an inventory. To place a hopper, use the {{control|Place Block}} control while aiming at the surface to which its output should face (Hoppers ''do not'' orient themselves automatically). To place a hopper directly on the face of an already interactable block, the player can {{control|sneak}} while placing the hopper. Attempting to place a hopper aimed on the bottom face of a block instead faces downward. With some blocks, such as the [[furnace]] and [[brewing stand]], the hopper has multiple uses. A hopper does not change direction after placement, and it is not attached to the container it faces; the container can be removed or replaced, and the hopper remains unchanged.

Hoppers cannot be moved by [[piston]]s.{{only|java}} Despite not being a solid block, attached blocks such as [[rail]]s, [[lever]]s, [[tripwire]] and [[redstone]] dust can be placed on top of hoppers, but not on their sides.

===Container===
[[File:Hopper GUI.png|thumb|176px|Hopper GUI showing the hopper's five slots of inventory at the top and the player's inventory below.]]

A hopper can be used as a container and has 5 slots of inventory space.

To open the hopper GUI, use the {{control|use item|text=Use Item/Place Block}} [[control]]. To move items between the hopper inventory and the player inventory or hotbar while the hopper GUI is open, drag or shift-click the items. To exit the hopper GUI, use the {{key|Esc}} key, B button or circle button, depending on the device.

By default, the GUI of a hopper is labeled "Item Hopper". A hopper's GUI label can be changed by naming the hopper in an [[anvil]] before placing it, or, {{in|java}}, by using the [[Commands#data|data]] command (for example, to label a hopper at (0,64,0) "Steve's Hopper", use <code>/data merge block 0 64 0 {CustomName:'"Steve's Hopper"'}</code>).

{{IN|java}}, a hopper's GUI can be "locked" (or subsequently unlocked) by setting the hopper's <code>Lock</code> tag with the [[Commands#data|data]] command. If a hopper's <code>Lock</code> tag is not blank, the hopper cannot be accessed except by players holding an item with the same name as the <code>Lock</code> tag's text. For example, to lock a hopper at (0,64,0) so that only players holding an item named "Steve's Key" can access the hopper, use <code>/data merge block 0 64 0 {Lock:"Steve's Key"}</code>.

===Crafting ingredient===
A hopper can be used to craft a [[minecart with hopper]].
{{crafting usage}}

===Redstone component===
{{see also|Redstone circuit|Redstone components#Hopper}}
[[File:Hopper logic flowchart.png|thumb|Flowchart of hopper logic]]

While a hopper is ''not'' powered by redstone signals, it operates with three functions:

*'''Collect''' [[Item (entity)|item entities]] (free-floating items in the world) into its inventory from the space above it
*'''Pull''' a single item into its inventory from a container above it
*'''Push''' a single item from its own inventory into a container it faces

A hopper first attempts to push any items inside it. Afterward, it checks if the block above it is a type of container. If so, it attempts to pull from it. Otherwise, the hopper attempts to collect item entities. Notably, hoppers can push to and pull from other hoppers, forming '''hopper pipes''' or '''hopper chains''', which allow transporting items across several blocks and are further discussed below.

====Redstone signals====
When a hopper receives a redstone signal (and is considered to be "activated"), all three functions stop. To avoid confusion over the terms "activated" and "deactivated", powered hoppers are often described as being '''locked''' and unpowered hoppers described as being '''unlocked'''. Hoppers can be powered by [[Redstone_mechanics#Power|soft powered]] blocks, meaning a [[redstone dust]] trail pointing into a block touching the hopper locks it just as effectively as a [[redstone block]] or any other [[Redstone components#Power components|power component]] touching the hopper. When the hopper is unlocked during a redstone tick, it does not push or pull/collect during the same tick, but has a delay of 1 redstone tick instead.

While a locked hopper does not push or pull/collect items, it may still receive items from [[dispenser]]s, [[dropper]]s and other hoppers, and may have its items pulled out by another hopper beneath it. Hence, the item flow in a horizontal hopper pipe may be stopped by locking just one of the hoppers, but stopping a vertical hopper pipe requires locking two adjacent hoppers at the same time, such that both the pushing of the top one and the pulling of the bottom one are stopped.  

A hopper does not output any redstone signals by itself, but its fullness can be read using a [[Redstone Comparator|redstone comparator]], which needs to be placed next to it and facing away from it. An empty hopper outputs a signal strength of 0 and a completely full hopper outputs a signal strength of 15. Notably, a single stackable item (16 or 64) outputs a signal strength of 1 and a single non-stackable item outputs a signal strength of 3.  

{{IN|Java}}, if the hopper being read is part of a horizontal hopper pipe, the comparator can individually read each item passing through the chain, because items are pushed through the hoppers one by one at a speed that is manageable by the comparator. If there is an uninterrupted stream of items, the comparator does not switch off in between items. On the other hand, in a vertical hopper pipe, some of the hoppers may never produce a reading above 0, even with a continuous stream of items, because pushes and pulls both occur in the same game tick: The hoppers' items get pulled out a single game tick after they're pushed in and this isn't measurable by a comparator, because comparators need measurements lasting at least 1.5 redstone ticks to produce a reading.  

====Collecting items====
A hopper collects items dropped on top of it if the space above the hopper not occupied by a storage block. Items are gathered from the entire 1 block space above the hopper, meaning that items sitting on partial blocks such as [[soul sand]] directly above a hopper can be collected.<ref>https://bugs.mojang.com/browse/MCPE-55824</ref> It is also possible for a hopper to collect items from inside a full, solid block, a situation that might come from items rising up through solid blocks or being [[commands/summon|summoned]]. Item entities are not collected when they are outside of the collection area however; for example, items on top of a stone block directly above a hopper are not collected. Collected items are placed in the leftmost empty slot of a hopper's inventory.

{{IN|java}}, if there is no container above the hopper, then the hopper collects dropped items in the order in which they landed on the hopper. This order is remembered even while a hopper is locked. For instance, if a hopper is locked under a carpet while a fully equipped [[armor stand]] is broken above it, then it always collects items in this order when it is unlocked: [[armor stand]], [[boots]], [[leggings]], [[chestplates]], [[helmets]]. This is due to the order in which these items land.{{Verify|Wouldn't this be due to the order in which the game creates the item entities that drop drop from the armor stand?}} {{IN|Bedrock}}, hoppers do not remember the order in which items land on the hopper. Instead, hoppers with multiple dropped items above them collect the items in the order in which they entered the chunk in which the hopper is located. Items that drop from a broken armor stand are collected in a random order.<ref>https://bugs.mojang.com/browse/MCPE-120586</ref>

Hoppers usually check for dropped items every [[game tick]] and they can collect items even before they are picked up by a [[player]]{{Verify|Does this happen always, or sometimes, and in Java only or also in Bedrock?}} or destroyed by [[lava]]. However, {{In|Bedrock}} hoppers have a "collection cooldown" time. After collecting an item (or stack of items), a hopper waits {{tooltip|4 redstone ticks|8 game ticks}} (0.4 seconds, barring lag) before attempting to collect again.

Hoppers collect groups of items all at once rather than collecting them as single items one at a time. As a result, hoppers can collect item entities much faster than they can pull items from a container. Pulling from a moving [[minecart with chest]] or [[minecart with hopper]] is even slower, since the minecart is not always above the hopper.

====Pushing and pulling items====
A hopper with a storage container above it (such as a [[furnace]], [[chest]], [[dropper]], [[composter]], or another hopper) attempts to pull from the container instead of checking for floating items above it, and hence can not collect items.  A hopper always tries to push or pull items using the leftmost available slot. When a hopper is removing items from a chest, the items disappear from left to right. Similarly, when filling up a chest, the chest fills up from left to right. Hoppers prioritize pulling from the first slot of a container over pulling into the first hopper slot. If a hopper has stone in its first slot and nothing in its second while the container it is pulling from has chicken in its first slot but stone in the second, the hopper pulls the chicken from the first slot of the container into its empty second slot. However, if the hopper is unable to pull the chicken, such as if all slots are filled with stone, the hopper pulls the stone from the second slot of the container instead. Similarly, hoppers prioritize pushing from their first slot over pushing into the first slot of a container. If a hopper has stone in its first slot and chicken in its second while the container it is pushing to has chicken it its first slot but stone in the second, the hopper pushes stone from its first slot into the second slot of the container.

In [[Java Edition]] the checks done by a hopper while pulling generally require less processing than the checks done by a hopper attempting collection. Therefore, a chain of hoppers topped with storage containers rather than air/solid blocks has better performance (measured as milliseconds of processing per tick) and lower potential for processing lag. <ref name=":0">https://www.youtube.com/watch?v=LC3ZOOI1Rf0</ref> The performance improvement achieved is correlated with the number of storage slots the container has. Placing composters (with no storage slots but still with custom output logic) on top of hoppers provide the greatest efficiency, while double chests actually degrade performance, even when sharing each double chest across two hoppers.<ref name=":0" /> In [[Bedrock Edition]] a chain of hoppers with air or non-container blocks on top has better performance than a chain of hoppers topped by container blocks.<ref>https://cdn.discordapp.com/attachments/715523208530362389/890030941282631741/Redstone_MSPT_measure.xlsx</ref> This may be because, even though hoppers with containers on top do not check for items, they do check for hopper-minecarts and chest-minecarts to pull from, and that involves scanning the chunk entity list.<ref>{{bug|MCPE-109449}}</ref>

{{Schematic|caption='''Push then Pull'''
Chest A is full of items while the hopper and Chest B are empty.
|ch-$+A||-
|ho-$e|ch-$+B
}}

Item pushes and pulls are processed in the same game tick, but pushes are processed before pulls. In the schematic, the empty hopper first pulls an item from chest A as it cannot push anything into chest B. After the cooldown, the hopper first pushes its item into chest B before pulling another item from chest A, both pushing and pulling in the same tick, and the process repeats. The hopper stops pulling when A is empty, and stops pushing when B becomes full.

Hoppers also have a "transfer cooldown" time. After pulling and/or pushing items, a hopper waits {{tooltip|4 redstone ticks|8 game ticks}} (0.4 seconds, barring lag) before pulling or pushing again (a transfer rate of 2.5 items per second, barring lag). A hopper that has an item pushed into it from another hopper also starts a 4 tick cooldown period, regardless of whether it pushed or pulled items itself. Item entities can be collected at any time without affecting the transfer cooldown time. The transfer cooldown and the Bedrock Edition collection cooldown are independent of each other.

====Container interactions====
Some [[container]]s interact with hoppers in specific ways:

:;{{BlockLink|Composter}}
::Hoppers above composters can push compostable items into the composter's top face with a chance of increasing the level of the composter as if the player used the item on the composter. Items that are not compostable cannot be pushed into the composter. Hoppers below the composter can pull [[bone meal]] when the composter is in stage 8, emptying the composter and resetting it to stage 0. Hoppers to the side of a composter do not interact with it.

:;{{BlockLink|Brewing Stand}}
::A working hopper on the top face of a brewing stand deposits only into the ingredient slot and it can push only valid [[brewing]] ingredients. A hopper on side face of a brewing stand can deposit only [[blaze powder]] or filled bottles into the three brew slots. A hopper underneath a brewing stand always extracts from the three brew slots, whether brewing is finished or not—The hopper must be locked to allow potions to finish brewing.

:;{{BlockLink|Chest}}
:;{{BlockLink|Trapped Chest}}
::Large chests and large trapped chests are treated as a single container: A hopper depositing into a large chest fills up the entire chest and a hopper underneath a large chest empties the entire chest. Trapped chests being accessed by a player lock any adjacent hoppers, per the standard behavior of a hopper next to an active power source.

:;{{BlockLink|Furnace}}
:;{{BlockLink|Blast Furnace}}
:;{{BlockLink|Smoker}}
::A working hopper pointing into top of a furnace deposits only into the ingredient slot. It can push any item, including items that can't be smelted by the furnace. A hopper pointing into the side of a furnace deposits into the fuel slot, and only items that are usable as fuel. A hopper below a furnace pulls everything from the output slot and empty [[bucket]]s from the fuel slot left over from using [[lava bucket]]s as fuel. When a hopper removes items from a furnace, the experience points are 'stored' in the furnace until a player removes at least one smelted item, or the furnace block is broken.

:;{{BlockSprite|Hopper}} Hopper
::A sequence of three or more hoppers, each pushing items into the next, is called a '''hopper pipe'''. Working horizontal hopper pipes simply push items into each other at the expected rate of 2.5 items per second, but vertical hopper pipes are more complicated, as the hoppers are trying both to pull and to push. When a vertical pipe pulls from a single container, it simply transfers items at 2.5 items per second because the transfer rate is limited by the first hopper pulling items from the container. If a ''stack of items'' is in a vertical pipe, the items can be transferred twice as fast, because the hopper with the item stack is pushing items down while the hopper below it is also pulling items down.

:;{{EntityLink|Minecart with Chest}}
:;{{EntityLink|Minecart with Hopper}}
::Unlocked hoppers fill chest minecarts and hopper minecarts if any part of the entity's hitbox is within the hopper's target block-space. Hopper minecarts try to pull items from the hopper at high speed. Hoppers can pull items from minecarts above them so rails can be placed directly on the top faces of a hoppers. If a [[detector rail]] is in the right position, it could lock the hopper per standard redstone-hopper behavior.

:;{{BlockLink|Jukebox}}
::Hoppers can insert [[music disc]]s into jukeboxes, and extract the music discs after they finish playing.

:;{{BlockLink|Shulker Box}}
::Hoppers cannot put shulker boxes into other shulker boxes. This allows for the creation of certain [[Tutorials/Hopper#Potions and shulker boxes|item filters]].
::Otherwise, hoppers interact with shulker boxes normally.

:;{{BlockLink|Lectern}}
::Hoppers cannot remove or place books on lecterns. The redstone pulse emitted from a lectern when a page is turned can temporarily lock hoppers.

:;{{BlockLink|Ender Chest}}
::Hoppers cannot interact with ender chests in any way.

:;{{BlockLink|Barrel}}
:;{{BlockLink|Dispenser}}
:;{{BlockLink|Dropper}}
:;{{EntityLink|Boat with Chest}}
::Hoppers interact normally with barrels, dispensers, droppers, and boats with chests.

:;{{BlockLink|Chiseled Bookshelf}}
::Hoppers and minecart with hoppers can insert and remove books from the bookshelf. As with any other container, items are taken from the first slot that has an item that can fit in the hopper and are inserted into the first empty slot.

==Sounds==
===Generic===
{{Sound table/Block/Metal}}
===Unique===
{{Edition|Java}}:
{{Sound table
|sound=Door close.ogg
|sound2=Door open.ogg
|subtitle=Chest locked<ref group=sound name=lock>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref>
|source=block
|description=When a player attempts to open a hopper locked using the {{nbt|string|Lock}} tag
|id=block.chest.locked|idnote=<ref group=sound name=lock/>
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=lock/>
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{Edition|Bedrock}}: ''None''

==Data values==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Hopper
|spritetype=block
|nameid=hopper
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=hopper
|spritetype=block
|nameid=hopper
|foot=1}}

{{edition|bedrock}}: 
{{ID table
|edition=bedrock
|firstcolumnname=Hopper
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Block
|spritename=hopper
|spritetype=block
|nameid=hopper
|id=154
|form=block
|itemform=item.hopper}}
{{ID table
|displayname=Item
|spritename=hopper
|spritetype=item
|nameid=hopper
|id=527
|form=item
|translationkey=tile.hopper.name
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=hopper
|spritetype=block
|nameid=Hopper
|foot=1}}

===Block states===
{{see also|Block states}}

{{/BS}}

===Block data===
A hopper has a block entity associated with it that holds additional data about the block.

{{el|java}}:
{{see also|Block entity format}}
{{/BE}}

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

==Achievements==
{{load achievements|Freight Station;Smelt Everything}}

==Video==
<div style="text-align:center">{{yt|XO0IKUsGiG8}}</div>

==History==
{{History|java}}
{{History||1.5|snap=13w01a|[[File:Hopper (D) JE1.png|32px]] [[File:Hopper (N) JE1.png|32px]] [[File:Hopper (E) JE1.png|32px]] [[File:Hopper (S) JE1.png|32px]] [[File:Hopper (W) JE1.png|32px]] [[File:Hopper (U) JE1.png|32px]] Added hoppers.
|Hoppers with the [[damage]] value of 1, which are obtainable only through world editing, visually point in no direction. They functionally push items upward, however the behavior is inconsistent.
|[[File:Hopper (item) JE1.png|32px]] There is currently a temporary "work in progress" sprite for hoppers in the [[inventory]].
|Hoppers can be [[crafting|crafted]] from a [[chest]] and [[stone]] blocks with the following recipe:
{{{!}} class{{=}}"collapsible collapsed"
! Recipe
{{!}}-
{{!}}
{{Crafting Table
  |A1= Stone
  |C1= Stone
  |A2= Stone
  |B2= Chest
  |C2= Stone
  |B3= Stone
  |Output= Hopper
}}
{{!}}}
}}
{{History|||snap=13w01b|[[Rail]]s can now be placed on top of hoppers. 
|Hoppers no longer load [[item]]s into [[minecart]]s without [[chest]]s.}}
{{History|||snap=13w02a|[[File:Hopper (item) JE2 BE1.png|32px]] The [[inventory]] sprite of hoppers has been changed.
|[[File:Hopper (item) 13w02a.png|32px]] However, the [[item]] of hoppers appears bugged if [[drops|dropped]] or placed in an [[item frame]].<ref>{{bug|MC-6737}}</ref> This may be due to the game attempting to pull the item sprite from the hopper's equivalent spot in <samp>[[stitched_terrain.png]]</samp> (compare files: [[:File:13w02a stitched terrain.png|terrain]], [[:File:13w02a stitched items.png|items]]), a region which contains parts of the oak planks, end stone and iron bars textures.
|Applying a [[redstone]] signal to a hopper now deactivates the hopper until the signal is removed.
|Hoppers can no longer be used as [[fuel]] in a [[furnace]].
|Hoppers are now [[crafting|crafted]] using 5 [[iron ingot]]s rather than 5 [[stone]] blocks.
{{{!}} class{{=}}"collapsible collapsed"
! Recipe
{{!}}-
{{!}}
{{Crafting
|A1= Iron Ingot
|C1= Iron Ingot
|A2= Iron Ingot
|B2= Chest
|C2= Iron Ingot
|B3= Iron Ingot
|Output= Hopper
}}
{{!}}}
|Hoppers now pull only from the output slot of [[furnace]]s.
|Hoppers now output 1 signal strengh per 1/3 of a stack (21 [[item]]s) when interacting with a [[redstone comparator]].
|[[File:Hopper (D) JE2.png|32px]] [[File:Hopper (N) JE2.png|32px]] [[File:Hopper (E) JE2.png|32px]] [[File:Hopper (S) JE2.png|32px]] [[File:Hopper (W) JE2.png|32px]] [[File:Hopper (U) JE2.png|32px]] The texture of hoppers has been given a unique texture. Hoppers no longer use the [[cauldron]] texture. Note that the top texture does not rotate with facing direction.
|The preferred tool is now a pickaxe, rather than the axe.}}
{{History|||snap=13w02b|Hoppers now treat large [[chest]]s properly, no longer needing two hoppers connected to them to fill up the entire [[inventory]].
|Hoppers no longer take [[item]]s from containers when powered via a [[redstone]] current.
|Hoppers now display correctly as a [[drops|dropped]] or [[item frame|frame]] [[item]].}}
{{History|||snap=13w03a|Hoppers are now used to [[crafting|craft]] a [[minecart with hopper]].
|Hoppers can now empty a [[minecart with hopper]].}}
{{History|||snap=13w04a|The transfer rate of hoppers has been changed from 7 to 8 [[game tick]]s per [[item]] (2.5 items per second).}}
{{History||1.5.1|snap=pre|Hoppers now take empty [[bucket]]s out of furnace fuel slots.}}
{{History||1.7.2|snap=release|[[File:Hopper (D) JE3.png|32px]] [[File:Hopper (N) JE3.png|32px]] [[File:Hopper (E) JE3.png|32px]] [[File:Hopper (S) JE3.png|32px]] [[File:Hopper (W) JE3.png|32px]] [[File:Hopper (U) JE3.png|32px]] The UV of all blocks is broken on certain sides as a result of {{bug|MC-37106}} (few cases are listed on the wiki so far - this is a future project). This includes hoppers.}}
{{History||1.7.4|snap=13w47a|[[File:Hopper (D) JE4.png|32px]] [[File:Hopper (N) JE4.png|32px]] [[File:Hopper (E) JE4.png|32px]] [[File:Hopper (S) JE4.png|32px]] [[File:Hopper (W) JE4.png|32px]] [[File:Hopper (U) JE4.png|32px]] MC-37106 has been fixed, reverting hoppers to their pre-1.7.2 appearences.}}
{{History|||snap=13w48a|This version fixed {{bug|MC-190}}, which hoppers were allegedly subject to since their introduction. However, a comparison of hopper UV in 13w02a and 14w08a failed to reveal any visible differences, even accounting for the example images on the ticket. More research is needed on this matter.}}
{{History||1.8|snap=?|Hoppers no longer generate [[multiplayer]] lag when idle.}}
{{History|||snap=14w10a|[[File:Hopper (D) JE5.png|32px]] [[File:Hopper (N) JE5.png|32px]] [[File:Hopper (E) JE5.png|32px]] [[File:Hopper (S) JE5.png|32px]] [[File:Hopper (W) JE5.png|32px]] [[File:Missing Model JE2.png|32px]] Hoppers now use block models rather than having a hardcoded shape. This brings multiple changes: the inside texture now rotates with the hopper rather than being constant, the inside planes of hoppers are now shaded/have ambient occlusion, and some minor UV changes have occurred, notably on the smallest cuboid. The directionless hopper also [[Missing model|no longer has a model]].}}
{{History|||snap=14w26a|The directionless hopper has been removed.}}
{{History|||snap=14w31a|Hoppers now no longer use wood [[sound]]s.<ref>{{bug|MC-5991}}</ref>}}
{{History||1.9|snap=15w33c|A hopper now generates as a part of the [[end ship]] in the [[end city|end cities]].}}
{{History|||snap=15w41a|End ships no longer contain a hopper.}}
{{History|||snap=15w43a|[[Loot table]]s have been added; hoppers can now use loot tables.}}
{{History|||snap=15w43c|[[File:Hopper (D) JE6.png|32px]] [[File:Hopper (N) JE6.png|32px]] [[File:Hopper (E) JE6.png|32px]] [[File:Hopper (S) JE6.png|32px]] [[File:Hopper (W) JE6.png|32px]] The UV on the hopper model has changed, resulting in minor differences, particularly to the smallest cuboid. This is likely due to the fix for {{bug|MC-73401}}.}}
{{History|||snap=15w44a|[[File:Hopper (D) JE7.png|32px]] [[File:Hopper (N) JE7.png|32px]] [[File:Hopper (E) JE7.png|32px]] [[File:Hopper (S) JE7.png|32px]] [[File:Hopper (W) JE7.png|32px]] A mapping issue introduced in the previous snapshot for the sides of the large funnel region has been fixed. This may be due to the fix for {{bug|MC-50344}}.}}
{{History||1.9.1|snap=pre1|A hopper can now push into and pull [[item]]s from a blocked [[chest]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 154.}}
{{History||1.14|snap=18w43a|[[File:Hopper (D) JE8.png|32px]] [[File:Hopper (N) JE8.png|32px]] [[File:Hopper (E) JE8.png|32px]] [[File:Hopper (S) JE8.png|32px]] [[File:Hopper (W) JE8.png|32px]]<br>[[File:Hopper (item) JE3 BE2.png|32px]] The textures of hoppers have been changed.}}
{{History|||snap=19w03c|Hoppers now use correct cullface arguments, and some redundant faces have also been deleted.}}
{{History||1.19|snap=22w13a|Hoppers no longer drop when breaking a [[minecart with hopper]].}}
{{History||1.19.4|snap=23w07a|Hoppers can now interact with jukeboxes.}}

{{History|pocket alpha}}
{{History||v0.14.0|snap=build 1|[[File:Hopper (D) JE2.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE2 BE1.png|32px]] Added hoppers. Upward hoppers also exist.}}
{{History||v0.15.0|snap=build 1|Hoppers can now be moved by [[piston]]s.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Hopper (D) BE.png|32px]] [[File:Hopper (N) BE.png|32px]] [[File:Hopper (E) BE.png|32px]] [[File:Hopper (S) BE.png|32px]] [[File:Hopper (W) BE.png|32px]] [[File:Hopper (U) BE.png|32px]]<br>[[File:Hopper (item) JE3 BE2.png|32px]] The textures of hoppers have been changed.}}
{{History||1.19.70|snap=beta 1.19.70.20|Hoppers can now collect items through all blocks that have a lower height than a full block.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Hopper (D) JE2.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE2 BE1.png|32px]] Added hoppers.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Hopper (D) JE8.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE3 BE2.png|32px]] The textures of hoppers have been changed.}}
{{History||ps=1.91|Hoppers can now fill [[composter]]s.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Hopper (D) JE2.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE2 BE1.png|32px]] Added hoppers.}}
{{History|foot}}

==Issues==
{{Issue list}}

==Trivia==
* A [[wikipedia:Hopper (particulate collection container)|real-world hopper]] is a large, pyramidal or cone-shaped container used in industrial processes to hold particulate matter, like dust, gravel, nuts, seeds, etc., and can then dispense them from the bottom.
* A hopper can transfer 9000 items per hour, or 150 items per minute.

==Gallery==
=== Renders ===
<gallery>
Hopper (N).png
Hopper (E).png
Hopper (S).png
Hopper (W).png
</gallery>
<gallery>
Hopper (N) BE.png
Hopper (E) BE.png
Hopper (S) BE.png
Hopper (W) BE.png
</gallery>

=== Screenshots ===
<gallery>
File:Hopper screenshot 1.png|In snapshot 13w01a, the hopper item uses a 'WIP' sprite, though the item still read "Hopper".
File:13w02a Banner.png|The 13w02a Banner includes a [[minecart with TNT]]  and a hopper.
</gallery>

==References==
{{Reflist}}

{{Redstone}}
{{Blocks|Utility}}
{{Items}}

[[Category:Mechanisms]]
[[Category:Redstone mechanics]]
[[Category:Mechanics]]
[[Category:Storage]]
[[Category:Utility blocks]]
[[Category:Manufactured blocks]]
[[Category:Block entities]]

[[cs:Násypka]]
[[de:Trichter]]
[[el:Hopper]]
[[es:Tolva]]
[[fr:Entonnoir]]
[[it:tramoggia]]
[[ja:ホッパー]]
[[ko:호퍼]]
[[nl:Trechter]]
[[pl:Lej]]
[[pt:Funil]]
[[ru:Загрузочная воронка]]
[[uk:Лійка]]
[[zh:漏斗]]</li></ul></nowiki>
Pre-release 3White Candle (lit) JE3 Light Gray Candle (lit) JE3 Gray Candle (lit) JE3 Black Candle (lit) JE3 Brown Candle (lit) JE3 Red Candle (lit) JE3 Orange Candle (lit) JE3 Yellow Candle (lit) JE3 Lime Candle (lit) JE3 Green Candle (lit) JE3 Cyan Candle (lit) JE3 Light Blue Candle (lit) JE3 Blue Candle (lit) JE3 Purple Candle (lit) JE3 Magenta Candle (lit) JE3 Pink Candle (lit) JE3 The textures of dyed lit candles have been changed again, having subtler lighting on the top.
The texture for lit candles now also changes when on a cake.[1]
1.19
{{Extension DPL}}<ul><li>[[Steak|Steak]]<br/>{{Item
| title = Steak
| image = Steak.png
| renewable = Yes
| heals = {{hunger|8}}
| stackable = Yes (64)
}}

'''Steak''' ({{in|java}}) or '''cooked beef''' ({{in|bedrock}}) is a [[food]] [[item]] obtained from [[cow]]s, [[mooshroom]]s, or from cooking [[raw beef]].

== Obtaining ==

=== Mob loot ===

==== Cows ====

When a [[cow]] or [[mooshroom]] is killed, it drops [[raw beef]]. If a cow dies while on fire, it drops steak instead. If the cow is killed using a weapon with the [[Looting]] enchantment, the maximum number of steak drops increases by 1 per level.

=== Cooking ===

Raw beef can be cooked in a [[furnace]], [[smoker]], or [[campfire]]. Each steak removed from a furnace output slot gives 0.35 [[experience]] (22.4 experience per stack).
{{Smelting
|Raw Beef
|Steak
|0,35
}}

=== Villager gifts ===
{{IN|java}}, butcher [[Villager|villagers]] may give players steak if they have the [[Hero of the Village]] status effect.

== Usage ==

=== Food ===

To eat steak, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|8}} [[hunger]] and 12.8 hunger 
[[saturation]]. 

=== Wolves ===

Steak can be used to [[breed]] and heal tamed [[wolves]], lead them around, and make baby tamed wolves grow up faster by 10% of the remaining time.

==Sounds==
{{Sound table/Entity/Food}}

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Steak
|spritetype=item
|nameid=cooked_beef
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Cooked Beef
|spritetype=item
|nameid=cooked_beef
|id=274
|form=item
|foot=1}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}

== History ==

{{History|java beta}}
{{History||1.8|snap=Pre-release|[[File:Steak JE1 BE1.png|32px]] Added steak.
|Steak has been introduced as the cooked result of [[raw beef]].
|Steak is a new [[food]] [[item]] dropped by [[cow]]s in addition to their [[leather]]. 
|The icon for steak is used as the image for the [[cooked porkchop]] before [[Java Edition Beta 1.8|Beta 1.8]], as the cooked porkchop's icon was updated to a lighter colored piece of meat.}}
{{History|java}}
{{History||1.2.1|snap=12w03a|Steak can now be used to [[breed]] [[wolves]].}}
{{History||1.3.1|snap=12w21a|Steak can now be [[trading|bought]] from butcher [[villager]]s, at 6–7 steak for 1 [[emerald]].}}
{{History|||snap=1.3|[[File:Steak JE2.png|32px]] The texture of steak has been changed.}}
{{History||1.4.2|snap=12w37a|[[File:Steak JE3 BE2.png|32px]] The texture of steak has been changed, so that it no longer has a dark outline.}}
{{History||1.8|snap=14w02a|[[Villager]]s no longer [[trade]] steak.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 364.}}
{{History||1.14|snap=18w43a|[[File:Steak JE4 BE3.png|32px]] The texture of steak has been changed.}}
{{History|||snap=19w13a|Butcher villagers now give steak to players under the [[Hero of the Village]] effect.}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Steak JE1 BE1.png|32px]] Added steak.}}
{{History||v0.5.0|Steak now restores {{hp|8}} instead of {{hp|4}}.}}
{{History||v0.8.0|snap=build 1|[[File:Steak JE3 BE2.png|32px]] The texture of steak has been changed, so that it no longer has a dark outline.}}
{{History||v0.12.1|snap=build 1|Steak now restores [[hunger]] instead of [[health]].}}
{{History||v0.16.0|snap=build 4|"Steak" has been renamed to "Cooked Beef."}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Steak JE4 BE3.png|32px]] The texture of cooked beef has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Cooked beef can now be [[trading|bought]] from butcher [[villager]]s.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Steak JE1 BE1.png|32px]] Added steak.}}
{{History||xbox=TU12|[[File:Steak JE3 BE2.png|32px]] The steak's texture has been changed, so that it no longer has a dark outline.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Steak JE4 BE3.png|32px]] The texture of steak has been changed.}}

{{History|new3DS}}
{{History||0.1.0|[[File:Steak JE3 BE2.png|32px]] Added steak.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Gallery ==
<gallery>
Jeb steak.png|Raw beef and steak shown in the [[inventory]] from a preview screenshot.
Eating Steak.png|A still frame of the player eating a steak.
Steak SDGP.png|Steak in the [[Super Duper Graphics Pack]].
</gallery>

== Notes ==
{{fnlist}}

{{Items}}

[[cs:Propečený steak]]
[[de:Steak]]
[[es:Filete asado]]
[[fr:Steak]]
[[hu:Steak]]
[[it:Bistecca]]
[[ja:ステーキ]]
[[ko:스테이크]]
[[nl:Biefstuk]]
[[pl:Befsztyk]]
[[pt:Filé]]
[[ru:Жареная говядина]]
[[tr:Biftek]]
[[uk:Стейк]]
[[zh:牛排]]
[[Category:Food]]
[[Category:Renewable resources]]</li><li>[[Crossbow|Crossbow]]<br/>{{For}}
{{Item
| title = Crossbow
| image = <gallery>
Crossbow.png | Crossbow
Crossbow Pull 0.png | Pull (state 0)
Crossbow Pull 1.png | Pull (state 1)
Crossbow Pull 2.png | Pull (state 2)
Arrow Loaded Crossbow.png | Arrow loaded
Firework Loaded Crossbow.png | Firework loaded
</gallery>
| rarity = Common
| renewable = Yes
| durability = 465{{only|JE|short=yes}}<br>464{{only|BE|short=1}}
| stackable = No
}}

A '''crossbow''' is a ranged [[weapon]] similar to a [[bow]] that uses [[arrow]]s or [[firework rocket|fireworks]] as ammunition.

== Obtaining ==
=== Crafting ===
{{Crafting
|A1=Stick|B1=Iron Ingot |C1=Stick
|A2=String|B2= Tripwire Hook|C2=String
|B3= Stick
|Output= Crossbow
|type= Combat
}}

=== Repairing ===
{{Grinding
|showdescription=1
|ingredients=2× Damaged [[Crossbow]] or<br>2× Damaged [[Arrow Loaded Crossbow]] or<br>2× Damaged [[Firework Loaded Crossbow]]
|Damaged Crossbow; Damaged Arrow Loaded Crossbow; Damaged Firework Loaded Crossbow
|Damaged Crossbow; Damaged Arrow Loaded Crossbow; Damaged Firework Loaded Crossbow
|Crossbow; Arrow Loaded Crossbow; Firework Loaded Crossbow
|description=The [[item durability|durability]] of the two crossbows is added together, plus an extra 5% durability.‌
}}

{{Crafting
|Damaged Crossbow;Damaged Arrow Loaded Crossbow;Damaged Firework Loaded Crossbow
|Damaged Crossbow;Damaged Arrow Loaded Crossbow;Damaged Firework Loaded Crossbow
|Output=Crossbow
|type=Combat
|ignoreusage=1
|showdescription=1
|description=The durability of the two crossbows is added together, plus an extra 5% durability.‌ Any loaded ammunition is lost.
}}

=== Mob loot ===

==== Pillagers ====

When killed, a [[pillager]] has a small chance (8.5%) of dropping a loaded or unloaded crossbow with random [[durability]]; the [[drop]] rate increases by 1% per [[level]] of [[Looting]]: 9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III. The [[drop]]ped crossbow can rarely (10% chance) be [[enchanted]] at level 5–19 regardless of being [[enchanted]] when it [[spawn]]ed.

Crossbows dropped by pillagers may have multiple enchantments, including duplicate enchantments on the same weapon.

==== Piglins ====
[[Piglin]]s have a chance of wielding a crossbow upon spawning, and they also have a small chance (8.5%) of dropping a loaded or unloaded crossbow of random durability when killed; this rate increases by 1% per level of [[Looting]]: 9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III. It can rarely (10% chance) be enchanted at level 5–19 regardless of being enchanted when spawned.

=== Chest loot ===

{{LootChestItem|crossbow,damaged-level-enchanted-crossbow,damaged-random-enchanted-crossbow,damaged-random-enchanted-crossbow-2}}

=== Trading ===

Journeyman-level Fletcher [[villager]]s offer to [[trading|sell]] an unenchanted crossbow for 3 [[emerald]]s.

Master-level Fletcher villagers have a {{frac|1|16}} (6.25%) chance of selling an [[enchanting|enchanted]] crossbow for 8 emeralds.{{only|bedrock}}

Master-level Fletcher villagers have {{frac|2|3}} chance of selling an enchanted crossbow for 7-22 emeralds.{{only|java}}

== Usage ==
<gallery>
Steve aiming with Crossbow.png|
Alex aiming with Crossbow.png|
Pillager Aiming with Crossbow BE.png|
Piglin with Crossbow targeting JE.png|
</gallery>

Despite using [[iron ingot]]s in their crafting recipe, crossbows cannot be smelted into [[iron nugget]]s.<ref>{{bug|MC-111738}}</ref>

=== Weapon ===
[[File:Crossbowcooldown.gif|thumb|right|Charging and shooting the crossbow {{in|bedrock}}.]]
Crossbows are similar to [[bow]]s, but take longer to load and are slightly more powerful, shooting farther with slightly higher accuracy. Alternatively, they can be loaded with a firework rocket, which flies in a straight line.

Load them by {{control|using}} them, which makes the player move at sneak speed. Unlike bows, the [[arrow]] or [[firework rocket]] can be fired only if the player releases the use button after the crossbow is loaded{{Only|je}}  or if the crossbow finishes its loading animation {{Only|be}}. At this point, it ''must be used a second time'' to fire its bolt.

Once it has reached full charge, the [[player]]'s speed returns to normal. After that, shooting a charged crossbow does not delay any of the [[player]]'s current action like [[sprinting]] or [[swimming]].

The crossbow can even be placed in another [[inventory]] slot or into an [[item frame]] without the [[arrow]] or [[firework rocket]] being unloaded or fired. A charged crossbow also remains charged after enchanting it with an enchantment table or with an anvil.

In order to use the crossbow, at least one arrow or firework rocket must be present in the inventory. The player can choose the type of arrow to fire based on its location in their [[inventory]]:
* [[File:Java Crossbow 1stP Loading.mp4|thumb|177x177px|Java Edition first-person loading animation for crossbows.]]Arrows in the off-hand, or the selected [[hotbar]] slot if the crossbow is in the off-hand, are prioritized first. 
* If there are no arrows in the off-hand or selected hotbar slot, the arrow closest to slot 0 is selected. 
Crossbows take 1.25 seconds (25 ticks) to load. 

The player can load either an arrow, spectral arrow, tipped arrow (of any effect) or a firework (of any color/type).
[[File:Bedrock Crossbow 1stP Loading.mp4|thumb|177x177px|Bedrock Edition first-person loading animation for crossbows.]]
[[Endermen]] teleport away from projectile paths, so they cannot be hit with crossbow [[arrow]]s. However, they can still get harmed by [[firework rocket]] explosions, if they can't detect the firework rocket.

;Attack strength

''Java Edition'':

{| class="wikitable" style="text-align:center" data-description="Crossbow Damage Statistic"
|-
! Damage || Arrow || Max firework
|-
| {{ItemSprite|Crossbow|text= '''Minimum'''}}
| {{hp|7}}
| {{hp|11}}
|-
| {{ItemSprite|Crossbow|text= '''Average'''}}
| {{hp|9}}
| {{hp|14.5}}
|-
| {{ItemSprite|Crossbow|text= '''Maximum'''}}
| {{hp|11}}
| {{hp|18}}
|}

''Bedrock Edition''
* Always {{hp|9}}

=== Fireworks ===

[[Firework rocket]]s can be fired by loading the crossbow only while holding the rockets in the off-hand. They fly at 32 m/s. Firework rockets with higher flight duration have a longer time before they explode and therefore travel farther. Firing a firework rocket uses 3 [[durability]] points per shot.
{| class="wikitable" style="text-align:center"
! colspan="4" |Firework rocket range
|-
|Minimum
|Average
|Maximum
|Gunpowder
|-
|32m (20 ticks)
|40.8m (25.5 ticks)
|49.6m (31 ticks)
|1 ([[File:Gunpowder JE2 BE2.png|12x12px]])
|-
|48m (30 ticks)
|56.8m (35.5 ticks)
|65.6m (41 ticks)
| 2 ([[File:Gunpowder JE2 BE2.png|12x12px]][[File:Gunpowder JE2 BE2.png|12x12px]])
|-
|64m (40 ticks)
|72.8m (45.5 ticks)
|81.6m (51 ticks)
|3 ([[File:Gunpowder JE2 BE2.png|12x12px]][[File:Gunpowder JE2 BE2.png|12x12px]][[File:Gunpowder JE2 BE2.png|12x12px]])
|}
Firework rockets also work with the [[Multishot]] enchantment, enabling the [[player]] to shoot 3 firework rockets at a time. The increased durability usage stacks, resulting in 9 durability being consumed with each shot.

A shot firework rocket explodes instantly when it hits a [[mob]] or [[block]].{{only|java}} If the firework rocket has no explosion effect, it deals no [[damage]]. The explosion of a firework rocket deals {{hp|5}} to {{hp|6}} points of damage, with one [[firework star]]. The explosion has a radius of roughly 4 blocks, which is unaffected by the firework star's [[Firework Star#Effects|effect]]. Each additional firework star on the rocket deals an additional {{hp|1}} to {{hp|2}} points of damage, for a maximum of {{hp|11}} to {{hp|18}} with 7 firework stars. The flight duration of the firework increases the maximum range the firework can travel before exploding, but does not affect the damage output. Likewise, the damage remains the same regardless of any dyes used. The [[Piercing]] enchantment causes the firework rocket to pierce a number of entities based on its respective level before exploding.{{only|java}} Unlike an arrow shot from a bow, the firework does not slow down under water.

=== Repair ===

Crossbows can be repaired in an [[anvil]] or [[grindstone]] by combining two crossbows. Any loaded ammunition is retained from the crossbow in the first slot but sacrificed from the crossbow in the second slot.

===Enchantments===
{| class="wikitable"
|+
!Name
!Description
!Max Level
|-
|[[Quick Charge]]
|Decreases the reloading time of the crossbow by {{code|level * 0.25}} seconds. Crossbows with [[Quick Charge]] III fire slightly faster than [[bow]]s. If [[commands]] are used to enchant a crossbow with Quick Charge V, the crossbow charges instantaneously. A crossbow enchanted with Quick Charge VI is effectively impossible to charge, which renders it useless. This can be done only {{in|je}}.
|III
|-
|[[Multishot]]
| Makes the crossbow fire a spread of 3 projectiles at once instead of a single projectile, which is useful for targeting mobs spread out in a small area. This works for both [[arrow]]s and [[firework rocket]]s. Firing with this enchantment still uses only one projectile, and because of that, it is possible to recover only one of the three arrows shot from a Multishot crossbow. Multishot crossbows use 3 [[item durability|durability]] points per shot, unless using fireworks for ammunition, in which case 9 durability is consumed. Mutually exclusive with Piercing.
|I
|-
|[[Piercing]]
|Makes [[arrow]]s shot from the crossbow pierce [[entity|entities]] they hit and continue their flight, which allows each arrow to hit up to {{code|level + 1}} entities. This is useful for targeting [[mob]]s closely packed together, and for conserving arrows, as they can be picked up after piercing entities. Arrows fired in this manner also ignore [[Shield|shields]]. Mutually exclusive with Multishot.
|IV
|-
|[[Unbreaking]]
|Causes a <code>(Level /(Level+1)) * 100%</code> chance a shot fired does not reduce the [[item durability|durability]] of the crossbow.
|III
|-
|[[Mending]]
|Allows a certain proportion of [[experience]] orbs collected to contribute toward repairing the crossbow, rather than raising the [[player]]'s experience.
|I
|-
|[[Curse of Vanishing]]
| Causes the crossbow to disappear instead of dropping on the ground when the player dies. The {{cmd|gamerule keepInventory}} overrides this.
|I
|}

[[Multishot]] and [[Piercing]] are mutually exclusive. Normal methods of [[enchanting]] allow only one of them to be applied to a crossbow.

Crossbows can receive 3 unique [[enchanting|enchantment]]s, and have a base enchantability of 1. Enchantments specific to crossbows include [[Quick Charge]], Multishot and Piercing.

===Fuel===
Crossbows can be used as [[fuel]] in [[furnace]]s, [[smelting]] 1.5 [[item]]s per crossbow.

== Sounds ==
{{el|je}}:
{{Sound table
|sound=Crossbow loading start.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a crossbow starts to load
|id=item.crossbow.loading_start
|translationkey=subtitles.item.crossbow.charge
|volume=0.15
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Crossbow quick charge one1.ogg
|sound2=Crossbow quick charge one2.ogg
|sound3=Crossbow quick charge one3.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a Quick Charge I crossbow starts to load <ref group=sound><code>quick1_3</code> occurs at half the frequency as the other sounds</ref>
|id=item.crossbow.quick_charge_1
|translationkey=subtitles.item.crossbow.charge
|volume=''varies'' <ref group=sound>0.325 for all except <code>quick1_1</code> (pitch=0.9), which is 0.25</ref>
|pitch=''varies'' <ref group=sound><code>quick1_1</code> can be 1.0 or 0.9; <code>quick1_2</code> can be 1.0 or 0.95; <code>quick1_3</code> can be 1.0</ref>
|distance=16}}
{{Sound table
|sound=Crossbow quick charge two1.ogg
|sound2=Crossbow quick charge two2.ogg
|sound3=Crossbow quick charge two3.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a Quick Charge II crossbow starts to load <ref group=sound name=quickchargefrequency><code>_1</code> occurs at {{frac|2|3}} the frequency as the other sounds</ref>
|id=item.crossbow.quick_charge_2
|translationkey=subtitles.item.crossbow.charge
|pitch=''varies'' <ref group=sound name=quickchargevolume />
|volume=''varies'' <ref group=sound name=quickchargepitch />
|distance=16}}
{{Sound table
|sound=Crossbow quick charge three1.ogg
|sound2=Crossbow quick charge three2.ogg
|sound3=Crossbow quick charge three3.ogg
|subtitle=Crossbow charges up
|source=player
|description=When a Quick Charge III crossbow starts to load <ref group=sound name=quickchargefrequency />
|id=item.crossbow.quick_charge_3
|translationkey=subtitles.item.crossbow.charge
|volume=''varies'' <ref group=sound name=quickchargevolume>0.325 for all except <code>_1</code> (pitch=0.95), which is 0.25</ref>
|pitch=''varies'' <ref group=sound name=quickchargepitch><code>_1</code> can be 1.0 or 0.95; <code>_2</code> can be 1.0, 0.95, or 1.05; <code>_3</code> can be 1.0, 0.9, or 1.05</ref>
|distance=16}}
{{Sound table
|sound=Crossbow loading middle1.ogg
|sound2=Crossbow loading middle2.ogg
|sound3=Crossbow loading middle3.ogg
|sound4=Crossbow loading middle4.ogg
|subtitle=MC-203146
|source=player
|description=While a crossbow is loading <ref group=sound><code>loading_middle4</code> occurs at {{frac|1|4}} the frequency as the other sounds</ref>
|id=item.crossbow.loading_middle
|translationkey=-
|volume=0.325
|pitch=''varies'' <ref group=sound><code>loading_middle1</code> can be 1.0, 0.95, or 1.2; <code>loading_middle2</code> and <code>loading_middle3</code> can be 1.0, 0.9, or 1.05; <code>loading_middle4</code> can be 1.0</ref>
|distance=16}}
{{Sound table
|sound=Crossbow loading end.ogg
|subtitle=Crossbow loads
|source=dependent
|description=When a crossbow stops loading
|id=item.crossbow.loading_end
|translationkey=subtitles.item.crossbow.load
|volume=1.0
|pitch={{frac|13|15}}-1.2
|distance=16}}
{{Sound table
|sound=Crossbow shoot1.ogg
|sound2=Crossbow shoot2.ogg
|sound3=Crossbow shoot3.ogg
|subtitle=Crossbow fires
|source=dependent
|description=When a crossbow fires
|id=item.crossbow.shoot
|translationkey=subtitles.item.crossbow.shoot
|volume=0.8/0.9/0.9
|pitch=1.0/1.0/0.9 <ref group=sound>Multiplied by the loading percentage of the crossbow</ref>
|distance=16}}
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|subtitle=Arrow hits
|source=neutral
|description=When an arrow hits a block or entity
|id=item.crossbow.hit
|translationkey=subtitles.item.crossbow.hit
|volume=1.0
|pitch={{frac|12|11}}-{{frac|4|3}}
|distance=16}}
{{Sound table
|sound=Succesfull Hit.ogg
|subtitle=Player hit
|source=player
|description=When an arrow shot by a player hits another player
|id=entity.arrow.hit_player
|translationkey=subtitles.entity.arrow.hit_player
|volume=0.18
|pitch=0.45
|distance=16}}
{{Sound table
|sound=Firework launch.ogg
|subtitle=Firework launches
|source=ambient
|description=When a crossbow fires a firework rocket
|id=entity.firework_rocket.launch
|translationkey=subtitles.entity.firework_rocket.launch
|volume=3.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Random break.ogg
|subtitle=Item breaks
|source=dependent
|description=When a crossbow's durability is exhausted
|id=entity.item.break
|translationkey=subtitles.entity.item.break
|volume=0.8
|pitch=0.8-1.2
|distance=16
|foot=1}}

{{el|be}}:
{{Sound table
|type=bedrock
|sound=Crossbow loading start.ogg
|source=player
|description=When a crossbow starts to load
|id=crossbow.loading.start
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow loading middle1.ogg
|sound2=Crossbow loading middle2.ogg
|sound3=Crossbow loading middle3.ogg
|sound4=Crossbow loading middle4.ogg
|source=player
|description=While a crossbow is loading and when a crossbow stops loading
|id=crossbow.loading.middle
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow loading end.ogg
|source=player
|description=''Unused sound event''
|id=crossbow.loading.end
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow quick charge one1.ogg
|sound2=Crossbow quick charge two1.ogg
|sound3=Crossbow quick charge three1.ogg
|source=player
|description=When a crossbow with Quick Charge starts to load
|id=crossbow.quick_charge.start
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow quick charge one2.ogg
|sound2=Crossbow quick charge two2.ogg
|sound3=Crossbow quick charge three2.ogg
|source=player
|description=While a crossbow with Quick Charge is loading
|id=crossbow.quick_charge.middle
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow quick charge one3.ogg
|sound2=Crossbow quick charge two3.ogg
|sound3=Crossbow quick charge three3.ogg
|source=player
|description=When a crossbow with Quick Charge stops loading
|id=crossbow.quick_charge.end
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Crossbow shoot1.ogg
|sound2=Crossbow shoot2.ogg
|sound3=Crossbow shoot3.ogg
|source=player
|description=When a crossbow fires
|id=crossbow.shoot
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|source=player
|description=When an arrow hits a block or entity
|id=random.bowhit
|volume=1.0
|pitch=1.09-1.3}}
{{Sound table
|sound=Firework launch.ogg
|source=ambient
|description=When a crossbow fires a firework rocket
|id=firework.launch
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Random break.ogg
|source=player
|description=When a crossbow's durability is exhausted
|id=random.break
|volume=1.0
|pitch=0.9
|foot=1}}

==Data values==
=== ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Crossbow
|spritetype=item
|nameid=crossbow
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Crossbow
|spritetype=item
|nameid=crossbow
|id=575
|form=item
|foot=1}}

===Item data===

{{el|java}}:
{{main|Player.dat format}}
<div class="treeview" style="margin-top: 0;">
*{{nbt|compound|tag}}: The '''tag''' tag.
{{:Player.dat_format/Crossbow}}
</div>

{{el|bedrock}}:
: See [[Bedrock Edition level format/Item format]].

==Achievements==
{{load achievements|Sniper Duel;Archer;Bullseye}}

==Advancements==
{{load advancements|Take Aim;Bullseye;Sniper Duel;Ol' Betsy;Who's the Pillager Now;Two Birds;Arbalistic}}

==History==
{{History||September 29, 2018|link={{tweet|Minecraft|1046094916902965249}}|Crossbows are announced at [[MINECON Earth 2018]].}}
{{History|java}}
{{History||1.14|snap=18w43a|[[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Arrow Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Firework Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] Added crossbows.
|Crossbows can be enchanted with either the [[Quick Charge]] (Highest Level III), [[Piercing]] (Highest Level IV) or [[Multishot]] (Highest Level I).}}
{{History|||snap=18w47a|Crossbows can now be found inside loot [[chest]]s at the top of [[pillager outpost]]s.}}
{{History|||snap=19w11a|Fletcher [[villager]]s now [[trading|sell]] crossbows and enchanted crossbows.}}
{{History||1.16|snap=20w07a|[[File:Piglin with Crossbow.png|32px]] [[File:Piglin left handed with Crossbow.png|35px]] [[File:Piglin using one hand to hold a loaded crossbow JE1.png|35px]] Added [[piglin]]s, which can spawn with and [[drops|drop]] crossbows.}}
{{History|||snap=20w16a|Crossbows now generate randomly enchanted in [[bastion remnants]] chests.}}
{{History||1.18|snap=21w37a|Crossbow durability is increased to 465 to match {{edition|BE}}.}}
{{History||1.19.4|snap=23w07a|The crossbow recipes are no longer unlocked by [[stick]]s.}}
{{History|upcoming java}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=23w31a|Enchantments exclusive to crossbows are no longer obtainable from villager [[trading]].}}

{{History|bedrock}}
{{History||1.8.0|snap=beta 1.8.0.10|[[File:Crossbow.png|32px]] [[File: Crossbow Pull 0.png|32px]] [[File: Crossbow Pull 1.png|32px]] [[File: Crossbow Pull 2.png|32px]] [[File:Arrow Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Firework Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] Added crossbows.
|Crossbows are currently apart of [[Experimental Gameplay]].}}
{{History||1.9.0|snap=beta 1.9.0.0|Added [[pillager]]s, which use and [[drops|drop]] crossbows.}}
{{History|||snap=beta 1.9.0.3|Crossbows now appear bigger in a pillager's hand.}}
{{History||1.10.0|snap=beta 1.10.0.3|Crossbows are now fully implemented and separate from [[Experimental Gameplay]].
|Crossbows can now be found in [[pillager outpost]] [[chest]]s.}}
{{History||1.11.0|snap=beta 1.11.0.4|Unenchanted and [[enchanting|enchanted]] crossbows can now be [[trading|bought]] from fletcher [[villager]]s.}}
{{History||1.12.0|snap=beta 1.12.0.3|Journeyman-level fletcher villagers now have 100% chance to [[trading|sell]] unenchanted crossbow, rather than 50% chance.}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Piglin with Crossbow BE.png|32px]] Added [[piglin]]s, which can spawn with and [[drops|drop]] crossbows.}}
{{History|||snap=beta 1.16.0.57|Crossbows now generate randomly enchanted in [[bastion remnants]] chests.}}

{{History|PS4}}
{{History||1.90|[[File:Crossbow.png|32px]] [[File: Crossbow Pull 0.png|32px]] [[File: Crossbow Pull 1.png|32px]] [[File: Crossbow Pull 2.png|32px]] [[File:Arrow Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] [[File:Crossbow Pull 0.png|32px]] [[File:Crossbow Pull 1.png|32px]] [[File:Crossbow Pull 2.png|32px]] [[File:Firework Loaded Crossbow.png|32px]] [[File:Crossbow.png|32px]] Added crossbows.}}
{{History|foot}}

==Issues==
{{issue list}}

==Trivia==
*Alongside [[pillager]]s, crossbows were inspired by ''[[Minecraft Dungeons]]'', even though they were added in the base game first.<ref>{{cite|url=https://discord.com/channels/579770991056519194/818903542139453480/819631528593588244| title = March 2021 developper Q&A|website=discord.com|date=March 11, 2021}}</ref>
*Crossbows [[enchanting|enchanted]] with [[Quick Charge]] VI and above get stuck on the first frame on the recharging animation because the resulting charge time is negative, and the game never reaches the time markers that tell it to advance the animation or the reloading procedure itself. It is technically possible to charge such crossbows, but this would require overflowing the value that determines how long the crossbow has been charged. This takes such an amount of time that this is practically impossible: for example, charging a crossbow with Quick Charge VI would take 69.4 years to complete.
*Although Piercing allows arrows to bypass [[shield]]s, they can't get through the wither armor.
*The crossbow's first-person loading animation in [[Bedrock Edition]] is different from [[Java Edition]].
*Even if a crossbow is already wound with a projectile, when it drops on the ground, it always looks uncharged.<ref>{{bug|MC-137552}}</ref>
*In real life, crossbows don't shoot the same arrows as bows, rather they shoot shorter, thicker, and oftentimes fletchless arrows (usually called "bolts") made to withstand the crossbow's increased power, which can shatter conventional arrows.

==Gallery==
<gallery>
File:CrossbowMinecon.png|A crossbow shown at [[MINECON Earth 2018]].
File:PillagerMinecon.png|A [[pillager]] armed with a crossbow, shown at MINECON Earth 2018.
File:EquippingCrossbow.png|How the crossbow is equipped.
File:Enchanted_Crossbow.gif|An enchanted crossbow.
File:Steve_Charging_Crossbow.gif|Steve charging crossbow {{in|java}}.
File:Alex_Charging_Crossbow.gif|Alex charging crossbow {{in|java}}.
File:Pillager_Charging_Crossbow.gif|Pillager charging crossbow.
File:Piglin_Charging_Crossbow.gif|Piglin charging crossbow.
File:Crossbow_(MCD).png|The ''Minecraft Dungeons'' variant of the crossbow
</gallery>

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--crossbow Taking Inventory: Crossbow] – Minecraft.net on October 20, 2022

{{Items}}

[[Category:Combat]]
[[Category:Renewable resources]]

[[de:Armbrust]]
[[es:Ballesta]]
[[fr:Arbalète]]
[[it:Balestra]]
[[ja:クロスボウ]]
[[ko:쇠뇌]]
[[pl:Kusza]]
[[pt:Besta]]
[[ru:Арбалет]]
[[th:หน้าไม้]]
[[zh:弩]]</li></ul>
Deep Dark Experimental Snapshot 1Non-dyed candles and white candles now generate in ancient cities.
Non-dyed candles can also generate in ancient city chests.
1.20
{{Extension DPL}}<ul><li>[[Fish|Fish]]<br/>{{About|the type of mob|the action|Fishing}}
'''Fish''' are aquatic creatures that are found in [[river]] and [[ocean]] biomes.

== Mobs ==
There are four categories of fish mobs in ''Minecraft'': 
*{{EntityLink|Cod}}
*{{EntityLink|Salmon}}
*{{EntityLink|Pufferfish}}
*{{EntityLink|Tropical Fish}} - many color and pattern varieties

In addition, there are other fish-like mobs that have different characteristics from fish: {{EntityLink|Axolotl}}, {{EntityLink|Guardian}}, and {{EntityLink|Elder Guardian}}.

==Obtaining and transporting==
A live fish can be captured by using a [[water bucket]] on a fish, to obtain a [[bucket of fish]], which is the only way to obtain the live mob in item form. Using the bucket of fish on a water source block transfers the fish from the bucket to the body of water. A water bucket may also be used on [[axolotl]]s in this manner.

==Items==
Fish exist in several different item forms. Upon death, fish drop their item form equivalent (cooked if on fire), with a chance to drop a [[bone]]{{only|bedrock}} or [[bone meal]].{{only|java}}

;Non-living
*{{ItemLink|Raw Cod}}
*{{ItemLink|Cooked Cod}}
*{{ItemLink|Raw Salmon}}
*{{ItemLink|Cooked Salmon}}
*{{ItemLink|Pufferfish|link=Pufferfish (item)}}
*{{ItemLink|Tropical Fish|link=Tropical Fish (item)}}
;Living
*{{ItemLink|Bucket of Cod}}
*{{ItemLink|Bucket of Salmon}}
*{{ItemLink|Bucket of Pufferfish}}
*{{ItemLink|Bucket of Tropical Fish}}

== Spawning ==
Various fish can be found in different [[ocean]] [[biomes]], but only [[salmon]] appear in rivers. Fish can also spawn in player-created bodies of water, as long as they are within a river or ocean biome.

{| class="wikitable sortable" style="text-align:left" data-description="Fish biomes"
!'''Fish'''
! style="text-align:left" |{{BiomeLink|Warm Ocean}}
! style="text-align:left" |{{BiomeLink|Lukewarm Ocean}}<br>{{BiomeLink|Deep Lukewarm Ocean}}
! style="text-align:left" |{{BiomeLink|Ocean}}<br>{{BiomeLink|Deep Ocean}}
! style="text-align:left" |{{BiomeLink|Cold Ocean}}<br>{{BiomeLink|Deep Cold Ocean}}
! style="text-align:left" |{{BiomeLink|Frozen Ocean}}<br>{{BiomeLink|Deep Frozen Ocean}}
! style="text-align:left" |{{BiomeLink|River}}<br>{{BiomeLink|Frozen River}}
|-
! rowspan=2 style="text-align:left" |{{EntityLink|Cod}}
| rowspan=2 {{tc|no}}
| rowspan=2 {{tc|yes}}
| rowspan=2 {{tc|yes}}
| rowspan=2 {{tc|yes}}
| {{tc|no|No{{only|je|short=1}}}}
| rowspan=2 {{tc|no}}
|-
| {{tc|yes|Yes{{only|be|short=1}}}}
|-
! rowspan=2 style="text-align:left" |{{EntityLink|Salmon}}
| rowspan=2 {{tc|no}}
| {{tc|no|No{{only|je|short=1}}}}
| {{tc|no|No{{only|je|short=1}}}}
| rowspan=2 {{tc|yes}}
| rowspan=2 {{tc|yes}}
| rowspan=2 {{tc|yes}}
|-
| {{tc|yes|Yes{{only|be|short=1}}}}
| {{tc|yes|Yes{{only|be|short=1}}}}
|-
! rowspan=2 style="text-align:left" |{{EntityLink|Pufferfish}}
| rowspan=2 {{tc|yes}}
| {{tc|yes|Yes{{only|je|short=1}}}}
| rowspan=2 {{tc|no}}
| rowspan=2 {{tc|no}}
| rowspan=2 {{tc|no}}
| rowspan=2 {{tc|no}}
|-
| {{tc|no|No{{only|be|short=1}}}}
|-
! style="text-align:left" |{{EntityLink|Tropical Fish}}<ref group="note">Also spawns in {{BiomeLink|Lush Caves}} at any Y-level.</ref>
| {{tc|yes}}
| {{tc|yes}}
| {{tc|no}}
| {{tc|no}}
| {{tc|no}}
| {{tc|no}}
|-
! style="text-align:left" |{{EntityLink|Squid}}
| {{tc|yes}}
| {{tc|yes}}
| {{tc|yes}}
| {{tc|yes}}
| {{tc|yes}}
| {{tc|yes}}
|-
! rowspan=2 style="text-align:left" |{{EntityLink|Dolphin}}
| rowspan=2 {{tc|yes}}
| rowspan=2 {{tc|yes}}
| rowspan=2 {{tc|yes}}
| {{tc|no|No{{only|je|short=1}}}}
| rowspan=2 {{tc|no}}
| rowspan=2 {{tc|no}}
|-
| {{tc|yes|Yes{{only|be|short=1}}}}
|}
{{notelist}}

In ''Java Edition'', fish can spawn inside a water block at Y-level 50 to 63 (from 13 blocks below sea level up to inside the block one above it), that also has water above and below it. The spawn block and the block below can be any kind of water, such as a source block, falling water, bubble column, kelp, or even a waterlogged block (as long as the fish can be placed at the bottom center of the spawn block without colliding with anything solid). The block above must be pure water, such as a source block, falling water, or flowing water of any depth. Particularly, the block above cannot also be a bubble column, so fish no longer spawn inside bubble elevators.<ref>{{cite bug|MC|244683|Tropical fish spawn in bubble columns (fixed in 22w07a)}}</ref> 

''Bedrock Edition'' does permit fish to spawn in bubble columns.<ref>{{cite bug|MCPE|73967|Squids, Dolphins, and fish not spawning in bubble columns (fixed in 1.16.20)}}</ref>

Fish can spawn between 24 and 64 block spherical range away from the player.{{only|java}} 

=== Despawning ===
As of [[1.16]], fish can despawn at range of 40 blocks or more from the player, and will instantly despawn more than 64 blocks away, except when spawned using a [[bucket of fish]].

{{Items}}
{{Entities}}

[[cs:Ryba]]
[[de:Fisch (Begriffsklärung)]]
[[es:Pez]]
[[fr:Poisson]]
[[it:Pesce]]
[[ja:魚]]
[[ko:물고기]]
[[nl:Vis]]
[[pl:Ryba (ujednoznacznienie)]]
[[pt:Peixe]]
[[ru:Рыба]]
[[th:ปลา (แก้ความกำกวม)]]
[[uk:Риба]]
[[zh:鱼]]</li><li>[[Redstone Comparator|Redstone Comparator]]<br/>{{Block
| image = 
| image2 = 
| transparent = Yes
| light = No
| tool = any
| renewable = Yes
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
| group = Redstone Comparator
| group2 = Subtracting
| group3 = Powered
| group4 = Powered+Subtracting
| 1-1 = Redstone Comparator.png
| 2-1 = Subtracting Redstone Comparator.png
| 3-1 = Powered Redstone Comparator.png
| 4-1 = Powered Subtracting Redstone Comparator.png
}}
{{Many images}}
A '''redstone comparator''' is a [[block]] that can produce an [[Redstone Dust|output signal]] from its front by reading [[chest]]s, [[lectern]]s, [[beehive]]s and similar blocks, or repeat a signal without changing its strength. It can also be set to either stop outputting a signal when its side input recieves a stronger one (front torch off), or subtract its side input's signal strength from its output (front torch on).

== Obtaining ==
=== Natural generation ===
Redstone comparators generate in [[Ancient City|ancient cities]].

=== Breaking ===
A redstone comparator can be broken instantly with any [[tool]], or by hand, and drops itself as an item.

{{Breaking row|Redstone Comparator|horizontal=y}}

A redstone comparator is removed and dropped as an item if:
* its attachment block is moved, removed, or destroyed;
* [[water]] flows into its space;{{only|java}}
* a [[piston]] tries to push it or moves a block into its space.

If [[lava]] flows into a redstone comparator's space, the redstone comparator is destroyed without dropping as an item.

=== Crafting ===
{{Crafting
|B1=Redstone Torch
|A2=Redstone Torch
|B2=Nether Quartz
|C2=Redstone Torch
|A3=Stone
|B3=Stone
|C3=Stone
|Output= Redstone Comparator
|type=Redstone
}}

== Usage ==
A redstone comparator can be placed on the top of any [[opaque]] block with a solid full-height top surface (including upside-down [[slab]]s and upside-down [[stairs]]). {{IN|be}}, a comparator can also be placed on [[wall]]s and fences. For more information about placement on transparent blocks, see [[Opacity/Placement]].

The redstone comparator has a front and a back — the arrow on the top of the comparator points to the front. When placed, the comparator faces away from the player. The comparator has two miniature redstone torches at the back and one at the front. The back torches turn on when the comparator's output is greater than zero (the arrow on top also turns red). The front torch has two states that can be toggled by {{control|using}} the comparator:
* Down and unpowered (indicating the comparator is in "comparison mode")
* Up and powered (indicating the comparator is in "subtraction mode")

The redstone comparator can take a signal strength input from its rear as well as from both sides. Side inputs are accepted only from [[redstone dust]], [[block of redstone]], [[redstone repeater]]s, other comparators, and [[observer]]s in specific scenarios. The redstone comparator's front is its output.

It takes 1 [[redstone tick]] (2 game ticks, or 0.1 seconds barring lag) for signals to move through a redstone comparator, either from the rear or from the sides. This applies to changing signal strengths as well as simply to turning on and off. 

Redstone comparators check their power state before their scheduled ticks update. This results in redstone comparators not usually responding to 1-tick fluctuations of power or signal strength — for example, a [[clock circuit|1-clock]] input is treated as always off from the side, and always on from the rear. This happens because the signal changes back to its original state before the redstone comparator checks its input states. However, certain setups such as powering any input with two separate observer pulses at the same time will cause a redstone comparator to respond to 2 gametick pulses.

The redstone comparator has four functions: maintain signal strength, compare signal strength, subtract signal strength, and measure certain block states (primarily the fullness of containers).

=== Maintain signal strength ===
A redstone comparator with no powered sides outputs the same signal strength as its rear input.

=== Compare signal strength ===
[[File:Comparators Explained.png|Comparators in comparison mode.|thumb]]
A redstone comparator in comparison mode (front torch down and unpowered) compares its rear input to its two side inputs. If either side input is greater than the rear input, the comparator output turns off. If neither side input is greater than the rear input, the comparator outputs the same signal strength as its rear input.

The formula for calculating the output signal strength is as follows:

<code>output = rear × [[Wikipedia:Iverson bracket|[]]'''''left''''' ≤ '''''rear''''' AND '''''right''''' ≤ '''''rear'''''[[Wikipedia:Iverson bracket|<nowiki>]]]</code>
{{-}}

=== Subtract signal strength ===
[[File:Redstone comparator.png|thumb|The greatest of the side inputs A and C is subtracted from the rear input B, outputting 1. If either A or C were greater than B, it would output 0.]]
A redstone comparator in subtraction mode (front torch up and powered) subtracts the signal strength of the higher side input from the signal strength of the rear input.

<code>output = max('''''rear''''' − max('''''left''', '''right'''''), 0)</code>

For example: if the signal strength is 6 at the left input, 7 at the right input and 4 at the rear, the output signal has a strength of ''max(4 − max(6, 7), 0) = max(4−7, 0) = max(−3, 0) = 0''.

If the signal strength is 9 at the rear, 2 at the right input and 5 at the left input, the output signal has a strength of ''max(9 − max(2, 5), 0) = max(9−5, 0) = 4''.

=== Measure block state ===
{{Schematic | caption = A redstone comparator can measure the fullness of a chest, as well as other block states, even through an opaque block.
 |rd-ew!|rc-w!|ch|SB|rc-e!|rd-ew!
}}
A redstone comparator treats certain blocks behind it as power sources and outputs a signal strength proportional to the block's state. The comparator may be separated from the measured block by an opaque block. However, {{in|je}}, if the opaque block is powered to signal strength 15, then the comparator outputs 15 no matter the fullness of the container.<ref>{{bug|MC-64394}} (resolved as "Works As Intended")</ref>
[[Category:Java Edition specific information]]
{{-}}

==== Fullness of containers ====
{| class="wikitable floatright" style="margin-left: 0.5em; margin-right: 0; text-align: center;"
|+ Minimum Items for Container Signal Strength
|-
!Containers
!{{BlockSprite|Furnace|link=Furnace}}<br>{{BlockSprite|Blast Furnace|link=Blast Furnace}}<br>{{BlockSprite|Smoker|link=Smoker}}
!{{BlockSprite|Hopper|link=Hopper}}<br>{{EntitySprite|Minecart with Hopper|link=Minecart with Hopper}}<br>{{BlockSprite|Brewing Stand|link=Brewing Stand}}
!{{BlockSprite|Dispenser|link=Dispenser}}<br>{{BlockSprite|Dropper|link=Dropper}}
!{{BlockSprite|Chest|link=Chest}}<br>{{EntitySprite|Minecart with Chest|link=Minecart with Chest}}<br>{{BlockSprite|Shulker Box|link=Shulker Box}}<br>{{BlockSprite|Barrel|link=Barrel}}
![[Double Chest|{{Schematic|size=16|ch-s|-|ch-n}}
]]
!{{BlockSprite|Jukebox|link=Jukebox}}
|-
!Total Slots
!3!!5!!9!!27!!54!!1
|-
!Power Level
! colspan="5" |Number of Items
!Music Disc
|-
|0||0||0||0||0||0||No disc
|-
|1||1||1||1||1||1||"13"
|-
|2||14||23||42||1s 60||3s 55||"cat"
|-
|3||28||46||1s 19||3s 55||7s 46||"blocks"
|-
|4||42||1s 5||1s 60||5s 51||11s 37||"chirp"
|-
|5||55||1s 28||2s 37||7s 46||15s 28||"far"
|-
|6||1s 5||1s 51||3s 14||9s 42||19s 19||"mall"
|-
|7||1s 19||2s 10||3s 55||11s 37||23s 10||"mellohi"
|-
|8||1s 32||2s 32||4s 32||13s 32||27s||"stal"
|-
|9||1s 46||2s 55||5s 10||15s 28||30s 55||"strad"
|-
|10||1s 60||3s 14||5s 51||17s 23||34s 46||"ward"
|-
|11||2s 10||3s 37||6s 28||19s 19||38s 37||"11"
|-
|12||2s 23||3s 60||7s 5||21s 14||42s 28||"wait"
|-
|13||2s 37||4s 19||7s 46||23s 10||46s 19||"Pigstep"
|-
|14||2s 51||4s 42||8s 23||25s 5||50s 10||"Otherside"<br>"Relic"
|-
|15||3s||5s||9s||27s||54s||"5"
|}
A redstone comparator can output a signal indicating how full a container is. (0 for empty, 15 for full, etc.) The table on the right is described more in detail, later in this section.

Containers that can be measured by a comparator include:
* {{BlockLink|Furnace}}
* {{BlockLink|Blast Furnace}}
* {{BlockLink|Smoker}}
* {{BlockLink|Brewing Stand}}
* {{BlockLink|Hopper}}
* {{ItemLink|Minecart with Hopper}} on top of a [[detector rail]]
* {{BlockLink|Dispenser}}
* {{BlockLink|Dropper}}
* {{BlockLink|Chest}}
* {{BlockLink|Trapped Chest}}
* {{ItemLink|Minecart with Chest}} on top of a [[detector rail]]
* {{BlockLink|Barrel}}
* {{SchematicSprite|size=16|ch-e}}{{SchematicSprite|size=16|ch-w}} Large chest
* {{SchematicSprite|size=16|ch-e}}{{SchematicSprite|size=16|ch-w}} Large trapped chest
* {{BlockLink|Shulker Box}} (any color)

Generally speaking, the comparator output signal strength represents the average fullness of the slots, based on how many of that item form a full stack (64, 16, or 1 for non-stackable items).

The ''Minimum Items for Container Signal Strength'' table (right) shows the minimum '''''full-stack-equivalent (FSE)''''' to produce different signal strengths from common containers. A '''''full-stack-equivalent''''' quantifies how many normal 64-stackable items are needed to output a corresponding signal strength. The 's' is a constant 64, with the additional amount needed following after.

One may also consider the terms: '''c''umulative-weight''''' or '''''weighted-sum''''' instead of '''''full-stack-equivalent'''''.

Items that stack to a max of 16  ([[snowball]]s, [[sign]]s, [[ender pearl]]s, etc.), contribute +4 to the ''full-stack-equivalent'' for each unity (count of 1 item). Similarly, items that stack to 1 ([[minecart]], [[boat]], etc.) contribute +64, and items that stack to 64 contribute +1.

Example 1: 3 ender pearls will contribute a 3 x 4 = 12 ''full-stack-equivalent''.

Example 2: 16 ender pearls and 60 redstone dust contributes a 16x4 + 60x1 = 124 ''full-stack-equivalent''.

Example 3: 1 minecart and 60 redstone dust contributes a 1x64 + 60x1 = 124 ''full-stack-equivalent''.

Example 4: To produce a signal strength of 10 from a hopper, one requires a ''full-stack-equivalent'' of at least 3s + 14 = 206 but strictly less than than 3s + 37 = 229. This can be done with 3 minecarts, and 14 dirt.

When a comparator measures a large chest or large trapped chest, it measures the entire large chest (54 slots), not just the half directly behind the comparator. A chest or trapped chest that cannot be opened (either because it has an opaque block, [[ocelot]], or [[cat]] above it) always produces an output of 0 no matter how many items are in the container — shulker boxes can always be measured, even if they cannot open.

;Calculating signal strength from items

:When a container is empty, the output is off.

:When it is not empty, the output signal strength is calculated as follows:

:<code>'''''signal strength''''' = floor(1 + (('''''sum of all slots' fullnesses''''') / ('''''number of slots in container''''')) × 14)</code>

:<code>fullness of a slot = '''''number of items in slot''''' / '''''max stack size for this type of item'''''</code>

:''Example:'' 300 blocks in a dispenser (which has 9 slots), where each block stacks to a maximum of 64 has a 300 ''full-stack-equivalent.'' This produces an output with a signal strength of 8:
<blockquote>
1 + ((300 items / 64 items per slot) / 9 slots) × 14 = 8.292, floored is 8
</blockquote>

;Calculating items from signal strength

:It can be useful in redstone circuits to use containers with comparators to create signals of a specific strength. The number of items required in a container to produce a signal of desired strength is calculated as follows:

:<code>items required = max('''''desired signal strength''''', roundup(('''''total slots in container''''' × 64 / 14) × (desired signal strength − 1)))</code>

:''Example:'' To use a furnace (which has 3 slots) to create a strength 9 signal, players need 110 items:
<blockquote>
max(9, (3×64/14) × (9−1)) = 109.714, rounded up is 110
</blockquote>
{{-}}

==== Miscellaneous ====
[[File:Comparator storage.png|Comparators used to measure containers.|thumb]]
Some non-container blocks can also be measured by a redstone comparator:

;{{BlockLink|Beehive}} and {{BlockLink|Bee nest}}

: A hive or nest outputs a signal strength equal to the amount of honey in the hive/nest.

;{{BlockLink|Cake}}

: A cake outputs a signal strength relative to the amount of cake remaining.  Each slice is worth 2 signal strength, with 7 total slices, for an output of 14 for a full cake.

[[File:Cauldron Redstone Strength Values.png|Cauldron signal strength|thumb]]
;{{BlockLink|Cauldron}}

: A cauldron outputs different signal strengths depending on how much water or powdered snow is inside. From completely empty to completely full, the output values are 0, 1, 2, and 3. If lava or powder snow is inside, the strength is always 3.

[[File:Composter Redstone Strength Values.png|Composter signal strength|thumb]]
;{{BlockLink|Composter}}

: A composter outputs different signal strengths depending on the level inside. From completely empty to completely full, the output values are 0, 1, 2, 3, 4, 5, 6, 7 and 8.

;{{Anchor|CommandBlock}}{{BlockLink|Command Block}}

: A command block stores the "success count" of the last command executed, which represents the number of times the most recently used command of this command block succeeded. A "success" is defined by the [[command]]'s success conditions: if a red error message is returned in the chat, the command was not successful.

: Most commands can succeed once per execution, but certain commands (such as those that accept players as arguments) can succeed multiple times, and the comparator outputs the number of times it succeeded (maximum 15 when sent to redstone dust, but in the code it is able to go up to the 32-bit integer limit, and can be used in contraptions with no redstone dust with those values).

: A command block continues to store the success count of the last command executed until it executes its command again, thus the comparator continues to output the same signal strength even after the command block is no longer being activated (it doesn't turn off when the signal to the command block turns off).

;{{BlockLink|End Portal Frame}}

: An end portal frame outputs a full signal of 15 if it contains an [[eye of ender]] and zero otherwise.

[[File:Item frame and comparator.png|A comparator can measure the presence and rotation of an item frame's contents.|thumb]]

;{{EntityLink|Item Frame}}

: A comparator can measure the state of an [[item frame]]'s contents. An item frame comparator outputs 0 if the item frame is empty, or 1 to 8 for any item depending on its rotation: 1 at initial placement, plus 1 for each 45° of rotation for a maximum of 8.

: For an item frame that holds a map, a unit of rotation is 90° instead of 45°, but a comparator still outputs power levels 1 to 8. It takes two full rotations to cycle through all comparator outputs, and each orientation of the map corresponds to two output levels that differ by 4.

: The comparator must be placed behind the block the item frame is attached to, facing away from the item frame. The block must be a full block, and the item frame cannot be submerged in water. Having a sign in the same block as the item frame will prevent the frame from sending a signal as well.{{only|java}}

;{{BlockLink|Jukebox}}

: A jukebox outputs a signal strength indicating which music disc is currently playing. See the ''Minimum Items for Container Signal Strength'' table above.

;{{BlockLink|Lectern}}

: A lectern outputs a signal strength that depends on what page the player is currently on. The calculation used is:
:<code>'''''signal strength''''' = floor(1 + (('''''current page''''' - 1) / ('''''number of pages in book''''' - 1)) × 14)</code>
:This results in page 1 having a signal strength of 1, and the last page having a signal strength of 15. The exception is a single page book, which will output a signal strength of 15.
:For example, a book with 15 pages will output a signal equal to the current page number.  A book with 5 pages will output signal strengths of 1, 4, 8, 11 and 15 for the different pages. A book with 100 pages will have the signal strength increase to the next level on pages 1, 9, 16, 23, 30, 37, 44, 51, 58, 65, 72, 79, 86, 93 and 100.
:

;{{BlockLink|Respawn Anchor}}

: A respawn anchor outputs a signal strength of 0, 3, 7, 11, or 15, depending on the "charged" value.

;{{BlockLink|Sculk Sensor}}

: A sculk sensor outputs a signal strength depending on the type of vibration that is detected.

;{{BlockLink|Chiseled Bookshelf}}

: A chisled bookshelf outputs a signal strength between 1 and 6 indicating the last slot interacted with. When no slot has been interacted with yet, it outputs 0.
{{-}}

== Sounds ==
=== Generic ===
{{Edition|Java}}:
{{Sound table/Block/Stone/JE}}
{{Edition|Bedrock}}:
{{Sound table/Block/Wood/BE}}

=== Unique ===
{{edition|java}}:
{{Sound table
|rowspan=2
|sound=Click.ogg
|subtitle=Comparator clicks
|source=block
|description=When a comparator is set to subtraction mode
|id=block.comparator.click
|translationkey=subtitles.block.comparator.click
|volume=0.3
|pitch=0.55
|distance=16}}
{{Sound table
|subtitle=Comparator clicks
|source=block
|description=When a comparator is set to comparison mode
|id=block.comparator.click
|translationkey=subtitles.block.comparator.click
|volume=0.3
|pitch=0.5
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|rowspan=2
|sound=Click.ogg
|source=block
|description=When a comparator is set to subtraction mode
|id=block.click
|volume=0.2
|pitch=0.55}}
{{Sound table
|source=block
|description=When a comparator is set to comparison mode
|id=block.click
|volume=0.2
|pitch=0.5
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Redstone Comparator
|spritetype=block
|nameid=comparator
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=redstone-comparator
|spritetype=block
|nameid=comparator
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Redstone Comparator
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Unpowered block
|spritename=unpowered-comparator
|spritetype=block
|nameid=unpowered_comparator
|id=149
|form=block
|translationkey=-}}
{{ID table
|displayname=Powered block
|spritename=powered-comparator
|spritetype=block
|nameid=powered_comparator
|id=150
|form=block
|translationkey=-}}
{{ID table
|displayname=Item
|spritename=redstone-comparator
|spritetype=item
|nameid=comparator
|id=522
|form=item
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=redstone-comparator
|spritetype=block
|nameid=Comparator
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

=== Block data ===
A redstone comparator has a block entity associated with it that holds additional data about the block.

{{el|je}}:
{{see also|Block entity format}}
{{/BE}}

{{el|be}}:
: See [[Bedrock Edition level format/Block entity format]].

== Advancements ==
{{Load advancements|the power of books}}

== Video ==

<div style="text-align:center">{{yt|J7Z20Zzz3yU}}</div>

== History ==
{{info needed section|If {{bug|MC-50242}} also affected comparators?}}
''For a more in-depth breakdown of changes to repeater textures and models, including a set of renders for each state combination, see [[/Asset history]]''
{{History|java}}
{{History||November 24, 2012|link=https://youtube.com/watch?v=YG9RNyRhIow&t=6m56s|[[Jeb]] stated that there may be a "capacitor" in [[Minecraft]]. }}
{{History||December 27, 2012|link={{tweet|Dinnerbone|284388625595125760}}|[[Dinnerbone]] released [https://web.archive.org/web/20190710120115/https://imgur.com/a/FBKed pictures] of the first version of the "comparator", stating it was a replacement for the "capacitor" idea that has variable, alternate inputs.}}
{{History||January 2, 2013|link={{tweet|Dinnerbone|286428595423965184}}|Dinnerbone released one more [http://dinnerbone.com/media/uploads/2013-01/screenshots/2013-01-02_12.06.47.png picture] of the comparator. The picture itself showing a digital-to-analog converter, using the comparator as the main [[block]].}}
{{History||1.5|snap=13w01a|[[File:Redstone Comparator (S) JE1.png|32px]] [[File:Powered Redstone Comparator (S) JE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE1.png|32px]] [[File:Redstone Comparator (item) JE1 BE1.png|32px]] Added redstone comparators.
|Redstone comparators have 0 delay.
At this point, block ID 149 was used for unpowered comparators, and block ID 150 for powered comparators.}}
{{History|||snap=13w01b|A delay of 1 game tick ({{frac|1|2}} redstone tick) has now been added to redstone comparators to fix bugs.
|The ability to measure containers to redstone comparators has now been added.}}
{{History|||snap=13w02a|[[File:Redstone Comparator (S) JE2.png|32px]] [[File:Powered Redstone Comparator (S) JE2.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2.png|32px]] The appearance of redstone comparators has now been changed - the top texture has changed to show [[quartz]] in the middle and the sides now use the [[smooth stone]] texture rather than the smooth stone slab side texture.
|The algorithm for measuring containers has now been changed so that redstone comparators output a signal with as few as 1 [[item]] in the container.}}
{{History|||snap=13w02b|Redstone comparators now treat large [[chest]]s as a single container.}}
{{History|||snap=13w03a|Redstone comparators now output success count of [[command block]]s.
|Redstone comparators now measure container [[minecart]]s on [[detector rail]]s.}}
{{History|||snap=13w04a|Redstone comparators now measure [[jukebox]]es.}}
{{History|||snap=13w05a|Redstone comparators no longer cause constant [[block]] updates. The delay has now been made consistent, and side input no longer causes a pulse output.
|Block 150 (later <code>powered_comparator</code>) is no longer used; powered state is now represented by the 8s bit on block 149 (later <code>unpowered_comparator</code>).}}
{{History|||snap=13w05b|Redstone comparator delay has now been changed from 1 game tick (1/2 [[redstone]] tick) to 2 game ticks (1 redstone tick).}}
{{History|||snap=13w09c|The redstone signal strength from a redstone comparator next to a [[brewing stand]] with 3 [[water bottle]]s in it is now the same as one with 3 water bottles and 1 ingredient in it.}}
{{History||1.6.1|snap=13w18a|Redstone comparators now measure [[cauldron]]s and [[end portal frame]]s.}}
{{History||1.8|snap=14w04a|Redstone comparators now measure [[item frame]]s.}}
{{History|||snap=14w10a|The torches under redstone comparators have now been shortened, which has changed the underside appearance from [[File:Redstone Comparator UNKVER1 (facing NWU).png|32px]] [[File:Powered Redstone Comparator UNKVER1 (facing NWU).png|32px]] [[File:Subtracting Redstone Comparator UNKVER1 (facing NWU).png|32px]] [[File:Powered Subtracting Redstone Comparator UNKVER1 (facing NWU).png|32px]] to [[File:Redstone Comparator UNKVER2 (facing NWU).png|32px]].}}
{{History|||snap=14w25a|[[File:Redstone Comparator (S) JE3.png|32px]] [[File:Powered Redstone Comparator (S) JE3.png|32px]] [[File:Subtracting Redstone Comparator (S) JE3.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE3.png|32px]] The torches on comparators are now subject to ambient occlusion.
|Comparators set to subtract mode appear to be powered as well regardless of incoming power. The subtracting-only model still exists and can be achieved through {{cmd|setblock}}.}}
{{History|||snap=14w25b|[[File:Subtracting Redstone Comparator (S) JE4.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE4.png|32px]] The powered front torch when in subtraction mode is now lower.
|Comparators set to subtract by hand now appear normally again.}}
{{History|||snap=14w28a|Redstone comparators now measure [[cake]]s.}}
{{History||1.9|snap=15w42a|With the addition of the [[blaze powder]] fuel slot, [[brewing stand]]s now have 5 slots instead of 4. Their original comparative power values from redstone comparators are listed below:
{{{!}} class{{=}}"wikitable collapsible collapsed" data-description{{=}}"Original values"
! Original values
{{!}}-
{{!}}
*0: 0
*1: 1
*2: 19
*3: 37
*4: 55
*5: 1s 10
*6: 1s 28
*7: 1s 46
*8: 2s
*9: 2s 19
*10: 2s 37
*11: 2s 55
*12: 3s 10
*13: 3s 28
*14: 3s 46
*15: 4s
{{!}}}
}}
{{History|||snap=15w47a|Redstone comparators' side inputs now take power from [[redstone block]]s.}}
{{History||1.13|snap=17w47a|All 3 IDs for the redstone comparator have now been merged into one ID: <code>comparator</code>.
|Redstone comparators now render their underside, which has changed their undersides from [[File:Redstone Comparator UNKVER2 (facing NWU).png|32px]] to [[File:Redstone Comparator UNKVER3 (facing NWU).png|32px]].
|Prior to [[1.13/Flattening|''The Flattening'']], these blocks' numeral IDs were 149 and 150, and the [[item]]'s 404.
|As a result, the formerly unused comparator ID is now technically used again, due to both unpowered and powered versions being merged into a single comparator block ID.}}
{{History||1.14|snap=18w43a|[[File:Redstone Comparator (S) JE4.png|32px]] [[File:Powered Redstone Comparator (S) JE4.png|32px]] [[File:Subtracting Redstone Comparator (S) JE5.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE5.png|32px]] [[File:Redstone Comparator (item) JE2 BE2.png|32px]] The textures of redstone comparators have now been changed.}}
{{History|||snap=19w02a|Redstone comparators now measure [[lectern]]s.}}
{{History|||snap=19w03a|Redstone comparators now measure [[composter]]s.}}
{{History|||snap=19w12b|Redstone comparators can now be placed on [[glass]], [[ice]], [[glowstone]] and [[sea lantern]]s.}}
{{History||1.15|snap=19w34a|Redstone comparators now measure how much honey is inside [[beehive|bee hive]]s and [[bee nest]]s.}}
{{History||1.16|snap=20w06a|The way to calculate the input signals of redstone comparators has now been changed.}}
{{History|||snap=20w11a|The changes to the way of calculating the input signals of redstone comparators from [[Java Edition 20w06a|20w06a]] have now been reverted.}}
{{History|||snap=20w16a|Redstone comparators now measure [[Pigstep music disc]]s in [[jukebox]]es.}}
{{History||1.17|snap=20w45a|Redstone comparators now measure [[lava cauldron]]s.}}
{{History|||snap=20w46a|Redstone comparators now measure [[Cauldron#Holding powder snow|powder snow cauldron‌]]s.}}
{{History||1.18|snap=21w41a|[[File:Powered Redstone Comparator (S) JE5.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE6.png|32px]] The texture of powered redstone comparator have now been changed.}}
{{History||1.19|snap=22w13a|Redstone comparators now generate as part of [[ancient cities]].}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Redstone comparators now measure [[chiseled bookshelves]].}}
{{History||1.20.2|snap=23w33a|Redstone comparators now use stone sounds instead of wood sounds.<ref>{{bug|MC-182820|||Fixed}}</ref>}}

{{History|pocket alpha}}
{{History||v0.14.0|snap=build 1|[[File:Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2 BE1.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE1 BE1.png|32px]] Added redstone comparators.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Redstone comparators now measure [[end portal frame]]s.}}
{{History||1.0.5|snap=alpha 1.0.5.0|Redstone comparators now output success count of [[command block]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Redstone comparators now measure [[shulker box]]es.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Redstone comparators now measure [[jukebox]]es.
|Redstone comparators now render their underside, which has changed their undersides from [[File:Redstone Comparator UNKVER1 (facing NWU).png|32px]] to [[File:Redstone Comparator UNKVER3 (facing NWU).png|32px]]}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Redstone Comparator (S) BE.png|32px]] [[File:Powered Redstone Comparator (S) BE.png|32px]] [[File:Subtracting Redstone Comparator (S) BE.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) BE.png|32px]] [[File:Redstone Comparator (item) JE2 BE2.png|32px]] The textures of redstone comparators have now been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Redstone comparators now measure [[smoker]]s, [[blast furnace]]s, [[lectern]]s and [[composter]]s.}}
{{History||1.18.10|snap=beta 1.18.10.20|[[File:Powered Redstone Comparator (S) JE5.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE6.png|32px]] The texture of powered redstone comparator have now been changed.}}
{{History||1.20.30|snap=beta 1.20.30.20|Redstone comparators now use the <code>minecraft:cardinal_direction</code> [[block state]] instead of <code>direction</code>.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2 BE1.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE1 BE1.png|32px]] Added redstone comparators.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|switch=1.0.1|Redstone comparators can now measure [[item frame]]s.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Redstone Comparator (S) BE.png|32px]] [[File:Powered Redstone Comparator (S) BE.png|32px]] [[File:Subtracting Redstone Comparator (S) BE.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) BE.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE2 BE2.png|32px]] The textures of redstone comparators have now been changed.}}

{{History|3ds}}
{{History||0.1.0|[[File:Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2 BE1.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE2 BE2.png|32px]] Added redstone comparators.}}
{{History|foot}}

=== Redstone comparator "items" ===
{{:Technical blocks/Redstone Comparator}}

== Issues ==
{{issue list}}

== Trivia ==
* Comparators do not emit redstone particles when powered, unlike redstone torches and repeaters.<ref>{{bug|MC-51692|||WAI}}</ref>

== Gallery ==
<gallery>
Dinnerbone Comparator 1.png|Dinnerbone showing how comparators work.
Dinnerbone Comparator 2.png|Dinnerbone showing how comparators work.
Dinnerbone Comparator 3.png|Dinnerbone showing how comparators work.
Dinnerbone Comparators 1.png|A contraption incorporating comparators.
Dinnerbone Comparators 2.png|Comparators in action.
Dinnerbone Comparators 3.png|Output specific signals.
Dinnerbone Comparator Thing.png|Another comparator in use.
Item Frame Comparator.png|Rotating the torch in the item frame adjusts the comparator's output.
</gallery>

== References ==
{{reflist}}

{{Redstone}}
{{Blocks|Utility}}
{{Items}}

[[Category:Mechanics]]
[[Category:Block entities]]
[[Category:Redstone mechanics]]
[[Category:Mechanisms]]
[[Category:Manufactured blocks]]
[[Category:Non-solid blocks]]

[[de:Redstone-Komparator]]
[[es:Comparador de redstone]]
[[fr:Comparateur de redstone]]
[[hu:Redstone-komparátor]]
[[ja:レッドストーンコンパレーター]]
[[ko:레드스톤 비교기]]
[[nl:Redstonevergelijker]]
[[pl:Komparator]]
[[pt:Comparador de redstone]]
[[ru:Компаратор]]
[[uk:Редстоуновий компаратор]]
[[zh:红石比较器]]</li></ul></nowiki>
23w12aBrown, green, purple, and red candle can now be found in suspicious gravel and suspicious sand in trail ruins.
23w16aBrown, green, purple, and red candle no longer generates in suspicious sand in trail ruins.
Due to the split of the archaeological loot tables for the suspicious gravel within the trail ruins; brown, green, purple, and red candle now are in the common loot.
Bedrock Edition
1.17.10
{{Extension DPL}}<ul><li>[[Raw Salmon|Raw Salmon]]<br/>{{about|the item|the mob|Salmon}}
{{Item
| title = Raw Salmon
| image = Raw Salmon.png
| renewable = Yes
| heals = {{hunger|2}}
| stackable = Yes (64)
}}
'''Raw salmon''' is a food item that can be eaten by the [[player]] or cooked to make [[cooked salmon]].

== Obtaining ==

=== Mob loot ===
====Salmon====
[[Salmon]] always drops 1 raw salmon when killed, unaffected by Looting.<ref>{{bug|MC-212795||Salmon & Fish mobs are not affected by Looting}}</ref> If it is killed while on [[fire]], it drops 1 [[Cooked Salmon|cooked salmon]] instead.
====Guardians and elder guardians ====
[[Guardian|Guardians]] and [[Elder Guardian|elder guardians]] have a 2.5% chance to drop a random fish, with 25% of them being raw salmon, which drops as cooked if the guardian was on fire. The chance of getting the fish drop is increased by 1% per level with [[Looting]] (for a maximum of 5.5% with Looting III), but the type of fish is not affected.
====Polar bears====
[[Polar bear]]s have a 25% chance of dropping 0–2 raw salmon when killed. The maximum amount can be increased by 1 per level of Looting, for a maximum of 0-5 with Looting III. If killed while on fire, they drop cooked salmon instead.
=== Fishing ===
{{main|Fishing}}Raw salmon can be obtained from [[fishing]]. The wait time of one being caught is decreased with the [[Lure]] enchantment and the chance of one being caught is slightly decreased with the [[Luck of the Sea]] enchantment (named as such because it increases treasure, not fish).

Catching salmon awards 1-6 experience.

=== Chest loot ===

{{LootChestItem|raw-salmon}}

=== Villager gifts ===
{{in|java}}, Fisherman villagers throw raw salmon at [[player]]s under the [[Hero of the Village]] effect.

== Usage ==

=== Smelting ingredient ===

{{smelting
|Raw Salmon
|Cooked Salmon
|0.35
}}

=== Food ===

Raw salmon restores {{hunger|2}} [[hunger]] and 0.2 [[Hunger#Mechanics|saturation]].

=== Cats ===
Raw salmon can be used to tame [[cat]]s with {{frac|1|3}} chance of success, get cats off of [[chest]]s, and [[bed]]s, [[breed]] cats, and make baby cats grow up faster by 10% of the remaining time. Additionally, raw salmon can be used to heal cats by {{hp|2|mob=1}}.

Raw salmon can be used to gain [[ocelot]] trust, breed ocelots, and make baby ocelots grow up by 10%.
=== Dolphins ===

A [[dolphin]] can be fed raw salmon to increase its trust of the player and cause it to interact with the player more often. However, unlike most other animal mobs, this does not cause them to breed.

Additionally, dolphins swim to the nearest chest in a [[shipwreck]] or [[underwater ruin]] after they are fed raw salmon. If the chest in the nearest structure is broken, they swim to another structure with a chest.

=== Trading ===

Apprentice-level Fisherman [[villager]]s have 50%{{only|bedrock}} or {{frac|2|3}}{{only|java}} chance to buy 6 raw salmon and one [[emerald]] for 6 cooked salmon.

Journeyman-level Fisherman villagers offer to buy 13 raw salmon for an emerald.

=== Wolves ===
{{IN|bedrock}}, raw salmon can be fed only to [[wolves]] not at full health, healing them by {{hp|2|mob=1}}. Unlike other wolf food, raw salmon cannot be used to breed wolves or to accelerate the growth of baby wolves.

==Sounds==
{{Sound table/Entity/Food}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Raw Salmon
|spritetype=item
|nameid=salmon
|itemtags=fishes
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Raw Salmon
|spritetype=item
|nameid=salmon
|id=265
|form=item
|foot=1}}

== Achievements ==
{{load achievements|Lion Hunter}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet;Fishy Business;A Complete Catalogue}}

== Video ==
<span style="display:inline-block">{{yt|s_GcAFeoREk}}</span>

== History ==
{{History|java}}
{{History||1.7.2|snap=13w36a|[[File:Raw Salmon JE1 BE1.png|32px]] Added raw salmon.}}
{{History||1.8|snap=14w25a|Raw salmon is now obtainable rare drops from [[guardian]]s and [[elder guardians]].}}
{{History||1.9|snap=15w44a|Raw salmon can now be found in [[bonus chest]]s.}}
{{History||1.10|snap=16w20a|Raw salmon is now dropped from [[polar bear]]s.}}
{{History||1.13|snap=17w47a|The different data values for the <code>fish</code> and <code>cooked_fish</code> IDs have been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], these [[item]]s' numeral IDs were 349 and 250.}}
{{History|||snap=18w08b|Salmon has been added as a [[mob]], which drops raw salmon when killed (cooked while on [[fire]]).
|[[File:Raw Salmon JE2 BE2.png|32px]] The texture for raw salmon has been changed.}}
{{History||1.14|snap=18w48a|Raw salmon can now be found in chests in [[village]] fisher cottages.}}
{{History|||snap=19w11a|Fisherman [[villager]]s now [[trading|buy]] raw salmon.}}
{{History|||snap=19w13a|Fisherman villagers now give raw salmon to players under the [[Hero of the Village]] effect.}}

{{History|pocket alpha}}
{{History||v0.11.0|snap=build 1|[[File:Raw Salmon JE1 BE1.png|32px]] Added raw salmon.}}
{{History||v0.12.1|snap=build 1|Salmon now restores [[hunger]] instead of [[health]].
|Raw salmon can now be used to tame [[ocelot]]s.}}
{{History||v0.16.0|snap=build 1|Salmon is now [[drops|dropped]] by [[guardian]]s and [[elder guardian]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Added [[polar bear]]s, which drop raw salmon.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Raw salmon is now found inside [[bonus chest]]s.}}
{{History||1.4.0|snap=beta 1.2.14.2|Salmon has been added as a [[mob]], which drops raw salmon when killed (cooked while on [[fire]]).
|[[File:Raw Salmon JE2 BE2.png|32px]] The texture for raw salmon has been changed.}}
{{History|||snap=beta 1.2.20.1|Added [[dolphin]]s, which can be [[breeding|bred]] with raw salmon.}}
{{History||1.5.0|snap=beta 1.5.0.0|Raw salmon can no longer be used to breed dolphins. 
|Giving raw salmon to dolphins now leads the [[player]] to nearest [[underwater ruins]] or [[shipwreck]].}}
{{History||1.8.0|snap=beta 1.8.0.8|Raw salmon can no longer be used to tame [[ocelot]]s.
|Raw salmon can now be used to [[breeding|breed]] ocelots.
|Added stray [[cat]]s, which can be tamed by being fed raw salmon.}}
{{History||1.11.0|snap=beta 1.11.0.4|Raw salmon can now be [[trading|sold]] to fisherman [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.52|If [[salmon]] is [[death|killed]] while on [[fire]], then they now drop [[cooked salmon]] instead of a raw salmon.}}

{{History|console}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|[[File:Raw Salmon JE1 BE1.png|32px]] Added raw salmon.}}
{{History||xbox=TU69|ps=1.76|wiiu=Patch 38|[[File:Raw Salmon JE2 BE2.png|32px]] The texture for raw salmon have been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Raw Salmon JE1 BE1.png|32px]] Added raw salmon.}}
{{History|foot}}

== Issues ==
{{issue list}}

== See also ==
* [[Fishing]]

== References ==
{{reflist}}

{{items}}

[[de:Roher Lachs]]
[[es:Salmón crudo]]
[[ja:生鮭]]
[[ko:생연어]]
[[pt:Salmão cru]]
[[ru:Сырой лосось]]
[[tr:Çiğ Somon]]
[[zh:生鲑鱼]]
[[Category:Renewable resources]]
[[Category:Food]]</li><li>[[Banner|Banner]]<br/>{{for|the image|Banner (image)}}
{{Block
| image = <gallery>
White Banner.gif | Banner
White Wall Banner.png | Wall Banner
</gallery>
| rarity = Common
| transparent = Yes
| light = No
| tool = axe
| renewable = Yes
| stackable = Yes (16)
| flammable = No
| lavasusceptible = Yes
}}

'''Banners''' are tall decorative [[blocks]], featuring a field that is highly customizable using [[dye]]s and [[banner pattern]]s.

== Obtaining ==

=== Breaking ===

Banners can be broken with or without a [[tool]], but an [[axe]] is fastest.
{{breaking row|horizontal=1|Banners|Axe}}

A banner also breaks and drops itself as an [[Item (entity)|item]] if the block the banner is attached to is moved, removed, or destroyed.

=== Natural generation ===

{| class="wikitable collapsible"
! Name !! Location !! Appearance !! Design
|-
! Magenta Banner
| Outside of [[end cities]].
| style="text-align: center" | [[File:End City Banner.png|32px]]
| Magenta Banner
* Black Inverted Chevron
* Black Chevron
|-
! Gray Banner
| In banner room in [[woodland mansion]]s.
| style="text-align: center" | [[File:Gray Banner.png|32px]]
| Gray Banner
|-
! Light Gray Banner
| In master bedroom in [[woodland mansion]]s.
| style="text-align: center" | [[File:Master Bedroom Banner.png|32px]]
| Light Gray Banner
* White Flower Charge
|- id="Ominous Banner"
! Ominous Banner{{only|java|short=1}} 
Illager Banner{{only|bedrock|education|short=1}}
| Carried by [[raid captain]]s.<br> Located in [[pillager outpost]]s.

{{IN|java}}, the ominous banner cannot be crafted or copied because the design uses 8 patterns.

{{IN|bedrock}}, the illager banner is a separate type that cannot be placed in a loom.
| style="text-align: center" | [[File:Ominous Banner.png|32px]]<br/>[[File:Ominous Banner BE.png|32px]]
| White Banner{{only|java|short=1}}
* Cyan Lozenge
* Light Gray Base
* Gray Pale
* Light Gray Bordure
* Black Fess
* Light Gray Per Fess
* Light Gray Roundel
* Black Bordure
Separate type entirely{{only|bedrock|short=1}}
|-
! Brown Banner
| Outside of some houses, meeting points, and pillar fountains in savanna [[village]]s. 
| style="text-align: center" | [[File:Brown Banner.png|32px]]
| Brown Banner
|-
! Black Banner
| In altar room in [[woodland mansions]].
| style="text-align: center" | [[File:Black Banner.png|32px]]
| Black Banner
|}

=== Crafting ===

Banners can be crafted from six [[wool]] and a [[stick]] in a pattern resembling a [[sign]].
{{Crafting
|head=1
|showdescription=1
|A1=Matching Wool |B1=Matching Wool |C1=Matching Wool
|A2=Matching Wool |B2=Matching Wool |C2=Matching Wool
|B3=Stick
|Output=Matching Banner
|Olink=Banner
|type=Decoration block
|description=Once the banner is crafted, its base color cannot be changed.{{only|java}}
}}
{{Crafting
|showdescription=1
|Any Banner
|Bleach
|Output=White Banner
|type=Decoration block
|description=Bleach can be used to remove the color of a banner, resulting in a white banner. This includes removing patterns from a white banner.{{only|bedrock|education}}
|foot=1
}}

=== Trading ===
Expert-level cartographer [[villager]]s always offer to [[trading|sell]] 1 or 2 blank banners of a random color for 3 [[emeralds]]. Expert-level shepherd villagers have a {{frac|2|7}} chance of offering the same trade.{{only|java}}

{{IN|bedrock}}, expert-level cartographer and shepherd villagers both offer to sell one of 16 blank banners for 3 emeralds as part of their trades.

=== Mob loot ===

[[Illager]]s that spawn carrying an ominous banner{{only|java|short=1}} / illager banner{{only|bedrock|education|short=1}} always drop it upon death.

== Usage ==

[[File:Standing banner with block.png|thumb|upright|Overlapping block on a banner.]]
[[File:Wall banner with block.png|thumb|upright|Overlapping on a wall mounted banner.]]

There are 16 colored blank banners, and numerous patterns each available in each of the 16 colors. A banner can feature up to 6 different patterns. The top layer of a banner (or the last pattern added) can be washed off by {{control|using}} it on a [[cauldron]] containing water.

Banners, much like signs, can be placed both on the ground facing in any direction, or on a wall. They gently sway as if affected by a breeze, regardless of dimension or location. 

Banners have no collision mask as they are completely non-solid, so [[entities]] can move through them.

Other blocks (including other banners) can be placed on any edge of a banner's hitbox, which is only one block high despite the banner appearing as two blocks tall. This makes it possible to overlap another solid block on the top half of a banner for floor banners, or the bottom half of wall banners.

When a banner is placed on the side of a block, its position is set by the top block, and it is possible to place it so it appears half buried.

Banners can also be placed in [[item frame]]s, where they simply appear as their item model.

[[Water]] and [[lava]] flow around banners. {{IN|bedrock}}, banners can be [[waterlogged]].

<gallery>
File:Wall banner with water below.png| Water can be placed below wall banners
File:Water flowing around banner.png| Water flows around a banner on the ground
</gallery>

Lava can create [[fire]] in air blocks next to banners as if the banners were flammable, but the banners do not burn (and cannot be burned by other methods). Banners also cannot be moved by [[piston]]s.

If a banner is renamed on an [[anvil]], it retains its name when a pattern is added, but not when a pattern is removed.

=== Helmet ===
{{exclusive|java|section=13}}
While a banner cannot be equipped in the [[Helmet|head slot]] in [[Survival]] mode, equipping it using commands causes it to appear on top of the player. This is how [[raid captain]]s wear banners{{only|java|short=1}}.

=== Chestplate ===
{{exclusive|bedrock|section=13}}
While a banner cannot be equipped in the [[chestplate]] slot in Survival mode, equipping it using NBT editors causes it to appear on top of the player. This is how [[raid captain]]s wear banners{{only|bedrock|education|short=1}}.
<gallery>
Steve wearing White Banner.png|
Alex wearing White Banner.png|
Pillager with Ominous Banner.png|
Vindicator with Ominous Banner.png|
Evoker with Ominous Banner.png|Illusioner with Ominous Banner.png|
</gallery>

=== Crafting ingredient ===

[[Shield]]s can have patterns applied to them using banners. The shield pattern has a smaller resolution than the banner pattern, causing them to look different or offset. Banners that have more than six patterns, such as Ominous Banners or banners obtained through inventory editors, will be reduced to six patterns on the shield.

{{Crafting
|showdescription=1
|Shield
|Matching Banner; Ominous Banner
|Output=Matching Shield; Ominous Shield
|B2link=Banner
|type=Combat
|description=Applies the banner pattern to the shield. The banner is consumed.<br>The shield must have no pre-existing patterns.<br>Does not change existing durability or enchantments on the shield.
}}

=== Copying ===

Banners can be copied with a blank banner to make multiple identical banners. Banners with more than 6 patterns applied using commands cannot be copied in this manner.

{{Crafting
|showdescription=1
|Matching Banner
|Matching Banner
|Output=Matching Banner
|A2link=Banner
|B2link=Banner
|Olink=Banner
|type=Decoration block
|ignoreusage=1
|description=Copies pattern; both banners must have the same base color, and the one having a pattern copied onto it must have no preexisting pattern.
}}

=== Map marker ===
[[File:Banner marked map.png|alt=All banners marked on a map, alongside a named banner.|thumb|right|How every banner appears {{IN|java}} on a map, including named banners.]]

{{exclusive|java|section=13}}
{{IN|java}}, {{control|using}} on a standing banner with a [[map]] selected places a marker of the banner's position on the selected map, and {{control|using}} on the banner again removes the marker. Note that wall banners cannot serve as map markers. The marker has the same color as the banner's base without decorations. The marker is removed if the banner is destroyed unless the map is locked using a [[cartography table]]. If the banner is renamed, the name appears below the marker.

=== Patterns ===
{{see also|Banner/Patterns|title1=List of patterned banners}}
[[File:Spawned-in Banner.png|thumb|100px|Example of a banner with more than 6 patterns, a result of using the {{cmd|give}} command.]]

A banner may have up to six layers of patterns, which are overlaid with the last-crafted on top. A banner can have up to 16 layers of patterns with the use of commands. The total number of unique banners is approximately 2.3x10^16 (or 23 quadrillion).

Any color banner can be used; the pattern overlays the color. {{IN|java}}, a [[loom]] is used to make patterns. However, {{in|bedrock}}, the patterns can be made in a [[loom]] or a [[crafting table]].

A banner can have more than six layers of patterns through the commands <code>/[[Commands/give|give]]</code>, <code>/[[Commands/setblock|setblock]]</code> or <code>/[[Commands/fill|fill]]</code>. This only works in ''Java Edition'', as Bedrock Edition doesn't have any NBT commands. Here is an example of a mining banner with seven different patterns. There is specific codes for the [[Banner#Item data:~:text=white-,Item,-In Java Edition|colors]] and [[Banner/Patterns|patterns]] that you have to input. 

<code><nowiki>/give @p white_banner{display:{Name:"\"Mining Industries Banner\""},BlockEntityTag:{Patterns:[{Pattern:"cr",Color:15},{Pattern:"bs",Color:15},{Pattern:"sc",Color:12},{Pattern:"ms",Color:0},{Pattern:"hh",Color:15},{Pattern:"bo",Color:15},{Pattern:"tts",Color:8}]}} 1</code>

{{LoadPage|Template:Banner pattern loom recipes|Loom recipes|h4}}
{{LoadPage|Banner/Banner pattern crafting recipes|Crafting recipes|h4|transcluded=1}}

=== Renaming ===
{{IN|java}}, a banner can be given a custom name that remains as the banner is placed and retrieved. The player can use an [[anvil]] to rename the banner item, or may change the <code>CustomName</code> tag using the {{cmd|data}} command on the banner block.

=== Fuel ===
Banners can be used as a fuel in [[furnace]]s, smelting 1.5 items per banner.

=== Note Blocks ===
Banners can be placed under [[note block]]s to produce "bass" sounds.

== Sounds ==
=== Generic ===
{{Sound table/Block/Wood}}
=== Unique ===
{{edition|java}}: ''None''

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Water Splash Old.ogg
|source=block
|description=When all patterns are removed from a banner using a cauldron
|id=cauldron.cleanbanner
|volume=0.1
|pitch=1.0
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=White Banner
|spritetype=block
|nameid=white_banner
|blocktags=banners, wall_post_override
|itemtags=banners
|translationkey=block.minecraft.white_banner,block.minecraft.ominous_banner
}}
{{ID table
|displayname=Orange Banner
|spritetype=block
|nameid=orange_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Magenta Banner
|spritetype=block
|nameid=magenta_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Light Blue Banner
|spritetype=block
|nameid=light_blue_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Yellow Banner
|spritetype=block
|nameid=yellow_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Lime Banner
|spritetype=block
|nameid=lime_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Pink Banner
|spritetype=block
|nameid=pink_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Gray Banner
|spritetype=block
|nameid=gray_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Light Gray Banner
|spritetype=block
|nameid=light_gray_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Cyan Banner
|spritetype=block
|nameid=cyan_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Purple Banner
|spritetype=block
|nameid=purple_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Blue Banner
|spritetype=block
|nameid=blue_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Brown Banner
|spritetype=block
|nameid=brown_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Green Banner
|spritetype=block
|nameid=green_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Red Banner
|spritetype=block
|nameid=red_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=Black Banner
|spritetype=block
|nameid=black_banner
|blocktags=banners, wall_post_override
|itemtags=banners}}
{{ID table
|displayname=White Wall Banner
|spritetype=block
|nameid=white_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.white_banner,block.minecraft.ominous_banner}}
{{ID table
|displayname=Orange Wall Banner
|spritetype=block
|nameid=orange_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.orange_banner}}
{{ID table
|displayname=Magenta Wall Banner
|spritetype=block
|nameid=magenta_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.magenta_banner}}
{{ID table
|displayname=Light Blue Wall Banner
|spritetype=block
|nameid=light_blue_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.light_blue_banner}}
{{ID table
|displayname=Yellow Wall Banner
|spritetype=block
|nameid=yellow_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.yellow_banner}}
{{ID table
|displayname=Lime Wall Banner
|spritetype=block
|nameid=lime_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.lime_banner}}
{{ID table
|displayname=Pink Wall Banner
|spritetype=block
|nameid=pink_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.pink_banner}}
{{ID table
|displayname=Gray Wall Banner
|spritetype=block
|nameid=gray_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.gray_banner}}
{{ID table
|displayname=Light Gray Wall Banner
|spritetype=block
|nameid=light_gray_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.light_gray_banner}}
{{ID table
|displayname=Cyan Wall Banner
|spritetype=block
|nameid=cyan_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.cyan_banner}}
{{ID table
|displayname=Purple Wall Banner
|spritetype=block
|nameid=purple_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.purple_banner}}
{{ID table
|displayname=Blue Wall Banner
|spritetype=block
|nameid=blue_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.blue_banner}}
{{ID table
|displayname=Brown Wall Banner
|spritetype=block
|nameid=brown_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.brown_banner}}
{{ID table
|displayname=Green Wall Banner
|spritetype=block
|nameid=green_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.green_banner}}
{{ID table
|displayname=Red Wall Banner
|spritetype=block
|nameid=red_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.red_banner}}
{{ID table
|displayname=Black Wall Banner
|spritetype=block
|nameid=black_wall_banner
|blocktags=banners, wall_post_override
|form=block
|translationkey=block.minecraft.black_banner
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=Banners
|spritetype=block
|nameid=banner
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Banner
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Standing
|spritename=Banners
|spritetype=block
|nameid=standing_banner
|translationkey=tile.standing_banner.black.name, tile.standing_banner.red.name, tile.standing_banner.green.name, tile.standing_banner.brown.name, tile.standing_banner.blue.name, tile.standing_banner.purple.name, tile.standing_banner.cyan.name, tile.standing_banner.silver.name, tile.standing_banner.gray.name, tile.standing_banner.pink.name, tile.standing_banner.lime.name, tile.standing_banner.yellow.name, tile.standing_banner.lightBlue.name, tile.standing_banner.magenta.name, tile.standing_banner.orange.name, tile.standing_banner.white.name
|id=176
|form=block}}
{{ID table
|displayname=Wall
|spritename=Banners
|spritetype=block
|nameid=wall_banner
|id=177
|form=block
|translationkey=-}}
{{ID table
|displayname=Item
|spritename=Banners
|spritetype=item
|nameid=banner
|translationkey=item.banner.black.name, item.banner.red.name, item.banner.green.name, item.banner.brown.name, item.banner.blue.name, item.banner.purple.name, item.banner.cyan.name, item.banner.silver.name, item.banner.gray.name, item.banner.pink.name, item.banner.lime.name, item.banner.yellow.name, item.banner.lightBlue.name, item.banner.magenta.name, item.banner.orange.name, item.banner.white.name
|id=567
|form=item
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=Banners
|spritetype=block
|nameid=Banner
|foot=1}}

=== Metadata ===
==== Item ====
{{IN|Bedrock}}, banner items use the following data values:
{| class="wikitable"
! DV !! Banner color
|-
|| 0 || black
|-
|| 1 || red
|-
|| 2 || green
|-
|| 3 || brown
|-
|| 4 || blue
|-
|| 5 || purple
|-
|| 6 || cyan
|-
|| 7 || light gray
|-
|| 8 || gray
|-
|| 9 || pink
|-
|| 10 || lime
|-
|| 11 || yellow
|-
|| 12 || light blue
|-
|| 13 || magenta
|-
|| 14 || orange
|-
|| 15 || white
|}

=== Item ===
{{IN|Java}}, banner items use the following data values:
{| class="wikitable"
! DV !! Banner color
|-
|| 15 || black
|-
|| 14 || red
|-
|| 13 || green
|-
|| 12 || brown
|-
|| 11 || blue
|-
|| 10 || purple
|-
|| 9 || cyan
|-
|| 8 || light gray
|-
|| 7 || gray
|-
|| 6 || pink
|-
|| 5 || lime
|-
|| 4 || yellow
|-
|| 3 || light blue
|-
|| 2 || magenta
|-
|| 1 || orange
|-
|| 0 || white
|}

=== Block states ===
{{see also|Block states}}
{{/BS}}

=== Block data ===

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

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

{{el|java}}:
{{see also|Block entity format}}
{{/BE}}

=== Item data ===

{{el|java}}:
{{main|Player.dat format}}
Banners, as items, use an NBT tag <code>BlockEntityTag</code> to indicate the patterns and details when it is placed.

<div class="treeview" style="margin-top: 0;">
* {{nbt|compound|Item}}: The item
** {{nbt|compound|tag}}: Additional information about the item. This tag is optional for most items.
*** {{nbt|compound|BlockEntityTag}}: The details of the shulker box.
**** All block data, except tags common to all block entities.
</div>

{{el|bedrock}}:
: See [[Bedrock Edition level format/Item format]].

== Achievements ==
{{load achievements|Fruit on the Loom}}

== Advancements ==
{{load advancements|Voluntary Exile}}

== History ==
{{info needed section|The Nether Update}}
{{History|java}}
{{History||1.8|snap=July 21, 2014|slink=https://twitter.com/jeb_/status/491238882789572608|[[Jeb]] posted a picture of banners, and stated that he is working on them.}}
{{History|||snap=14w30a|[[File:White Banner Revision 1.png|22px]][[File:Light Gray Banner Revision 1.png|22px]][[File:Gray Banner Revision 1.png|22px]][[File:Black Banner Revision 1.png|22px]][[File:Brown Banner Revision 1.png|22px]][[File:Red Banner Revision 1.png|22px]][[File:Orange Banner Revision 1.png|22px]][[File:Yellow Banner Revision 1.png|22px]][[File:Lime Banner Revision 1.png|22px]][[File:Green Banner Revision 1.png|22px]][[File:Cyan Banner Revision 1.png|22px]][[File:Light Blue Banner Revision 1.png|22px]][[File:Blue Banner Revision 1.png|22px]][[File:Purple Banner Revision 1.png|22px]][[File:Magenta Banner Revision 1.png|22px]][[File:Pink Banner Revision 1.png|22px]] Added banners.}}
{{History|||snap=14w30c|Added four additional patterns: Cross (+), Border, Curly Border and Thing (Mojang logo).}}
{{History|||snap=14w31a|Added two additional patterns: Inverted Halves and Base Gradient.
|The banner pattern terminology has been changed based on vexillology advice [[Jeb]] received from [http://www.reddit.com/r/Minecraft/comments/2bkxej/i_made_a_huge_mistake_banners/ his Reddit post].
|Banners can now be used as a [[fuel]] in [[furnace]]s.}}
{{History||1.8.8|snap=pre|The number of layers attainable by using [[commands]] is now limited to 16 per banner.}}
{{History||1.9|snap=15w31a|[[File:End City Banner.png|17px]] Magenta banners with a black chevron and inverted chevron are now naturally generated on the outside walls of [[end city|end cities]].}}
{{History|||snap=15w33c|Banners can be used to apply patterns to [[shield]]s.}}
{{History||1.11|snap=16w33a|Banners now require a [[dye]] when applying a pattern that uses a non-dye [[item]], such as a [[mob head|creeper head]] or [[golden apple|enchanted golden apple]]. Previously, the lack of a dye would have applied the black variant of the pattern.}}
{{History|||snap=16w39a|Black and gray banners, and light gray banners with a white flower charge are now naturally generated in rooms of [[woodland mansion]]s.}}
{{History||1.12|snap=January 24, 2017|slink={{tweet|jeb_|823817090511601664}}|[[Jeb]] tweets a screenshot of the changes to the banner color palette.}}
{{History|||snap=17w06a|[[File:White Banner.png|17px]] [[File:Light Gray Banner.png|17px]] [[File:Gray Banner.png|17px]] [[File:Black Banner.png|17px]] [[File:Brown Banner.png|17px]] [[File:Red Banner.png|17px]] [[File:Orange Banner.png|17px]] [[File:Yellow Banner.png|17px]] [[File:Lime Banner.png|17px]] [[File:Green Banner.png|17px]] [[File:Cyan Banner.png|17px]] [[File:Light Blue Banner.png|17px]] [[File:Blue Banner.png|17px]] [[File:Purple Banner.png|17px]] [[File:Magenta Banner.png|17px]] [[File:Pink Banner.png|17px]] Changed banners' [[tint]]s.}}
{{History|||snap=pre6|"Chief fess" and "base fess" banners are now just "chief" and "base" banners.}}
{{History||1.13|snap=17w47a|The colors for the <code>banner</code>, <code>wall_banner</code> and <code>standing_banner</code> ID have been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], these [[block]]s' numeral IDs were 176 and 177, and the [[item]]'s 425.}}
{{History|||snap=18w10a|{{control|Using}} a [[map]] on a banner now mark the spot of the banner on the map.}}
{{History||1.14|snap=18w43a|[[Loom]]s have been added to help the [[player]] edit banners more easily.
|All recipes for banner patterns have been removed.}}
{{History|||snap=18w45a|[[File:Ominous Banner Revision 1.png|17px]] Added [[illager patrol]]s, where the leader of an illager patrol carries an [[illager]] banner.}}
{{History|||snap=18w46a|[[File:Ominous Banner.png|17px]] The pattern of [[illager]] banner now has a black border.}}
{{History|||snap=19w11a|Cartographer and shepherd [[villager]]s now [[trading|sell]] banners.}}
{{History|||snap=Pre-Release 2|"Illager Banners" have been renamed to "Ominous Banners".}}
{{History||1.17|snap=20w46a|The unused "base" pattern has been renamed to the "field" pattern and given proper translation strings (its ID is still "base").}}
{{History||1.19.3|snap=22w43a|The ominous banner is now available in the Creative inventory.}}

{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|[[File:White Banner.png|17px]] [[File:Light Gray Banner.png|17px]] [[File:Gray Banner.png|17px]] [[File:Black Banner.png|17px]] [[File:Brown Banner.png|17px]] [[File:Red Banner.png|17px]] [[File:Orange Banner.png|17px]] [[File:Yellow Banner.png|17px]] [[File:Lime Banner.png|17px]] [[File:Green Banner.png|17px]] [[File:Cyan Banner.png|17px]] [[File:Light Blue Banner.png|17px]] [[File:Blue Banner.png|17px]] [[File:Purple Banner.png|17px]] [[File:Magenta Banner.png|17px]] [[File:Pink Banner.png|17px]] Added banners.
|[[File:End City Banner.png|17px]] Magenta banners with a black chevron and inverted chevron are now naturally generated on the outside walls of [[end city|end cities]].
|Black and gray banners, and light gray banners with a white flower charge are now naturally generated in rooms of [[woodland mansion]]s.}}
{{History||1.4.0|snap=beta 1.2.20.1|The white banner can now be crafted from a colored banner and [[bleach]], which also removes all patterns, if used on a white banner.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[Loom]]s have been added to help the [[player]] edit banners more easily.
|Brown banners now generate in new [[savanna]] [[village]]s.
|Black banners now generate in [[pillager outpost]] watchtowers.}}
{{History||1.11.0|snap=beta 1.11.0.1|Gray banners now generate in pillager outpost watchtowers, instead of black banners.
|[[File:Ominous Banner BE.png|17px]] Added [[illager captain]]s, which drop an [[illager]] banner upon [[death]].}}
{{History|||snap=beta 1.11.0.3|Illager banners now generate in [[pillager outpost]] watchtowers, instead of gray banners.}}
{{History|||snap=beta 1.11.0.4|Banners can now be [[trading|bought]] from cartographer and shepherd [[villager]]s.}}
{{History||1.20.0|snap=beta 1.20.0.20|Banners can now be used to customise [[shield]]s.}}

{{History|console}}
{{History||xbox=TU43|xbone=CU33|ps=1.36|wiiu=Patch 13|switch=1.0.1|[[File:White Banner Revision 1.png|22px]][[File:Light Gray Banner Revision 1.png|22px]][[File:Gray Banner Revision 1.png|22px]][[File:Black Banner Revision 1.png|22px]][[File:Brown Banner Revision 1.png|22px]][[File:Red Banner Revision 1.png|22px]][[File:Orange Banner Revision 1.png|22px]][[File:Yellow Banner Revision 1.png|22px]][[File:Lime Banner Revision 1.png|22px]][[File:Green Banner Revision 1.png|22px]][[File:Cyan Banner Revision 1.png|22px]][[File:Light Blue Banner Revision 1.png|22px]][[File:Blue Banner Revision 1.png|22px]][[File:Purple Banner Revision 1.png|22px]][[File:Magenta Banner Revision 1.png|22px]][[File:Pink Banner Revision 1.png|22px]] Added banners.}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|switch=1.0.1|[[File:End City Banner.png|17px]] Magenta banners with a black chevron and inverted chevron are now naturally generated on the outside walls of [[end city|end cities]].}}
{{History||xbox=TU53|xbone=CU43|ps=1.49|wiiu=Patch 23|switch=1.0.3|[[File:White Banner.png|17px]] [[File:Light Gray Banner.png|17px]] [[File:Gray Banner.png|17px]] [[File:Black Banner.png|17px]] [[File:Brown Banner.png|17px]] [[File:Red Banner.png|17px]] [[File:Orange Banner.png|17px]] [[File:Yellow Banner.png|17px]] [[File:Lime Banner.png|17px]] [[File:Green Banner.png|17px]] [[File:Cyan Banner.png|17px]] [[File:Light Blue Banner.png|17px]] [[File:Blue Banner.png|17px]] [[File:Purple Banner.png|17px]] [[File:Magenta Banner.png|17px]] [[File:Pink Banner.png|17px]] Changed banners' [[tint]]s.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[Loom]]s have been added to help the [[player]] edit banners more easily.}}
{{History||ps=1.91|[[File:Ominous Banner BE.png|17px]] Added [[illager]] banners, which generate with [[pillager outpost]]s and are [[drops|dropped]] by [[illager captain]]s upon [[death]].}}
{{History|foot}}

== Issues ==

{{issue list}}

== Trivia ==
* With 16 blank banners, 38 patterns of 16 colors each (608 uniquely-colored patterns), and 0 to 6 patterns per banner, the number of uniquely crafted banners is 16 × (608<sup>0</sup> + 608<sup>1</sup> + 608<sup>2</sup> + 608<sup>3</sup> + 608<sup>4</sup> + 608<sup>5</sup> + 608<sup>6</sup>) ≈ 809 quadrillion - 809 with 15 zeros (809,573,616,779,945,488). The number of visually distinct banners is smaller, because one or more patterns may completely cover other patterns, or the entire banner, or be duplicated due to the symmetric set of patterns (e.g. field or (yellow) + per pale azure (blue) = field azure + per pale or inverted).
** Not 38 patterns are available on BE, but 40 patterns of 16 colors each (640 uniquely-colored patterns), so the number is even greater. 16 × (640<sup>0</sup> + 640<sup>1</sup> + 640<sup>2</sup> + 640<sup>3</sup> + 640<sup>4</sup> + 640<sup>5</sup> + 640<sup>6</sup>) ≈ 1 quintillion - 1 with 18 zeros (1,101,232,303,249,827,856). This increases the number by almost 1.4 times, or almost 292 quadrillion, despite the addition of only 2 patterns.
* If a banner has over 6 patterns, only the six bottom-most patterns are displayed when hovered over in the [[inventory]].
* The Mojang logo is called "Thing" in-game, which could be considered an alternate translation for [[wiktionary:mojäng|mojäng]]. If [[wikipedia:Google Translate|Google Translate]] is used, it translates to "thingys" or "contraption".
** In the Swedish translation of the game, this pattern is, in fact, called ''mojäng''.
* [[List of block textures#Banner Textures|Banner textures]] are located in \assets\minecraft\textures\entity\banner.
** There are 40 monochrome textures, each containing all 6 sides of the banner.
** The texture of the back side is the mirrored texture of the front side.
** Compared to the texture files, textures' colors are inverted in-game due to them acting as masks for the re-colored base texture, base.png. That means white is visible, while black is transparent.
* Banners that have the purple NBT+ line in the bottom (obtained by holding Ctrl and middle-clicking the banner, which also copies the NBT [[tag]] of anything that the player points their crosshair to) actually have no difference with the base banner obtained by middle click.
*The Illager Banner in Bedrock Edition is available as a separate item but is just a second variant of the white banner.
**Standard variant of white banner is set to type 0.
**Illager variant is set to type 1.

== Gallery ==
<gallery>
Banners Jeb.png|The first image of banners, as tweeted by Jens Bergensten.
Iceland and Norway Flags.png|Another banner image from Jeb.
Searge Banners.png|Several banners made by Searge.
The Bountiful Update.png|Banners in the official 1.8 poster.
BannersBeforeAndAfter.png|An image, tweeted by Jeb, showcasing the changes he made to the banner color palette in the 1.12 update.
Gradients Overlay.png|The result of using gradient different numbers of times, each time increasing the level of gradient by 1.
All positions and rotations of a banner.png|All positions and rotations of a banner
Item Frame with Banner.png|A banner with the [[Mojang]] logo in an [[item frame]].
EndCityBanners.png|Banners floating outside of an [[End city]] tower.
Woodland mansion 1x2 d1.png|Banners hanging above the doorway of a [[woodland mansion]] master bedroom.
Replaceitembanner.png|Banner put in the helmet slot by using the command {{cmd|replaceitem}}{{Only|BE}} or {{cmd|item replace}}{{Only|JE}}.
Better Together Banners.jpg|Banners in ''Bedrock Edition''.
Better Together Banner Crafting 1.jpg|A banner in the hand.
Better Together Banner Crafting 2.jpg|A banner in the inventory.
Better Together Banner Crafting 3.jpg|A banner in the crafting grid.
Better Together Banner Crafting 4.jpg|A banner being given a pattern.
</gallery>

=== Renders ===
<gallery>
Ominous Banner.gif
White Banner.gif
Light Gray Banner.gif
Gray Banner.gif
Black Banner.gif
Brown Banner.gif
Red Banner.gif
Orange Banner.gif
Yellow Banner.gif
Lime Banner.gif
Green Banner.gif
Cyan Banner.gif
Light Blue Banner.gif
Blue Banner.gif
Purple Banner.gif
Magenta Banner.gif
Pink Banner.gif
Ominous Wall Banner.png| 
White Wall Banner.png| 
Light Gray Wall Banner.png| 
Gray Wall Banner.png| 
Black Wall Banner.png| 
Brown Wall Banner.png| 
Red Wall Banner.png| 
Orange Wall Banner.png| 
Yellow Wall Banner.png| 
Lime Wall Banner.png| 
Green Wall Banner.png| 
Cyan Wall Banner.png| 
Light Blue Wall Banner.png| 
Blue Wall Banner.png| 
Purple Wall Banner.png| 
Magenta Wall Banner.png| 
Pink Wall Banner.png
</gallery>

<gallery>
File:Ominous Banner.gif|Ominous banner pattern in Java Edition.
File:Ominous Banner BE.gif|Illager banner pattern in Bedrock Edition.
File:Ominous Banner Revision 1.gif|Old Ominous banner pattern.
File:Ominous Banner washing.gif|Washing with cauldron shows how to apply the ominous banner pattern.
</gallery>

=== [[Lego Minecraft]] Banners ===
<gallery>
File:Lego Red Creeper Banner Collage.jpg|Lego banners from 21127 and 21131
File:Lego Melon Banner.png|Lego banner from 21138
File:Lego Fish Banner.png|Lego banner from 21142
File:Lego Beetroot Banner.png|Lego banner from 21144
File:Lego Wheat Banner.png|Another lego banner from 21144
File:Lego Carrot Banner.png|A third lego banner from 21144
File:Lego Crossbones Banner.png|Lego banner from 21152
File:Lego Green Creeper Banner Collage.jpg|Lego banners from 21155
File:Lego Ominous Banner.png|Lego ominous banner from 21160
</gallery>

== References ==
{{reflist}}

{{Blocks|Utility}}
{{Items}}

[[Category:Generated structure blocks]]
[[Category:Manufactured blocks]]
[[Category:Block entities]]
[[Category:Non-solid blocks]]

[[cs:Prapor]]
[[de:Banner]]
[[es:Estandarte]]
[[fr:Bannière]]
[[ja:旗]]
[[ko:현수막]]
[[nl:Banier]]
[[pl:Sztandar]]
[[pt:Estandarte]]
[[ru:Флаг]]
[[uk:Стяг]]
[[zh:旗帜]]</li></ul></nowiki>
beta 1.17.10.22Candle White Candle Light Gray Candle Gray Candle Black Candle Brown Candle Red Candle Orange Candle Yellow Candle Lime Candle Green Candle Cyan Candle Light Blue Candle Blue Candle Purple Candle Magenta Candle Pink Candle
Candle (lit) JE2 White Candle (lit) JE3 Light Gray Candle (lit) JE3 Gray Candle (lit) JE3 Black Candle (lit) JE3 Brown Candle (lit) JE3 Red Candle (lit) JE3 Orange Candle (lit) JE3 Yellow Candle (lit) JE3 Lime Candle (lit) JE3 Green Candle (lit) JE3 Cyan Candle (lit) JE3 Light Blue Candle (lit) JE3 Blue Candle (lit) JE3 Purple Candle (lit) JE3 Magenta Candle (lit) JE3 Pink Candle (lit) JE3
Candle (item) JE3 White Candle (item) JE3 Light Gray Candle (item) JE3 Gray Candle (item) JE3 Black Candle (item) JE3 Brown Candle (item) JE3 Red Candle (item) JE3 Orange Candle (item) JE3 Yellow Candle (item) JE3 Lime Candle (item) JE3 Green Candle (item) JE3 Cyan Candle (item) JE3 Light Blue Candle (item) JE3 Blue Candle (item) JE3 Purple Candle (item) JE3 Magenta Candle (item) JE3 Pink Candle (item) JE3 BE1 Added candles.

Gallery[]

Renders[]

Candles[]

Lit candles[]

Screenshots[]

Issues[]

Issues relating to "Candle" are maintained on the bug tracker. Report issues there.

Trivia[]

  • Using the command /setblock ~ ~ ~ minecraft:candle[lit=true,waterlogged=true] allows for a both lit and waterlogged candle. The same thing can be done using the debug stick.
  • A single candle has the same width as iron bar or glass pane.

References[]

  1. MC-226441 — resolved as "Fixed".

External Links[]


Advertisement