Minecraft Wiki
Advertisement

Per Landin Mojang avatar

A mysterious blue-clad villager has appeared out of nowhere! You gasp and drop your controller. You fall to your knees. Your mind explodes with questions: "How did it get here?", "Why is it trying to trade with me?" and "Minecraft villagers outside of villages? What blasphemy is this?!"
Calm down, friend! Everything is fine! You've just encountered Minecraft's latest and most experienced salesman – the Wandering Trader!

Per Landin[1]

The wandering trader is a passive mob found randomly across the world. It can trade, making natural items more available and in some cases, less dangerous to obtain.

Spawning

The wandering trader appears randomly across the world with 2 leashed trader llamas.‌[BE only] In Bedrock Edition, wandering traders can also spawn in village gathering sites, usually near village meeting points.

At any time, there can be only one wandering trader naturally spawned in loaded chunks. After 24000 ticks (20 real-life minutes, or 1 Minecraft day) have passed since the world is created, the game attempts to spawn a wandering trader.[note 1] If there are no wandering traders currently in any loaded chunks, the game tries to spawn a new wandering trader after every following 24000 ticks, within a 48-block radius of a player. The first spawn attempt has a 2.5% chance of success; if it fails, after another 24000 ticks another spawn attempt is made with a 5% chance of success. If that fails, for all subsequent spawn attempts the chance caps at 7.5%. On average, it takes 14.325 Minecraft days for a wandering trader to spawn. After 48000 or 72000 ticks, the trader despawns, even when named, along with its llamas, resetting the cycle.

In Bedrock Edition, when using spawn eggs or the /summon command to spawn a wandering trader, llamas always spawn with it. Wandering traders never spawn if /mobevent minecraft:wandering_trader is set to false.

In Java Edition, wandering traders never spawn if /gamerule doTraderSpawning is set to false.

Behavior

The wandering trader has 6 random trades. New trades are not unlocked after trading with it.

After spawning, the wandering trader has a managed schedule for 40–60 minutes. After the time expires, the wandering trader despawns, even if the wandering trader is named with a name tag or put in a vehicle such as a minecart or boat. A wandering trader despawns sooner if all trades have been locked. The trader may later respawn with new trades.

The wandering trader can sometimes form a caravan, due to wild llamas that follow the leashed trader llama(s).

Wandering traders drink a potion of invisibility during dusk. In Java Edition, at dawn they drink milk to remove the invisibility.

Wandering traders avoid zombies and their variants, all illager variants, and vexes, staying at least 8 blocks away. Unlike other villagers, a wandering trader killed by zombies does not become a zombie villager.[2]

Wandering traders drink potions of invisibility if hurt by magic attacks or projectiles from hostile mobs, or when avoiding illagers, vexes, and zombies.‌[BE only]

When attacked by a player, a wandering trader flees from the player as a villager would do. The llamas, however, attack the player if their master gets hit.

Like villagers, wandering traders can also close and open wooden doors.‌[BE only]

Unlike most other villager-like mobs, wandering traders do not visually sit down when riding objects such as boats and minecarts, which is intentional.[3]

Drops

A wandering trader also drops leads when killed or when separated too far from its trader llamas. The leads break and appear at the position of the llamas. The llamas also drop their leads when killed, and if a wandering trader and one of its llamas are riding the same boat, the lead breaks. This counts up to two leads.

Wandering traders do not reward any experience.

Trading

For the available trades for the wandering trader, see Trading § Wandering trader.

The trading system is a gameplay mechanic that allows players to buy items with emeralds.

A player can click on the wandering trader to view the items offered for sale. Different offers are visible in a list, and clicking on one of the offers moves the corresponding items to the slots above the player's inventory. All offers involve emeralds as a currency. A wandering trader has an emerald above its head while trading‌[BE only] and typically sells items generated in the world or otherwise related to nature, such as plants, dyes, and buckets of fish. They can also trade less common items, such as coral or blue ice.

After the player purchases the same item several times, the wandering trader locks the trade, but unlike villagers, never unlocks the trade.

Unlike villagers, wandering traders only sell items, they do not buy items. Wandering traders do not have an experience bar and do not modify their offers based on increased or decreased demand. This can be changed by the player by editing the corresponding NBT data flag through the use of the data command.

Sounds

The following sounds section uses an outdated format and should be redone using {{Sound table}}. 
You can help by converting the contents of this section into a sound table template.
Examples can be seen at Bee#Sounds and Ladder#Sounds.
The wikicode should be laid out neatly as in these examples for improved readability.
Remember to include a foot parameter so the table appears in the correct place. Do NOT convert the table using Visual Editor.
Sound Subtitle Namespaced ID Subtitle ID Source Pitch Volume Attenuation distance
Wandering Trader mumbles entity.wandering_trader.ambient subtitles.entity.wandering_trader.ambient ? ? 1 16
Wandering Trader dies entity.wandering_trader.death subtitles.entity.wandering_trader.death ? ? 1 16
Wandering Trader hurts entity.wandering_trader.hurt subtitles.entity.wandering_trader.hurt ? ? 1 16
Wandering Trader disagrees entity.wandering_trader.no subtitles.entity.wandering_trader.no ? ? 1 16
Wandering Trader trades entity.wandering_trader.trade subtitles.entity.wandering_trader.trade ? ? 1 16
Wandering Trader agrees entity.wandering_trader.yes subtitles.entity.wandering_trader.yes ? ? 1 16
Wandering Trader drinks milk entity.wandering_trader.drink_milk subtitles.entity.wandering_trader.drink_milk ? ? 1 16
Wandering Trader drinks potion entity.wandering_trader.drink_potion subtitles.entity.wandering_trader.drink_potion ? ? 1 = 0.65; 2 = 0.7 16
Wandering Trader turning invisible entity.wandering_trader.disappeared subtitles.entity.wandering_trader.disappeared ? ? 0.8 16
Wandering Trader running out of invisibility entity.wandering_trader.reappeared subtitles.entity.wandering_trader.reappeared ? ? 0.8 16

Data values

See also: Chunk format

Wandering traders have entity data associated with them that contain various properties of the mob.

  • Entity data
      • Additional fields for mobs that can breed
    • Tags common to all entities
    • Tags common to all mobs
    •  DespawnDelay: The number of ticks counted down until this wandering trader is forced to despawn. The wandering trader despawns when this value reaches 1.
    •  Offers: Is generated when the trading menu is opened for the first time.
      •  Recipes: List of trade options.
        • A trade option.
          •  buy: The first 'cost' item, without the Slot tag.
            • Tags common to all items
          •  buyB: May not exist. The second 'cost' item, without the Slot tag.
            • Tags common to all items
          •  maxUses: The maximum number of times this trade can be used before it is disabled. Increases by a random amount from 2 to 12 when offers are refreshed.
          •  rewardExp: 1 or 0 (true/false) - true if this trade provides XP orb drops. All trades from naturally-generated villagers in Java Edition reward XP orbs.
          •  sell: The item being sold for each set of cost items, without the Slot tag.
            • Tags common to all items
          •  uses: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
    •  WanderTarget: Destination toward where this trader wanders.
      •  X: The X coordinate to wander toward.
      •  Y: The Y coordinate to wander toward.
      •  Z: The Z coordinate to wander toward.
    •  Inventory: Each compound tag in this list is an item in the wandering trader's inventory, up to a maximum of 8 slots. Items in two or more slots that can be stacked together are automatically be condensed into one slot. If there are more than 8 slots, the last slot is removed until the total is 8. If there are 9 slots but two previous slots can be condensed, the last slot returns after the two other slots are combined. Wandering traders don't change their inventory automatically or drop items from it upon death. The inventory is currently unused.
      • An item in the inventory, excluding the Slot tag.
        • Tags common to all items

Advancements

Icon Advancement In-game description Parent Actual requirements (if different) Resource location
Advancement-plain-rawWhat a Deal!
Successfully trade with a Villager AdventureTake an item from a villager or wandering trader's trading output slot, and put it in your inventory.adventure/trade

History

Java Edition
1.14
{{Extension DPL}}<ul><li>[[Milk Bucket|Milk Bucket]]<br/>{{Item
| title=Milk Bucket
| image = Milk Bucket.png
| renewable = Yes
| effects = Clears all
| stackable = No
}}
A '''milk bucket'''{{fn|Known as '''Milk Bucket''' {{in|java}} and '''Milk''' {{in|bedrock}}.}} is a [[drink]] obtained from {{Control|use|text=using}} a [[bucket]] on [[cow]]s, [[mooshroom]]s and [[goat]]s that can be consumed to clear all [[Effect|effects]].

== Obtaining ==

=== Harvesting ===
Milk buckets can be obtained from [[cow]]s, [[mooshroom]]s, and [[goat]]s by pressing {{control|use}} while looking at them with an empty [[bucket]].

=== Mob loot ===
A milk bucket has a chance of dropping from a [[wandering trader]], if the trader is killed while holding it.{{only|java}}

== Usage ==

Holding {{control|use}} with a milk bucket starts the drinking sound and animation. {{IN|java}}, the animation is shown only in first-person camera mode.

When consumed, milk immediately removes all status [[effect]]s from the [[player]]. [[Fire]] is not a status effect; therefore, drinking milk doesn't extinguish a burning player.

The benefits of area status effects granted by [[beacon]]s and [[Conduit Power|conduit power]] are restored almost immediately in Bedrock Edition and after a few seconds in ''Java Edition''.

=== Crafting ingredient ===

{{crafting usage|Milk Bucket}}

== Sounds ==
{{el|je}}:
{{Sound table
|sound=Drink.ogg
|subtitle=Sipping
|source=player
|description=While a player is drinking milk
|id=entity.generic.drink
|translationkey=subtitles.entity.generic.drink
|volume=0.5
|pitch=0.9-1.0
|distance=16}}
{{Sound table
|sound=Cow milk1.ogg
|sound2=Cow milk2.ogg
|sound3=Cow milk3.ogg
|source=player
|subtitle=Cow gets milked
|description=When a cow is milked
|id=entity.cow.milk
|translationkey=subtitles.entity.cow.milk
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|subtitle=Goat gets milked
|description=When a regular goat is milked
|source=neutral
|id=entity.goat.milk
|translationkey=subtitles.entity.goat.milk
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Goat screaming milk1.ogg
|sound2=Goat screaming milk2.ogg
|sound3=Goat screaming milk3.ogg
|sound4=Goat screaming milk4.ogg
|sound5=Goat screaming milk5.ogg
|subtitle=Goat gets milked
|description=When a screaming goat is milked
|source=neutral
|id=entity.goat.screaming.milk
|translationkey=subtitles.entity.goat.milk
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Wandering trader drink milk1.ogg
|sound2=Wandering trader drink milk2.ogg
|sound3=Wandering trader drink milk3.ogg
|sound4=Wandering trader drink milk4.ogg
|sound5=Wandering trader drink milk5.ogg
|subtitle=Wandering Trader drinks milk
|source=neutral
|description=While a wandering trader is drinking milk to become visible during daytime
|id=entity.wandering_trader.drink_milk
|translationkey=subtitles.entity.wandering_trader.drink_milk
|volume=0.5
|pitch=0.9-1.0
|distance=16
|foot=1}}

{{el|be}}:
{{Sound table
|type=bedrock
|sound=Drink.ogg
|source=player
|description=While a player is drinking milk
|id=random.drink
|volume=0.35
|pitch=0.9-1.1}}
{{Sound table
|sound=Cow milk1.ogg
|sound2=Cow milk2.ogg
|sound3=Cow milk3.ogg
|source=neutral
|description=When a cow is milked
|id=mob.cow.milk
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|description=When a regular goat is milked
|source=neutral
|id=mob.mooshroom.suspicious_milk
|volume=1.0
|pitch=1.0/0.9/1.1}}
{{Sound table
|sound=Goat screaming milk1.ogg
|sound2=Goat screaming milk2.ogg
|sound3=Goat screaming milk3.ogg
|sound4=Goat screaming milk4.ogg
|sound5=Goat screaming milk5.ogg
|description=When a screaming goat is milked
|source=neutral
|id=mob.goat.milk.screamer
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Wandering trader drink milk1.ogg
|sound2=Wandering trader drink milk2.ogg
|sound3=Wandering trader drink milk3.ogg
|sound4=Wandering trader drink milk4.ogg
|sound5=Wandering trader drink milk5.ogg
|source=neutral
|description=While a wandering trader is drinking milk to become visible during daytime
|id=mob.wanderingtrader.drink_milk
|volume=1.0
|pitch=0.8-1.2
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Milk
|spritetype=item
|nameid=milk_bucket
|aliasid=bucket / 1
|id=361
|form=item
|translationkey=item.milk.name
|foot=1}}

== Achievements ==
{{load achievements|The Lie}}

== Advancements ==
{{Load advancements|Husbandry}}

== Video ==

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

== History ==

{{History|java alpha}}
{{History||v1.0.8|[[File:Milk Bucket JE1 BE1.png|32px]] Milk has been introduced, but it has no purpose and is obtainable only through inventory editing.}}
{{History||v1.0.11|Milk can now be obtained by {{control|use|text=milking}} a [[cow]] with a [[bucket]]. However, it is not yet drinkable.}}
{{History||v1.0.17|Milk buckets can now be emptied.}}
{{History|java beta}}
{{History||1.2|Milk has been incorporated into the [[crafting]] recipe of [[cake]].}}
{{History||1.2_01|[[Squid]] can now be milked by right-clicking on their mouth if part of their body was exposed to [[air]] or if they were not touching another [[block]]. An easy way to accomplish this is to pull a squid with a [[fishing rod]] away from other blocks and then milk it.}}
{{History||1.3_01|Squid milking has been removed.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease|Milk can now be obtained by milking [[mooshroom]]s.}}
{{History|||snap=Beta 1.9 Prerelease 2|Milk has been made drinkable.
|According to a tweet by [[Jeb]] on September 30th 2011, milk was made a cure for all status effects.<ref>{{tweet|jeb_|119842906528944129|@Nexusdog_UK I haven't! In beta 1.9 pre2 milk works like a clear-everything drink|September 30, 2011}}</ref>
|Milk is no longer emptiable.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 335.}}
{{History|||snap=18w20a|"Milk" has been renamed to "Milk Bucket".}}
{{History||1.14|snap=18w43a|[[File:Milk Bucket JE2 BE2.png|32px]] The texture of milk buckets has been changed.}}
{{History||1.14|snap=19w06a|[[Wandering trader]]s now drink from milk buckets at dawn, and have a change to drop them.}}
{{History||1.17|snap=21w13a|Milk can now be obtained by milking [[goat]]s.}}
{{History|upcoming java}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=23w31a|Wander traders now have a chance to [[trading|buy]] a milk bucket from the player.}}

{{History|pocket alpha}}
{{History||v0.7.0|[[File:Milk Bucket JE1 BE1.png|32px]] Added milk buckets. 
|Milk buckets are not yet drinkable.}}
{{History||v0.11.0|snap=build 4|Drinking milk now removes [[status effects]].
|Added milk buckets to the Creative inventory.{{verify|type=update}}{{info needed}}<!---same update?--->}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Moved all bucket items, including milk, 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:Milk Bucket JE2 BE2.png|32px]] The texture of milk buckets has been changed.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of milk has been changed from <code>bucket/1</code> to <code>milk_bucket</code>.}}
{{History||1.16.200|snap=beta 1.16.200.52|Milk can now be obtained by milking [[goat]]s.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Milk Bucket JE1 BE1.png|32px]] Added milk buckets.}}
{{History|Ps4}}
{{History||1.90|[[File:Milk Bucket JE2 BE2.png|32px]] The texture of milk buckets has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Milk Bucket JE1 BE1.png|32px]] Added milk buckets.}}
{{History|foot}}

== Issues ==
{{issue list}}

== See also ==
*[[Water Bucket]]
*[[Lava]]
*[[Food]]
*[[Cake]]
*[[Honey Bottle]] (alternative to remove poison effect)
*[[Medicine]]

== Notes ==
{{fnlist}}

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--milk-bucket Taking Inventory: Milk Bucket] – Minecraft.net on October 8, 2019

{{Items}}

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

[[cs:Mléko]]
[[de:Milcheimer]]
[[es:Cubo con leche]]
[[fr:Seau de lait]]
[[hu:Tej]]
[[it:Secchio di latte]]
[[ja:ミルク入りバケツ]]
[[ko:우유 양동이]]
[[nl:Emmer melk]]
[[pl:Wiadro mleka]]
[[pt:Balde de leite]]
[[ru:Ведро с молоком]]
[[th:ถังนม]]
[[uk:Відро молока]]
[[zh:奶桶]]</li><li>[[Baked Potato|Baked Potato]]<br/>{{Item
| title = Baked Potato
| renewable = Yes
| heals = {{hunger|5}}
| stackable = Yes (64)}}

A '''baked potato''' is a [[food]] [[item]] that can be eaten by the [[player]].

== Obtaining ==

Baked potatoes can be obtained by cooking [[potato]]es in a [[furnace]], [[smoker]], or [[campfire]].
{{Smelting
|Potato
|Baked Potato
|0,35
}}

{{IN|JE}}, baked potatoes can also be obtained by killing a zombie or one of its variants while it is on fire. The drop chance is still affected by [[Looting]].

=== Chest loot ===
{{LootChestItem|baked-potato}}

== Usage ==

To eat a baked potato, press and hold {{control|use}} while it is selected in the [[hotbar]]. Eating one restores {{hunger|5}} hunger and 6.0 hunger [[Hunger#Mechanics|saturation]].

=== Crafting ingredient ===

{{crafting usage}}

=== Composting ===
Placing a baked potato into a [[composter]] has an 85% chance of raising the compost level by 1. This is more efficient than composting with raw potatoes.

== Sounds ==

{{Sound table/Entity/Food}}

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Baked Potato
|spritetype=item
|nameid=baked_potato
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Baked Potato
|spritetype=item
|nameid=baked_potato
|id=281
|form=item
|foot=1}}

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

== History ==

{{History|java}}
{{History||1.4.2|snap=12w34a|[[File:Baked Potato JE1.png|32px]] Added baked potatoes.}}
{{History|||snap=12w37a|[[File:Baked Potato JE2 BE1.png|32px]] The texture of baked potatoes has been slightly changed.}}
{{History||1.8|snap=14w02a|Baked potatoes now restore {{Hunger|5}} hunger points instead of 6.}}
{{History|||snap=14w27a|Baked potatoes are now used to craft [[rabbit stew]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 393.}}
{{History||1.14|snap=18w43a|[[File:Baked Potato JE3.png|32px]] The texture of baked potatoes has been changed.}}
{{History|||snap=18w50a|[[File:Baked Potato JE4 BE2.png|32px]] The texture of baked potatoes has been changed, once again.}}
{{History|||snap=19w03a|Placing a baked potato into the new [[composter]] has an 80% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Baked potatoes now have an 85% chance of increasing the compost level in a composter by 1.}}
{{History||1.17|snap=21w13a|Baked potatoes can now be dropped by flaming [[zombie]]s.<ref>{{bug|MC-199065}}</ref>}}
{{History||1.19|snap=22w13a|Baked potatoes can now be found in [[ancient city]] ice box [[chest]]s.}}
{{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]] baked potatoes from the player.}}

{{History|pocket alpha}}
{{History||v0.8.0|snap=build 1|[[File:Baked Potato JE2 BE1.png|32px]] Added baked potatoes.}}
{{History||v0.12.1|snap=build 1|Baked potatoes now restore [[hunger]] instead of [[health]].}}
{{History||v0.13.0|snap=build 1|Baked potatoes are now used to craft [[rabbit stew]].}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Baked Potato JE4 BE2.png|32px]] The texture of baked potatoes has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Baked potatoes can now be used to fill up [[composter]]s.}}

{{History|console}}
{{History||xbox=TU14|xbone=CU1|ps=1.04|wiiu=Patch 1|switch=1.0.1|[[File:Baked Potato JE2 BE1.png|32px]] Added baked potatoes.}}
{{History||ps=1.00|[[File:Baked Potato JE2 BE1.png|32px]] Added baked potatoes to the [[PlayStation 4 Edition|PS4]] and [[PlayStation Vita Edition|PSVita]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Baked Potato JE4 BE2.png|32px]] The texture of baked potatoes has been changed.}}

{{History|new3DS}}
{{History||0.1.0|[[File:Baked Potato JE2 BE1.png|32px]] Added baked potatoes.}}
{{History|foot}}

== Issues ==

{{issue list}}

== See also ==

* {{ItemLink|Poisonous Potato}}

{{Items}}

[[Category:Food]]
[[Category:Renewable resources]]

[[cs:Pečená brambora]]
[[de:Ofenkartoffel]]
[[es:Patata cocida]]
[[fr:Pomme de terre cuite]]
[[hu:Sült burgonya]]
[[it:Patata al forno]]
[[ja:ベイクドポテト]]
[[ko:구운 감자]]
[[nl:Gebakken aardappel]]
[[pl:Pieczony ziemniak]]
[[pt:Batata assada]]
[[ru:Печёный картофель]]
[[th:มันฝรั่งอบ]]
[[zh:烤马铃薯]]</li></ul>
19w05aWandering Trader Added the wandering trader.
19w06aWandering traders now drink invisibility potions at dusk and milk buckets at dawn.
19w09aAdded two new sounds for wandering traders when they drink invisibility potions and milk.
1.15.2
{{Extension DPL}}<ul><li>[[Recovery Compass|Recovery Compass]]<br/>{{About|the item used to point to the location of the player's last death|the item used to point to the world spawn or to a lodestone|Compass}}
{{Item
| image = Recovery Compass.gif
| renewable = No
| stackable = Yes (64)
}}

A '''recovery compass''' is an item used to point to the location of the [[Player|player's]] last death.

== Obtaining ==

=== Crafting ===
{{Crafting
|A1= Echo Shard |B1= Echo Shard   |C1= Echo Shard
|A2= Echo Shard |B2= Compass      |C2= Echo Shard
|A3= Echo Shard |B3= Echo Shard   |C3= Echo Shard
|Output= Recovery Compass
|type= Tool
}}

== Usage ==
When held by a player, the recovery compass will point towards the spot where they previously died.

The recovery compass will only work when it is held by a player who has previously died and is in the same dimension as their last death. Otherwise, it will spin around randomly.

Like other items, the recovery compass itself will still drop when a player dies and the <code>keepInventory</code> [[game rule]] is not enabled.

This item is useless on Hardcore mode, as once the player dies, the player cannot respawn.

=== Enchantments ===

A recovery compass can receive the following [[enchantment]]s:
{| class="wikitable col-2-center col-3-right"
|+
!Name
!Max Level
![[Enchanting|Method]]
|-
|[[Curse of Vanishing]]{{only|bedrock|short=1}}
|I
|{{Inventory slot|Anvil}}
|-
|}

== Data values ==
{{Missing information|section|data values for Bedrock Edition|type=data}}

=== ID ===
[[Java Edition|''Java Edition'']]:
{{ID table|edition=java|displayname=Recovery Compass|nameid=recovery_compass|translationkey=item.minecraft.recovery_compass|generatetranslationkeys=y|showforms=y|spritetype=item|form=item|foot=1}}

==History==
{{History|java}}
{{History||1.19|snap=22w14a|[[File:Recovery Compass JE1 BE1.gif|32px]] Added recovery compasses.}}
{{History|||snap=22w15a|Recovery compasses can no longer be used on [[lodestone]]s and can no longer be enchanted with [[Curse of Vanishing]].}}
{{History|bedrock}}
{{History||1.19.0|snap=beta 1.19.0.24|[[File:Recovery Compass JE1 BE1.gif|32px]] Added recovery compasses.}}
{{History|foot}}

==Issues==
{{issue list}}

==Gallery==
<gallery>
File:Recovery Compass In An Item Frame.jpg|Recovery Compass.<ref>{{tweet|kingbdogz|1511751971673419782|Tell us what you think of the new Recovery Compass! We're hoping it improves how rewarding it feels to obtain Ancient City loot. Despite that, how do you feel about it? Will you use it? If so, how? What situations would you use it instead of just trying to remember?|April 6, 2022}}</ref>
</gallery>

==References==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--recovery-compass Taking Inventory:Recovery Compass] – Minecraft.net on January 19, 2023

{{Items}}

[[Category:Tools]]
[[Category:Non-renewable resources]]

[[de:Bergungskompass]]
[[es:Brújula de recuperación]]
[[fr:Boussole de récupération]]
[[ja:リカバリーコンパス]]
[[pl:Kompas powrotny]]
[[pt:Bússola de retomada]]
[[ru:Компас восстановления]]
[[th:เข็มทิศกู้คืน]]
[[uk:Компас відновлення]]
[[zh:追溯指针]]</li><li>[[Golden Apple|Golden Apple]]<br/>{{Distinguish|Enchanted Golden Apple}}
{{Item
| image = Golden Apple.png
| rarity = Rare
| heals = {{hunger|4}}
|effects=: {{EffectLink|Absorption}} (2:00)
: {{EffectLink|Regeneration}} II (0:05)
|renewable = Yes
|stackable = Yes (64)
}}

A '''golden apple''' is a [[food]] item that bestows beneficial effects when consumed, and is also used to cure a [[Zombie Villager|zombie villager]] under the [[Weakness]] effect into a normal [[villager]].

== Obtaining ==
=== Crafting ===
{{Crafting
|A1= Gold Ingot
|B1= Gold Ingot
|C1= Gold Ingot
|A2= Gold Ingot
|B2= Apple
|C2= Gold Ingot
|A3= Gold Ingot
|B3= Gold Ingot
|C3= Gold Ingot
|Output= Golden Apple
|type= Foodstuff
}}

=== Chest loot ===
On the base of <code>ancient_city/city_center/city_center_2</code>, a single golden apple is contained in the [[chest]]. Eating it at that location unlocks the [[piston]] doors to the [[redstone]] labs beneath.
{{LootChestItem|golden-apple}}

== Usage ==
{{see also|Tutorials/Hunger management|title1=Hunger management}}

To eat a golden apple, press and hold {{control|use}} while it is selected in the hotbar. It restores {{hunger|4}} points of hunger and 9.6 hunger [[Hunger#Mechanics|saturation]].

Unlike most foods, golden apples can be eaten when the hunger bar is full.

The golden apple provides: 
*[[Absorption]] I for 2 minutes (providing {{hp|4|absorption=1}} points of absorption health)
*[[Regeneration]] II ({{hp|1}} every 25 ticks, {{hp|2|notag=1}} × 0.4 per second) for 5 seconds (long enough to heal {{hp|4}} points of damage)

=== Curing zombie villagers ===
{{main|Zombie Villager#Curing}}

A golden apple and a [[potion of weakness]] can be used to convert a [[zombie villager]] into a regular [[villager]].

=== Horses ===
Golden apples can be used for improving the chances of taming a [[horse]] by 10%, for [[breeding]] and leading horses, and for speeding up the growth of baby horses by 4 minutes.

===Piglins===
{{EntityLink|Piglin|Piglins}} are attracted to golden apples. They run toward any golden apples on the ground, and inspect it for 6 to 8 seconds before putting it in their inventory. However, piglins do not eat golden apples (or any [[food]]).

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

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Golden Apple
|spritetype=item
|nameid=golden_apple
|id=258
|form=item
|foot=1}}

== Achievements ==
{{load achievements|Zombie Doctor;Oooh, shiny!}}

== Advancements ==
{{load advancements|Zombie Doctor;Oh Shiny;A Furious Cocktail;How Did We Get Here;Husbandry;A Balanced Diet}}

== History ==
{{History|java infdev}}
{{History||February 23, 2010|link=http://www.minecraftforum.net/topic/2750582-the-secret-history-of-minecraft/|A [[player]] named JTE put a [[crafting]] recipe for golden apples as a joke at the bottom of a crafting guide she made. The recipe used [[gold ingot]]s instead of [[block of gold|gold blocks]].}}
{{History||20100227-1|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples. 
|Golden apples heal a full {{hp|20}} [[health]] points, making them the best [[food]] in the entire game. 
|Golden apples are [[crafting|crafted]] with an [[apple]] and eight [[gold block|blocks of gold]].
|However, since apples were not yet obtainable in normal gameplay, golden apples were not obtainable either.}}
{{History||20100625-2|Golden apples can now be rarely found in [[dungeon]]s, making them obtainable in normal gameplay.}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|Due to the addition of [[hunger]], golden apples have been changed so that they restore {{hunger|10}}, instead of {{hp|20}} [[health]] points, but also give [[Regeneration]] for 30 seconds.
|[[Apple]]s can now be found in [[stronghold]] storeroom [[chest]]s, making golden apples craftable in normal gameplay for the first time.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|Golden apples have been given 'glint' (animated purple glow) when viewed from the [[player]]'s [[inventory]], and its tooltip has now changed from the standard white to a magenta color.}}
{{History|||snap=Beta 1.9 Prerelease 3|Golden apples can now be found in the new [[stronghold]] altar [[chest]]s.}}
{{History||1.1|snap=11w48a|Golden apples are now easier to [[crafting|craft]]. Standard [[apple]]s now rarely [[drops|drop]] from oak [[leaves]], meaning that [[player]]s no longer need to venture into [[stronghold]]s/[[dungeon]]s to find one.
|As [[gold]] is also renewable via [[Zombified Piglin|zombie pigmen]], golden apples have become a [[renewable resource]].}}
{{History|||snap=release|Golden apples have been changed, so that they now restore {{hunger|4}} and give only 4 seconds of [[Regeneration]]. 
|The [[crafting]] recipe of golden apples has been modified, requiring 8 [[gold nugget]]s instead of 8 [[blocks of gold]] to craft. Although its natural spawn is rare, it is easier to obtain through crafting.}}
{{History||1.3.1|snap=12w21a|With the addition of [[enchanted golden apple]]s, which got a purple tooltip, the standard golden apple's tooltip changed to blue. However, the standard golden apple's effects remain unchanged.}}
{{History||1.4.2|snap=12w32a|Golden apples can now be fed to [[zombie villager]]s with the [[Weakness]] debuff causing them to revert to [[villager]]s after a delay of about 3 minutes.}}
{{History||1.6.1|snap=13w23a|Golden apples now use 8 [[gold ingot]]s instead of 8 [[gold nugget]]s.
|The [[Regeneration]] effect of golden apples has been slowed down.}}
{{History|||snap=13w23b|Golden apples now give the player [[Health Boost]] for 1:30 and [[Regeneration]] II for 0:10. This temporarily gives the [[player]] 4 extra base [[health]] points, and it heals a total of {{hp|4}} health points.}}
{{History|||snap=13w24b|The Health Boost effect has been replaced with [[Absorption]], lasting 1:30.}}
{{History|||snap=13w25a|Absorption from golden apples now lasts 2:00.}}
{{History|||snap=?|Golden apples can now be used to tame, breed and heal horses and donkeys.}}
{{History||1.9|snap=15w37a|The [[Regeneration]] effect from golden apples has been reduced to Regeneration I (from II in [[Java Edition 1.8]]).}}
{{History|||snap=15w43a|A single golden apple can now sometimes be found in [[igloo]] [[chest]]s.}}
{{History|||snap=15w43b|A single golden apple is now always found in igloo chests.}}
{{History|||snap=15w44a|The [[Regeneration]] effect from golden apples has been returned to Regeneration II, as it had been in [[Java Edition 1.8|1.8]].
|The average yield of golden apples from [[dungeon]] chests has been increased.
|Golden apples have been added to [[desert temple]] and [[mineshaft]] chests.}}
{{History||1.11|snap=16w39a|Golden apples are now found in the new [[woodland mansion]] chests.}}
{{History||1.13|snap=17w47a|The names and IDs have been split into golden apple and enchanted golden apple.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 322.}}
{{History|||snap=18w09a|Golden apples can now generate in the [[chest]]s of [[underwater ruins]].}}
{{History||1.14|snap=18w43a|[[File:Golden Apple JE2 BE2.png|32px]] The texture for golden apples has been changed.}}
{{History||1.16|snap=20w16a|Golden apples can now be found inside [[ruined portal]] chests.}}
{{History|||snap=20w18a|Golden apples are now less common in ruined portal [[chest]]s.}}
{{History||1.16.2|snap=20w30a|Golden apples are now found in [[bastion remnant]] chests.}}
{{History||1.18|snap=experimental snapshot 6|Horses, donkeys and mules now follow players holding golden apples.}}
{{History||1.19|snap=22w14a|A single golden apple may now be found in the chest at {{cd|city_center_2}} in [[Ancient City|ancient cities]].}}

{{History|pocket alpha}}
{{History||v0.12.1|snap=build 1|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.}}
{{History|||snap=build 3|A [[crafting]] recipe has been added for golden apples.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|Golden apples can now generate in the [[chest]]s of [[underwater ruins]].}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Golden Apple JE2 BE2.png|32px]] The texture for golden apples has been changed.}}
{{History||1.16.0|snap=beta 1.16.0.57|Golden apples can now be found inside [[ruined portal]] chests.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.}}
{{History||xbox=TU5|Due to the addition of [[hunger]], golden apples have been changed, so that they restore {{hunger|10}} instead of {{hp|20}} health points, but also give [[Regeneration]] for 30 seconds.}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|Golden apples now give extra "[[Absorption]]" health for a short period.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Golden Apple JE2 BE2.png|32px]] The texture for golden apples has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Golden Apple JE1 BE1.png|32px]] Added golden apples.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
Prior to [[Java Edition Beta 1.8]], the golden apple outwardly restored the player's full {{hp|20}} health points; Internally however, it is set to restore over double that, at {{hp|42}} health points. This is most likely a reference to [https://en.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy The Hitchhiker's Guide to the Galaxy], making it restore (the meaning of) life, 42 (health points). This is far before either the [[Absorption]] or [[Health Boost]] effects, causing this reference go unnoticed.

== Gallery ==
<gallery>
File:GoldenAppleComparison.png|A comparison of the two golden apple variations.
File:Golden apple in dungen 2013.png|A golden apple found in a dungeon.
File:Notch Apple In Mansion Chest.png|An extremely rare occasion where a regular golden apple and an enchanted apple being found in the same woodland mansion chest {{in|ee}}.
File:GoldenAppleDungeonChest.png|Golden apple in a [[dungeon]] chest, prior to 1.3.1. It resembles the enchanted golden apple.
File:Golden Apple Mineshaft Loot.png|A golden apple was found in a minecart chest in an abandoned mineshaft.
</gallery>

{{Items}}

[[Category:Renewable resources]]
[[Category:Food]]

[[cs:Zlaté jablko]]
[[de:Goldener Apfel]]
[[es:Manzana dorada]]
[[fr:Pomme dorée]]
[[hu:Aranyalma]]
[[it:Mela d'oro]]
[[ja:金のリンゴ]]
[[ko:황금 사과]]
[[nl:Gouden appel]]
[[pl:Złote jabłko]]
[[pt:Maçã dourada]]
[[ru:Золотое яблоко]]
[[th:แอปเปิ้ลทอง]]
[[tr:Altın Elma]]
[[uk:Золоте яблуко]]
[[zh:金苹果]]</li></ul>
Pre-Release 1The spawning of wandering traders can now be controlled using /gamerule doTraderSpawning.
Bedrock Edition
1.10.0
{{Extension DPL}}<ul><li>[[Scute|Scute]]<br/>{{about|the item used to craft turtle shell helmets|the helmet|Turtle Shell}}
{{Item
| image = Scute.png
| renewable = Yes
| stackable = Yes (64)
|title=Turtle scute}}

'''Turtle Scutes''' are [[item]]s that baby [[turtle]]s drop when they grow into adults. They can be used to craft [[turtle shell]]s which can be used to brew the [[potion of the Turtle Master]].

== Obtaining ==

=== Mob loot ===

Baby [[turtle]]s drop a single scute when they grow up into adults, which is the only way possible to obtain the [[item]].

== Usage ==

Scutes can be crafted into [[turtle shell]]s.

=== Crafting ingredient ===

{{crafting usage}}

=== Repairing ===
Scutes are the [[repair]] items for the turtle [[armor material]], and thus can be used to repair [[turtle shell]]s in an [[anvil]].

=== Trading ===
Expert-level cleric [[villager]]s have a {{frac|2|3}} chance to buy 4 scutes for an [[emerald]] as part of their [[trading|trades]].{{only|java}}

Expert-level cleric villagers have a 50% chance to buy 4 scutes for an emerald as part of their seventh trades.{{only|bedrock}}

Expert-level leatherworker villagers buy 4 scutes for an emerald as part of their trades.

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Scute
|spritetype=item
|nameid=scute
|aliasid=turtle_shell_piece
|id=572
|form=item
|translationkey=item.turtle_shell_piece.name
|foot=1}}

== History ==

{{History|java}}
{{History||1.13|snap=18w07a|[[File:Scute JE1 BE1.png|32px]] Added turtle shell pieces.}}
{{History|||snap=18w07b|"Turtle Shell Pieces" have now been renamed to "Scutes."}}
{{History||1.14|snap=19w11a|Cleric and leatherworker [[villager]]s now [[trading|buy]] scutes.}}

{{History|bedrock}}
{{History||1.5.0|snap=beta 1.5.0.4|[[File:Scute JE1 BE1.png|32px]] Added scutes.}}
{{History||1.11.0|snap=beta 1.11.0.4|Scutes can be [[trading|sold]] to cleric and leatherworker [[villager]]s.}}

{{History|console}}
{{History||xbox=TU69|ps=1.76|wiiu=Patch 38|[[File:Scute JE1 BE1.png|32px]] Added scutes.}}
{{history|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* Scutes used to be called "Turtle Shell Pieces", they were renamed after it was pointed out that "Scute" was a more technical term.<ref>https://www.reddit.com/r/minecraftsuggestions/comments/7xnp2o/rename_turtle_shell_pieces_to_scutes/</ref>

== References ==
{{reflist}}

{{Items}}

[[Category:Renewable resources]]

[[de:Hornschild]]
[[es:Escama de tortuga]]
[[fr:Écaille de tortue]]
[[ja:カメのウロコ]]
[[ko:인갑]]
[[lzh:鱗]]
[[pl:Tarczka]]
[[pt:Escama de tartaruga]]
[[ru:Щиток]]
[[th:เกล็ดเต่า]]
[[uk:Черепок]]
[[zh:鳞甲]]</li><li>[[Torchflower Seeds|Torchflower Seeds]]<br/>{{wip}}
{{Block
| image = <gallery>
Torchflower Age 0.png| Age 0
Torchflower Age 1.png| Age 1
Torchflower Age 2.png| Age 2
</gallery>
| image2 = Torchflower Seeds JE1.png
| transparent = Yes
| light = No
| tool = N/A
| renewable = Yes
| stackable = Yes (64)
| rarity = Common
|flammable=No
|lavasusceptible=No
}}

'''Torchflower seeds''' are seeds that have a chance to be dropped by [[Sniffer|sniffers]] when they finish digging.

== Obtaining ==
[[Sniffer]]s will occasionally bury their nose in the ground and start digging. Once the sniffer has finished digging, one torchflower seed will have a chance to be dropped on the floor as an item.

Sniffers can only dig for torchflower seeds in the following blocks:
*{{BlockLink|Dirt}}
*{{BlockLink|Grass Block}}
*{{BlockLink|Podzol}}
*{{BlockLink|Coarse Dirt}}
*{{BlockLink|Rooted Dirt}}
*{{BlockLink|Moss Block}}
*{{BlockLink|Mud}}
*{{BlockLink|Muddy Mangrove Roots}}
They cannot dig for torchflower seeds on [[mycelium]], which is intended.<ref>{{bug|MC-260259||Sniffers cannot dig nor find seeds on mycelium|WAI}}</ref>

== Usage ==
=== Crop ===
{{main|Tutorials/Crop farming|title1=Crop farming}}

Torchflower seeds can be {{control|placed}} on [[farmland]], where they grow through three stages. Breaking the torchflower crop before it matures drops the seed, while breaking the final stage produces one [[torchflower]] and does not yield the seed.

Crops break if pushed by a [[piston]] or if their supporting farmland breaks or turns to dirt (i.e. by being trampled), dropping their usual drops.

Farmer [[villager]]s can plant torchflower seeds, but cannot harvest them after they have fully grown.<ref>{{bug|MC-263382|||WAI}}</ref>

=== Feeding ===
Torchflower seeds can be used to breed [[sniffer]]s and [[chicken]]s and reduce the remaining growth duration of snifflets and chicks by 10%. Also, if some torchflower seeds were fed to an injured sniffer, it will heal it by {{hp|2}} health points.

=== Taming ===
Torchflower seeds can be used to tame [[parrot]]s.

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

== Sounds ==
{{Sound table/Block/Crop}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Torchflower Crop
|spritetype=block
|nameid=torchflower_crop
|form=block
|blocktags=bee_growables, crops}}
{{ID table
|displayname=Torchflower Seeds
|spritetype=item
|nameid=torchflower_seeds
|form=item
|itemtags=villager_plantable_seeds
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Torchflower Crop
|spritetype=block
|nameid=torchflower_crop
|id=-567
|form=block
|translationkey=-}}
{{ID table
|displayname=Torchflower Seeds
|spritetype=item
|nameid=torchflower_seeds
|id=296
|form=item
|foot=1}}

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

{{/BS}}

== Achievements ==
{{Load achievements|Planting The Past}}

== Advancements ==
{{load advancements|A Seedy Place;Planting The Past;Little Sniffs}}

== History ==
{{History|java}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|[[File:Torchflower Seeds JE1.png|32px]] Added torchflower seeds behind the [[Java Edition 1.20|Update 1.20 experimental datapack]].}}
{{History|||snap=1.19.4 Pre-release 1|Torchflower seeds can now be used to breed [[chicken]]s and tame [[parrot]]s.<ref>{{bug|MC-260035|||Fixed}}</ref>|Torchflower seeds are now next to other seeds in the [[Creative inventory]].|Placing torchflower seeds in farmland now gives the player the "A Seedy Place" [[advancement]].}}
{{History||1.20|snap=23w12a|[[Sniffer]]s can now be obtained in Survival, making torchflower seeds [[renewable]].|Torchflower seeds are now available without using the "Update 1.20" experimental datapack.}}
{{History|||snap=23w14a|Torchflower seeds can now be picked up by farmer [[villager]]s.|[[Sniffer]]s can now be tempted with torchflower seeds.}}
{{History|||snap=23w16a|[[Villager]]s can now plant torchflower seeds.}}
{{History|||snap=23w17a|The player now get the [[advancement]] "Little sniffs" when they feed a [[snifflet]] using torchflower seeds, "Planting the past" when they plant torchflower seeds on [[farmland]].}}

{{History|bedrock}}
{{History||Sniffer<br>(Experimental)|link=Bedrock Edition 1.19.70|snap=beta 1.19.70.23|[[File:Torchflower Seeds JE1.png|32px]] Added torchflower seeds behind the "[[Bedrock Edition 1.20.0|Sniffer]]" [[experimental]] toggle.}}
{{History||1.20.0|snap=beta 1.20.0.20|Torchflower seeds are now available without using the "Sniffer" experimental toggle.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* The final growth stage of the torchflower crop uses the same ID as the actual torchflower. This causes some side effects, such as the plant becoming offset and randomly jumping to the side.<ref>{{bug|MC-260472|resolution=wai}}</ref>
 
== Gallery ==
<gallery>
Torchflower Seeds stages.png|All the growth stages of torchflower seeds.
</gallery>

== Notes ==
{{notelist}}

== References ==
{{reflist}}

{{Blocks|upcoming}}
{{Items}}
[[Category:Plants]]
[[Category:Non-solid blocks]]

[[de:Fackelliliensamen]]
[[es:Semillas de plantorcha]]
[[ja:トーチフラワーの種]]
[[pt:Sementes de plantocha]]
[[zh:火把莲种子]]</li></ul>
beta 1.10.0.3Wandering Trader Added the wandering trader, available only through Experimental Gameplay.
1.11.0
{{Extension DPL}}<ul><li>[[Netherite Scrap|Netherite Scrap]]<br/>{{About|the unrefined material|the refined item|Netherite Ingot|other uses|Netherite}}
{{Item
| title = Netherite Scrap
| image = Netherite Scrap.png
| rarity = Common
| renewable = No
| stackable = Yes (64)
}}

'''Netherite scrap''' is a material [[smelt]]ed from [[ancient debris]], which is found in [[the Nether]]. It is used solely for crafting [[Netherite Ingot|netherite ingots]]. Like all netherite-related items, it is not flammable.

== Obtaining ==

=== Smelting ===
{{Smelting
|Ancient Debris
|Netherite Scrap
|2
}}

=== Chest loot ===
{{LootChestItem|netherite-scrap}}

== Usage ==
=== Crafting ingredient ===
{{Crafting usage}}

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Netherite Scrap
|spritetype=item
|nameid=netherite_scrap
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Netherite Scrap
|spritetype=item
|nameid=netherite_scrap
|id=613
|form=item
|foot=1}}

== History ==
{{History|java}}
{{History||1.16|snap=20w06a|[[File:Netherite Scrap JE1.png|32px]] Added netherite scrap.}}
{{History|||snap=20w10a|[[File:Netherite Scrap JE2 BE1.png|32px]] The texture of netherite scrap has been changed.}}
{{History|||snap=20w16a|Netherite scraps now generate in [[bastion remnant]] chests.}}
{{History||1.16.2|snap=20w30a|The chance of finding netherite scraps in bastion remnant chests has been increased.}}

{{History|bedrock}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Netherite Scrap JE2 BE1.png|32px]] Added netherite scrap.}}
{{History|||snap=beta 1.16.0.57|Netherite scraps now generate in [[bastion remnants]] chests.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--netherite-scrap Taking Inventory: Netherite Scrap] – Minecraft.net on March 25, 2021

{{Items}}

[[Category:Non-renewable resources]]

[[de:Netheritplatten]]
[[fr:Fragments de Netherite]]
[[it:Frammento di netherite]]
[[ja:ネザライトの欠片]]
[[ko:네더라이트 파편]]
[[pl:Odłamek netherytu]]
[[pt:Fragmentos de netherita]]
[[ru:Незеритовый скрап]]
[[th:เศษเนเธอไรต์]]
[[uk:Незеритовий уламок]]
[[zh:下界合金碎片]]</li><li>[[Firework Rocket|Firework Rocket]]<br/>{{redirect|Firework}}
{{ItemEntity
|image=Firework Rocket.png
|renewable='''Trail Effect''':No<br>'''All Others''':Yes
|stackable=Yes (64)‎
|size=Height: 0.25 Blocks<br>Width: 0.25 Blocks
|networkid=76
}}
A '''firework rocket''' is an [[item]] (and [[entity]]) used for creating decorative explosions, boosting when flying with [[elytra]], and loading into a [[crossbow]] as ammunition.

== Obtaining  ==

Fireworks can be obtained by crafting. {{IN|java}}, a firework with no explosion effect is available on the [[Creative]] inventory and can be crafted as shown below. {{IN|bedrock}}, fireworks with the different base colors or no explosion are available in the Creative inventory.

=== Crafting ===

{{Crafting
|head=1
|showname=0
|showdescription=1
|Paper
|; ; Gunpowder
|; Gunpowder; Gunpowder
|Gunpowder
|Output=Firework Rocket,3
|description=When crafted this way (without a firework star), the rocket does not have explosion effects. The value of gunpowder affects the [[Firework Rocket#Duration and direction|flight duration]].
|type=Miscellaneous
}}
{{Crafting
|Any Firework Star
|Paper
|; ; Gunpowder
|; Gunpowder; Gunpowder
|Gunpowder
|Output= Firework Rocket,3
|description=Adding more gunpowder increases the duration of the rocket. Up to three gunpowder can be used. Up to five firework stars can also be used with three gunpowder. Up to seven firework stars can be used by using firework stars instead of additional gunpowder. All firework stars explode almost simultaneously when the rocket detonates.
|type=Miscellaneous
|foot=1
}}

== Usage ==

=== Launching fireworks ===
To launch a firework rocket, {{control|use}} its item on a block. They can also be launched from [[dispenser]]s and [[crossbow]]s. If shot from a [[Multishot]] [[crossbow]], then 3 rockets fire with the same effects.

=== Elytra ===
{{control|Using}} a firework rocket while flying with [[elytra]] propels the player in the direction they are facing. The duration of the speed boost depends on the flight duration of the rocket. If the rocket is equipped with a firework star of any kind, the player takes damage when it explodes.

=== Crossbow ===
A firework rocket can be used as ammunition for [[crossbow]]s, although it deals [[damage]] only if it has an [[explosion]] effect. A higher flight duration gives the firework rocket a longer range, and more damage is added per firework star. The [[Piercing]] enchantment has no effect on firework rockets shot from a crossbow.

{{IN|java}}, if a firework rocket shot from a [[crossbow]] hits an [[entity]], the rocket instantly [[explosion|explodes]], no matter the flight duration. Attempting to do this {{in|bedrock}}, however, results in the firework passing through the entity,<ref>[[bugtracker:MCPE-52675|MCPE-52675]]</ref> so the [[player]] must plan where to aim.

== Behavior ==
{{see also|Firework Star#Effects}}

Once launched, fireworks fly out vertically, with random horizontal offset up to 5 blocks. {{IN|bedrock|java}}, fireworks can fly in any of the 6 directions a dispenser can point. After [[#Duration and direction|some time]], the firework explodes into a colorful explosion based on the effects of the [[firework star]]s added upon crafting, or no explosion if no firework star was used. If multiple firework stars were added to the rocket upon crafting, they all explode simultaneously.

The explosion of a firework rocket deals damage to mobs and players that are within 5 blocks and not obstructed by [[solid block]]s. The maximum damage of a rocket with one firework star is {{hp|7}}, with the damage decreasing with distance. Each additional firework star on the rocket adds {{hp|2}} points of damage, for a maximum damage of {{hp|19}} with 7 stars. Using commands to add additional firework stars results in more damage. The damage dealt is unaffected by any other ingredients used. The explosion does not destroy end crystals nor damage the Ender dragon, but does destroy armor stands.

There is a delay between the detonation and the player hearing the sound, emulating real fireworks, but this sound travels much more slowly than in the real world.<ref>{{Tweet|jeb|277075644804907009|However, no sound effects for fireworks yet... but everything's implemented, so they can be added without doing a new snapshot|December 7, 2012}}</ref><ref>{{Tweet|jeb|277075517226762242|Haha, @igblan , the speed of sound is 40 m/s, because the realistic speed of ~340 m/s didn't work well in Minecraft scale|December 7, 2012}}</ref> {{IN|java}}, the explosion of a firework can be seen 64 blocks away, regardless of its height. {{IN|bedrock}}, the explosion can be seen from your render distance.

If the explosion exceeds the (unmodded) [[particle]] limit of 16,384, the oldest particles are removed before displaying new ones, resulting in severely diminished firework quality / duration. At most a firework should have 3 trail stars, more than that could waste diamonds, firework stars, and other fireworks. Particle counts per star are:

{| class="wikitable" data-description="Particle counts per firework star"
|-
! Ball Type !! Plain !! Trail
|-
| Small || 98 || ~1300
|-
| Large || 387 || 4000+
|-
| Star || 122 || ~1600
|-
| Creeper || 266 || ~3500
|-
| Burst || 72 || ~930
|}

Twinkle effect adds 2 particles to the count.

Like most other entities, they can be moved by [[water]] and [[explosion]]s, and teleported via [[portal]]s. They also cannot move through solid surfaced blocks, upon hitting one, they either move to a side or explode based on the duration. If a firework explodes under a block, its explosion is flattened.

=== Duration and direction ===

Fireworks travel different heights based on the amount of gunpowder added. The number is displayed as a tag on the item's tooltip with the description of "Flight Duration".

The height it rises is between 8 and 20 blocks with 1 gunpowder, 18 to 34 blocks with 2 gunpowder, and 32 to 52 blocks with 3 gunpowder. 
(Note: Using command blocks, firework rockets with higher durations go higher and keep accelerating with virtually no terminal velocity. If the duration is long enough, the firework rocket could reach heights of over 1,000,000 blocks and speeds of over 10,000 m/s in a matter of minutes. Such fireworks with significant X and Z motions speed up sideways exponentially and reach outside the world boundary in a matter of seconds.{{only|java}})

When spawned, <!-- server-side --> fireworks have a vertical speed of .05 and a random small X and Z speed (random value near zero with a standard deviation of .001).  Each firework also determines its lifetime in ticks by 10 × (number of gunpowder + 1) + random value from 0 to 5 + random value from 0 to 6, after which it explodes.  Each tick, the firework accelerates horizontally by multiplying its X and Z velocities by 1.15, and vertically by adding a constant factor of .04.

Fireworks can be made to travel different directions by being dispensed or launched under flowing water. The firework's direction combines with the flow of the water to go diagonally.

Firework rockets without firework stars shot from a crossbow upon hitting terrain elements will traverse along until stopped by a ledge or into unobstructed terrains again continuing its original flight path. Ledges as tall as one pixel high (e.g. from [[Dirt Path|Dirt Paths]] to [[Grass Block|Grass Blocks]]) will also block the firework. They will still vanish if they hit entities early amidst their flight.

==Village Raids==
After successfully defending a village from a [[Raid]] the villagers may celebrate by setting off firework rockets.

==Boosting elytra==
Fireworks can be used to boost [[elytra]] when in flight. Normally, elytra can glide for a short distance, but with the use of fireworks, the player can fly a long distance, gain speed, and take off from the ground. 

Simply using the firework rocket with elytra spread boosts the player in the direction the player faces. It can leave behind a trail sometimes.

Although fireworks with firework stars can be used, the player takes blast damage if they use it in flight. 

There are four types of rockets, with three types of flight duration. Higher flight durations mean longer boosts. {{IN|bedrock}}, the fireworks obtained from the Creative menu have a flight duration of 1, while {{in|java}}, the fireworks obtained in the Creative menu have a flight duration of 1, 2, or 3.

==Sounds ==
{{Edition|Java}}:<br>
Firework rockets use the Friendly Creatures sound category for entity-dependent sound events.
{{Sound table
|sound=Firework blast.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a non-large firework rocket explodes within a 16-block radius of the player
|id=entity.firework_rocket.blast
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
{{Sound table
|sound=Firework blast far.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a non-large firework rocket explodes greater than 16 blocks away from the player
|id=entity.firework_rocket.blast_far
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
{{Sound table
|sound=Firework large blast.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a large firework rocket explodes within a 16-block radius of the player
|id=entity.firework_rocket.large_blast
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
{{Sound table
|sound=Firework large blast far.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a large firework rocket explodes greater than 16 blocks away from the player
|id=entity.firework_rocket.large_blast_far
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
{{Sound table
|sound=Firework twinkle.ogg
|subtitle=Firework twinkles
|source=ambient
|description=When a twinkle firework rocket explodes within a 16-block radius of the player
|id=entity.firework_rocket.twinkle
|translationkey=subtitles.entity.firework_rocket.twinkle
|volume=20.0
|pitch=0.9-1.05
|distance=16}}
{{Sound table
|sound=Firework twinkle far.ogg
|subtitle=Firework twinkles
|source=ambient
|description=When a twinkle firework rocket explodes greater than 16 blocks away from the player
|id=entity.firework_rocket.twinkle_far
|translationkey=subtitles.entity.firework_rocket.twinkle
|volume=20.0
|pitch=0.9-1.05
|distance=16}}
{{Sound table
|sound=Firework launch.ogg
|subtitle=Firework launches
|source=ambient
|description=When a dispenser shoots, a player uses, or 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=Bow shoot.ogg
|subtitle=Firework launches
|source=neutral
|description=When a dispenser fires a firework rocket
|id=entity.firework_rocket.shoot
|translationkey=subtitles.entity.firework_rocket.launch
|volume=1.0
|pitch=1.2
|distance=16
|foot=1}}

{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Firework blast.ogg
|source=ambient
|description=When a non-large firework rocket explodes
|id=firework.blast
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Firework large blast.ogg
|source=ambient
|description=When a large firework rocket explodes
|id=firework.large_blast
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Firework twinkle.ogg
|source=ambient
|description=When a twinkle firework rocket explodes
|id=firework.twinkle
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Firework launch.ogg
|source=ambient
|description=When a dispenser shoots, a player uses, or a crossbow fires a firework rocket
|id=firework.launch
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Bow shoot.ogg
|source=ambient
|description=''Unused sound event''
|id=firework.shoot
|volume=1.0
|pitch=1.0
|foot=1}}

==Data values==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|firstcolumnname=Item
|showforms=y
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=item
|nameid=firework_rocket
|form=item
|foot=1}}
{{ID table
|edition=java
|firstcolumnname=Entity
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=entity
|nameid=firework_rocket
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Item
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=item
|nameid=firework_rocket
|aliasid=fireworks
|id=519
|form=item
|translationkey=item.fireworks.name
|foot=1}} 
{{ID table
|edition=bedrock
|firstcolumnname=Entity
|shownumericids=y
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=entity
|nameid=fireworks_rocket
|id=72
|foot=1}}

===Item data===

{{el|java}}:
{{main|Player.dat format}}
<div class="treeview">
* {{nbt|compound|tag}}: The item's '''tag''' tag.
{{:Player.dat_format/Firework Rockets}}
</div>

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

===Entity data===

{{el|java}}:
{{main|Entity format}}
{{/ED}}

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

==Advancements ==
{{load advancements|Bullseye;Ol' Betsy}}

==History==

{{History|java}}
{{History||November 24, 2012|link=none|[[Jeb]] stated that there may be fireworks in ''Minecraft'' at the ''Future Updates with the Minecraft PC Team'' panel at [[MINECON 2012]].}}
{{History||December 5, 2012|link={{tweet|jeb|276367442362630144}}|Jeb released the first image of fireworks, along with the information that colors, fade, height, effects and shapes are [[crafting|craftable]].}}
{{History||December 7, 2012|link=https://twitter.com/jeb_/status/277075087503536128|Jeb mentions that fireworks should probably scare [[wolves]] and potentially have other effects on mobs.}}
{{History||1.4.6|snap=12w49a|[[File:Firework Rocket JE1 BE1.png|32px]] Added firework rockets.
|Firework rockets cannot be obtained within the [[Creative inventory]].}}
{{History|||snap=12w50a|Added [[sound]] and more effects to firework rockets.}}
{{History||1.10|snap=16w20a|The firework rocket [[crafting]] recipe now produces 3 rockets, rather than 1.}}
{{History||1.11|snap=16w32a|The entity ID has been changed from <code>FireworksRocketEntity</code> to <code>fireworks_rocket</code>.}}
{{History||1.11.1|snap=16w50a|Firework rockets can now cause [[damage]] to [[entity|entities]] that are within their [[explosion]] radius.
|Firework rockets can now boost [[player]]s while flying with [[elytra]].}}
{{History||1.13|snap=17w47a|The ID has been changed from <code>fireworks</code> to <code>firework_rocket</code>.
|The fade effects on fireworks can now be added by combining the firework star with [[dye]]s.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 401.}}
{{History||1.13|snap=?|Firework rockets are now available in the [[Creative]] [[Inventory]]. However, it does not show a flight duration}}
{{History|||snap=pre5|The [[entity]] ID of firework rockets has been changed to <code>firework_rocket</code>.}}
{{History||1.14|snap=18w43a|Fireworks can now be shot from [[crossbow]]s.
|[[File:Firework Rocket JE2 BE2.png|32px]] The texture of firework rockets has been changed.}}
{{History||1.15|snap=19w36a|Firework rockets dispensed from a [[dispenser]] now travel in the direction they were fired.}}
{{History||1.17|snap=20w45a|Simple firework rockets with one gunpowder can now be crafted using the [[recipe book]].}}
{{History||1.19.3|snap=22w45a|All three flight durations of firework rockets are now available in the Creative inventory.<ref>{{bug
|MC-194390||A firework rocket from the creative inventory doesn't show a flight duration|Fixed}}</ref>}}


{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|[[File:Firework Rocket JE1 BE1.png|32px]] Added firework rockets. 
|Firework rockets are available in the Creative inventory in 17 variants, sixteen colors in small ball duration 1, plus one additional preset with only duration 1.{{verify|type=update|Is this the right snapshot?}}{{info needed}}}}
{{History||1.8.0|snap=beta 1.8.0.10|Firework rockets can now be held in the off-hand and be shot from [[crossbow]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Firework Rocket JE2 BE2.png|32px]] The texture of firework rockets has been changed.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of firework rockets has been changed from <code>fireworks</code> to <code>firework_rocket</code>.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Firework Rocket JE1 BE1.png|32px]] Added firework rockets.
|Firework rockets are available in five types in the Creative inventory. The presets are as follows:
* Duration 1, small ball, light blue, twinkle
* Duration 2, creeper shaped, green
* Duration 2, burst, red, fade to orange
* Duration 3, burst, magenta, fade to blue, twinkle
* Duration 2, star shaped, yellow, fade to orange, trail}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|The crafting interface has been updated to allow crafting [[firework star]]s and fireworks.}}
{{History||xbox=TU53|xbone=CU43|ps=1.49|wiiu=Patch 23|switch=1.0.3|Firework rockets can now boost [[player]]s while flying with [[elytra]].}}
{{History||xbox=TU53|xbone=CU43|ps=1.49|wiiu=Patch 23|switch=1.0.3|Firework rockets now [[damage]] players if there is a [[firework star]] applicated to the firework rocket.}}
{{History||xbox=TU56|xbone=CU47|ps=1.55|wiiu=Patch 26|switch=1.0.6|Firework rockets now produce 3 rockets upon [[crafting]] them instead of 1.}}
{{History||xbox=TU60|xbone=CU51|ps=1.64|wiiu=Patch 30|switch=1.0.11|Added new firework rocket models.}}
{{History|PS4}}
{{History||1.90|[[File:Firework Rocket JE2 BE2.png|32px]] The texture of firework rockets has been changed.}}
{{History|foot}}

==Issues==

{{issue list}}

== Trivia==
* Launching a rocket by hand on a wooden [[pressure plate]] activates it. The same doesn't hold for stone pressure plates, or for a [[dispenser]] placing a rocket onto a wooden pressure plate.
* New Year's Eve is what inspired [[Jeb]] to add fireworks.<ref>{{tweet|jeb|277080498814189568|@SPvs_TheWorld New Year's Eve|December 7, 2012}}</ref>
*If the player shoots a firework into a [[Nether portal]], it explodes in [[the Nether]].
*There are around 2×10{{^|136}} distinct fireworks.

==Gallery==

<gallery>
File:Firework jeb twitter.jpg|[[Jeb]]'s first image of Fireworks, also showing that they can be shot from dispensers.
File:1.4.6 release image.png|1.4.6 Release image.
File:Flatexplosion.png|An example of a flattened firework explosion.
File:Creeper firework.png|Creeper face shaped firework.
</gallery>

==References==

{{Reflist}}

{{Items}}
{{Entities}}

[[cs:Rachejtle]]
[[de:Feuerwerksrakete]]
[[es:Cohete de fuegos artificiales]]
[[fr:Feu d'artifice]]
[[hu:Tűzijáték rakéta]]
[[ja:ロケット花火]]
[[ko:폭죽 로켓]]
[[nl:Vuurpijl]]
[[pl:Fajerwerk]]
[[pt:Fogo de artifício]]
[[ru:Пиротехническая ракета]]
[[th:ดอกไม้ไฟ]]
[[zh:烟花火箭]]
[[Category:Renewable resources]]</li></ul>
beta 1.11.0.3Wandering traders now drink a potion of invisibility during dusk, when hurt by projectiles or magic attacks, and when avoiding illagers and zombies.
If a player is holding an emerald, wandering traders now hold items they want to trade.
The spawning of wandering traders can now be enabled or disabled using the /mobevent command.
beta 1.11.0.4Wandering traders have been fully implemented and are now separate from Experimental Gameplay.
Wandering traders now disappear faster after all trades are disabled.
Wandering traders now have 6 random trades, instead of 4.
1.12.0
{{Extension DPL}}<ul><li>[[:Category:Joke items|Category:Joke items]]<br/>[[Category:Joke features|Items]]
[[Category:Items]]</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>
beta 1.12.0.2Wandering traders now have sounds.
PlayStation 4 Edition
1.91
{{Extension DPL}}<ul><li>[[:Category:Education Edition items|Category:Education Edition items]]<br/>[[Category:Education Edition]]
[[Category:Items]]</li><li>[[Suspicious Stew|Suspicious Stew]]<br/>{{For|the block|Suspicious Sand}}
{{Item
| title = Suspicious Stew
| heals = {{hunger|6}}
| renewable = Yes 
| stackable = No
|effects=See {{slink||Food}}
}}
'''Suspicious stew''' is a [[food]] item that can give the [[player]] a [[effect|status effect]] that depends on the [[flower]] used to craft it.

== Obtaining ==
{{IN|Bedrock}}, suspicious stew is the only food item in the game that can be obtained from the [[Creative]] inventory only by searching. However, it can be crafted and can also be found in [[shipwreck]] chests. Suspicious stew can be given with [[commands]] like {{cmd|give}}, but {{in|java}}, unless NBT data like that listed in the data values section is included, consuming it has no effect and still restores the same hunger points as a normal suspicious stew. In [[Bedrock Edition]], giving the player a suspicious stew through commands causes the stew to choose an allowable status effect at random.

=== Harvesting ===
Suspicious stew can be obtained by "milking" a brown [[mooshroom]] with a [[bowl]] after using a small flower on it. When a small flower is used on a brown mooshroom, the brown mooshrom produces a suspicious stew related to that small flower the next time it is milked with a bowl. Red mooshrooms do not produce suspicious stew. The brown mooshroom returns to producing [[mushroom stew]] until fed another small flower.

=== Crafting ===
{{Crafting
|Red Mushroom
|Brown Mushroom
|Bowl
|Any Flower
|Output=Suspicious Stew
|shapeless=true
|type=Foodstuff
}}
Suspicious stew is not listed in the recipe book. However, it can be quickly assembled by clicking the [[Mushroom Stew|mushroom stew]] recipe and adding one small flower to it.

=== Chest loot ===
{{LootChestItem|suspicious-stew}}

=== Mob loot ===
After being given a flower, a brown [[mooshroom]] can be "milked" for suspicious stew by {{control|using}} a [[bowl]] on it. The flower type determines the stew's effect using the same rule as a crafted stew. Milking a red mooshroom after feeding it a flower does not yield a suspicious stew specific to that flower.

=== Trading ===
{{IN|java}}, expert-level farmer [[villager]]s can offer either 1 or 2 suspicious stew trades, each stew for one [[emerald]].

{{IN|bedrock}}, expert-level farmer villager offers to sell suspicious stew for one emerald as well.

The [[trading]] interface does not indicate the type of suspicious stew being sold, but each trade entry consistently yields the same type of stew, so the player can remember or make a note of the types offered by a given villager, such as "this villager's first stew gives [[blindness]], and their second entry gives saturation".

== Usage ==
=== Food ===
{{see also|Tutorials/Hunger management}}
To eat suspicious stew, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|6}} hunger and 7.2 hunger [[Hunger#Mechanics|saturation]] and gives a few seconds of a [[effect|status effect]] that varies depending on which flower was used to craft it. The effect is not displayed in the tooltip, texture, etc., meaning that the player cannot know in advance what the effect is without knowing which flower was used.

{{/Effects}}
The [[bowl]] is emptied and returned to the player after the suspicious stew has been eaten, and can be re-used to craft more stews. Unlike most foods, suspicious stew can be eaten even if the player's hunger bar is full.

The Saturation effect effectively makes those two stews a superfood: In those 6 or 7 ticks it can restore up to 6(7) hunger and 12(14) saturation points ''on top of'' their food value, for a total of at least {{hunger|12}} hunger, and effectively maximizing saturation. This is the largest amount of hunger and saturation the player can get from a single food item. Regeneration can restore up to {{Health|3}} health, and Poison or Wither can inflict up to {{Health|4}} damage.

Consuming suspicious stew is the only way to obtain the Saturation and Blindness effects in vanilla ''Minecraft'' without the use of commands.

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

=== Unique ===
{{edition|java}}:
{{Sound table
|sound=Mooshroom eat1.ogg
|sound2=Mooshroom eat2.ogg
|sound3=Mooshroom eat3.ogg
|sound4=Mooshroom eat4.ogg
|subtitle=Mooshroom eats 
|source=neutral
|description=Plays when a brown mooshroom is fed a flower.
|id=entity.mooshroom.eat
|translationkey=subtitles.entity.mooshroom.eat
|volume=2.0
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.95, or 1.05 for each sound</ref>
|distance=16}}
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|subtitle=Mooshroom gets milked suspiciously
|source=neutral
|description=Plays when a brown mooshroom is milked with a bowl after being fed a flower.
|id=entity.mooshroom.suspicious_milk
|translationkey=subtitles.entity.mooshroom.suspicious_milk
|volume=1.0
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.9, or 1.1 for each sound</ref>
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Mooshroom eat1.ogg
|sound2=Mooshroom eat2.ogg
|sound3=Mooshroom eat3.ogg
|sound4=Mooshroom eat4.ogg
|subtitle=Mooshroom eats 
|source=Friendly Creatures
|description=When a brown mooshroom is fed a flower
|id=mob.mooshroom.eat
|volume=1.0/0.95/1.05
|pitch=0.8-1.2}}
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|subtitle=Mooshroom gets milked 
|source=Friendly Creatures
|description=When a mooshroom is milked with a bowl
|id=mob.mooshroom.suspicious_milk
|volume=1.0/0.9/1.1
|pitch=1.0
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Suspicious Stew
|spritetype=item
|nameid=suspicious_stew
|id=590
|form=item
|foot=1}}

=== Item data ===

{{IN|je}}, suspicious stew uses the following NBT data:
<div class="treeview">
* {{nbt|compound|tag}}: The item's '''tag''' tag.
{{:Player.dat format/Suspicious Stew}}
</div>

=== Metadata ===
{{IN|be}}, suspicious stew uses the following data values:
{{dvt|spritetype=item|sprite=suspicious-stew|{{EffectLink|Night Vision}} from {{BlockLink|Poppy}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Jump Boost}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Weakness}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Blindness}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Poison}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Saturation}} from {{BlockLink|Dandelion}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Saturation}} from {{BlockLink|Blue Orchid}}}}
{{dvt|spritetype=item|sprite=suspicious-stew|{{EffectLink|Fire Resistance}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Regeneration}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Wither}}}}
{{dvt|sprite=suspicious-stew|{{EffectLink|Night Vision}} from {{BlockLink|Torchflower}}|foot=1}}

== Achievements ==
{{load achievements|Time for Stew}}

== Advancements ==
{{load advancements|A Furious Cocktail;How Did We Get Here;Husbandry;A Balanced Diet}}

== History ==
{{History|java}}
{{History||1.14|snap=18w43a|[[File:Suspicious Stew JE1 BE1.png|32px]] Added suspicious stew.
|Suspicious stew is not obtainable in the [[Creative inventory]].}}
{{History|||snap=19w08a|Suspicious stew can be obtained by milking brown [[mooshroom]]s.}}
{{History|||snap=19w11a|[[Trading]] has been changed, expert-level farmer villagers now sell suspicious stew for an [[emerald]].}}
{{History||1.14.4|snap=Pre-Release 1|Suspicious stew made from [[poppies]] now gives [[Night Vision]] to the [[player]] instead of [[Speed]].}}
{{History||1.16|snap=Pre-release 1|Mooshrooms can now be milked for suspicious stew in Creative mode.<ref>{{bug|MC-90969}}</ref>}}
{{History||1.17|snap=21w13a|Suspicious stew can now be eaten even if the player is at full [[hunger]].}}
{{History||1.19|snap=22w13a|Suspicious stew may now be found in [[ancient city]] [[chest]]s.}}
{{History||1.19.3|snap=22w45a|Suspicious stew is now available in the [[Creative]] [[inventory]].}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|Suspicious stew now drops when brushing [[suspicious sand]] in [[desert well]]s.}}
{{History|||snap=1.19.4-pre1|[[Torchflower]]s can now be used to make suspicious stew.}}
{{History||1.20|snap=23w12a|The probability for the suspicious stew to generate in the [[suspicious sand]] in [[desert well]] has been changed from 1/7 to 1/8.}}

{{History|bedrock}}
{{History||1.13.0|snap=beta 1.13.0.9|[[File:Suspicious Stew JE1 BE1.png|32px]] Added suspicious stew.
|Suspicious stew is not obtainable in the Creative inventory.}}
{{History|||snap=beta 1.13.0.15|Master-level farmer [[villager]]s can now [[trading|sell]] suspicious stew.}}
{{History||1.16.0|snap=beta 1.16.0.57|[[Trading]] has been changed, expert-level farmer villagers now sell suspicious stew for an [[emerald]].}}
{{History||1.20.0<br>(Experimental)|link=Bedrock Edition 1.19.70|snap=beta 1.19.70.23|Suspicious stew now drops when brushing [[suspicious sand]] in [[desert well]]s.}}
{{History||1.20.10|Added one type of suspicious stew to the Items tab in the Creative inventory.}}
{{History||1.20.30|snap=beta 1.20.20.20|Suspicious stew can no longer be found in the Creative inventory.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== Trivia ==
* Suspicious stew was introduced because developers wanted a way of communicating that [[wikipedia:Lily_of_the_valley|lilies of the valley]] are poisonous.<ref>{{ytl|YUM7XiEX1DI|Items: Ten Things You Probably Didn't Know About Minecraft @ 3:32|Minecraft|November 29, 2019|t=212s}}</ref>

== References ==
{{Reflist}}
<references group="loot"/>

{{Items}}

[[Category:Food]]

[[de:Seltsame Suppe]]
[[es:Estofado sospechoso]]
[[fr:Soupe suspecte]]
[[ja:怪しげなシチュー]]
[[ko:수상한 스튜]]
[[nl:Geheimzinnige stoofpot]]
[[pl:Podejrzana potrawka]]
[[pt:Ensopado suspeito]]
[[ru:Подозрительный суп]]
[[th:สตูว์พิศวง]]
[[zh:迷之炖菜]]
[[Category:Renewable resources]]</li></ul>
Wandering Trader Added the wandering trader.

Issues

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

Gallery

Notes

  1. If a world is upgraded to Java Edition 1.14 (starting from 19w05a) from a previous version, the timer starts at the time the world was saved. So if the world was last saved at noon in 1.13 and then upgraded to 1.14, the algorithm tries to spawn a wandering trader every day at noon.

References

Advertisement