<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Redstone_Comparator</id>
	<title>Redstone Comparator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Redstone_Comparator"/>
	<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Redstone_Comparator&amp;action=history"/>
	<updated>2026-05-31T00:09:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Redstone_Comparator&amp;diff=814&amp;oldid=prev</id>
		<title>BoxWiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Redstone_Comparator&amp;diff=814&amp;oldid=prev"/>
		<updated>2021-05-13T19:58:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:58, 13 May 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BoxWiki</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Redstone_Comparator&amp;diff=813&amp;oldid=prev</id>
		<title>redstone&gt;MikhailMCraft: /* Breaking */ grammatical change</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Redstone_Comparator&amp;diff=813&amp;oldid=prev"/>
		<updated>2021-04-19T14:00:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Breaking: &lt;/span&gt; grammatical change&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Block&lt;br /&gt;
|image=Redstone Comparator.png;Subtracting Redstone Comparator.png;Powered Redstone Comparator.png;Powered Subtracting Redstone Comparator.png&lt;br /&gt;
|image2=Redstone Comparator BE.png;Subtracting Redstone Comparator BE.png;Powered Redstone Comparator BE.png;Powered Subtracting Redstone Comparator BE.png&lt;br /&gt;
|transparent=Yes&lt;br /&gt;
|light=No&lt;br /&gt;
|tool=any&lt;br /&gt;
|renewable=Yes&lt;br /&gt;
|stackable=Yes (64)&lt;br /&gt;
|flammable=No&lt;br /&gt;
|lavasusceptible=No&lt;br /&gt;
}}&lt;br /&gt;
A '''redstone comparator''' is a [[block]] used in [[redstone circuit]]s to maintain, compare, or subtract signal strength, or to measure certain block states (primarily the fullness of containers).&lt;br /&gt;
&lt;br /&gt;
== Obtaining ==&lt;br /&gt;
&lt;br /&gt;
=== Breaking ===&lt;br /&gt;
&lt;br /&gt;
A redstone comparator can be broken instantly with any tool, including the player's fist, and drops itself as an item.&lt;br /&gt;
&lt;br /&gt;
{{Breaking row|Redstone Comparator|horizontal=y}}&lt;br /&gt;
&lt;br /&gt;
A redstone comparator is removed and dropped as an item if:&lt;br /&gt;
* its attachment block is moved, removed, or destroyed;&lt;br /&gt;
* [[water]] flows into its space;{{only|java}}&lt;br /&gt;
* a [[piston]] tries to push it or moves a block into its space.&lt;br /&gt;
&lt;br /&gt;
If [[lava]] flows into a redstone comparator's space, the redstone comparator is destroyed without dropping itself as an item.&lt;br /&gt;
&lt;br /&gt;
=== Crafting ===&lt;br /&gt;
&lt;br /&gt;
{{Crafting&lt;br /&gt;
|B1=Redstone Torch&lt;br /&gt;
|A2=Redstone Torch&lt;br /&gt;
|B2=Nether Quartz&lt;br /&gt;
|C2=Redstone Torch&lt;br /&gt;
|A3=Stone&lt;br /&gt;
|B3=Stone&lt;br /&gt;
|C3=Stone&lt;br /&gt;
|Output= Redstone Comparator&lt;br /&gt;
|type=Redstone&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
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]].&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
* Down and unpowered (indicating the comparator is in &amp;quot;comparison mode&amp;quot;)&lt;br /&gt;
* Up and powered (indicating the comparator is in &amp;quot;subtraction mode&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
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 blocks]], [[redstone repeater]]s and other comparators. The redstone comparator's front is its output.&lt;br /&gt;
&lt;br /&gt;
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 usually do not respond 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.&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
=== Maintain signal strength ===&lt;br /&gt;
&lt;br /&gt;
A redstone comparator with no powered sides outputs the same signal strength as its rear input.&lt;br /&gt;
&lt;br /&gt;
=== Compare signal strength ===&lt;br /&gt;
&lt;br /&gt;
[[File:Comparators Explained.png|Comparators in comparison mode.|thumb]]&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Formula: '''''Output''' = '''Rear''' × ('''Left''' &amp;lt;= '''Rear''' AND '''Right''' &amp;lt;= '''Rear''')''&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Subtract signal strength ===&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Formula: '''''Output''' = max('''Rear''' - max('''Left''', '''Right'''), 0)''&lt;br /&gt;
&lt;br /&gt;
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''.&lt;br /&gt;
&lt;br /&gt;
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''.&lt;br /&gt;
&lt;br /&gt;
=== Measure block state ===&lt;br /&gt;
&lt;br /&gt;
{{Schematic | caption = A redstone comparator can measure the fullness of a chest, as well as other block states, even through a block.&lt;br /&gt;
 |rd-ew!|rc-w!|ch|SB|rc-e!|rd-ew!&lt;br /&gt;
}}&lt;br /&gt;
A redstone comparator treats certain blocks behind it as power sources and output a signal strength proportional to the block's state. The comparator may be separated from the measured block by a solid block. However, {{in|je}}[[Category:Java Edition specific information]], if the solid block is powered to signal strength 15, then the comparator outputs 15 no matter the fullness of the container.&amp;lt;ref&amp;gt;{{bug|MC-64394}} (resolved as &amp;quot;Works As Intended&amp;quot;)&amp;lt;/ref&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==== Containers ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable floatright&amp;quot; style=&amp;quot;margin-left: 0.5em; margin-right: 0; text-align: center;&amp;quot;&lt;br /&gt;
|+ Minimum Items for Container Signal Strength&lt;br /&gt;
|-&lt;br /&gt;
!Containers&lt;br /&gt;
!{{BlockSprite|Furnace|link=Furnace}}&amp;lt;br&amp;gt;{{BlockSprite|Blast Furnace|link=Blast Furnace}}&amp;lt;br&amp;gt;{{BlockSprite|Smoker|link=Smoker}}&lt;br /&gt;
!{{BlockSprite|Hopper|link=Hopper}}&amp;lt;br&amp;gt;{{EntitySprite|Minecart with Hopper|link=Minecart with Hopper}}&amp;lt;br&amp;gt;{{BlockSprite|Brewing Stand|link=Brewing Stand}}&lt;br /&gt;
!{{BlockSprite|Dispenser|link=Dispenser}}&amp;lt;br&amp;gt;{{BlockSprite|Dropper|link=Dropper}}&lt;br /&gt;
!{{BlockSprite|Chest|link=Chest}}&amp;lt;br&amp;gt;{{EntitySprite|Minecart with Chest|link=Minecart with Chest}}&amp;lt;br&amp;gt;{{BlockSprite|Shulker Box|link=Shulker Box}}&amp;lt;br&amp;gt;{{BlockSprite|Barrel|link=Barrel}}&lt;br /&gt;
![[Double Chest|{{Schematic|size=16|ch-s|-|ch-n}}&lt;br /&gt;
]]&lt;br /&gt;
!{{BlockSprite|Jukebox|link=Jukebox}}&lt;br /&gt;
|-&lt;br /&gt;
!Total Number of Slots&lt;br /&gt;
!3!!5!!9!!27!!54!!1&lt;br /&gt;
|-&lt;br /&gt;
!Power Level&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot; |Number of Items&lt;br /&gt;
!Music Disc&lt;br /&gt;
|-&lt;br /&gt;
|0||0||0||0||0||0||No music disc inserted&lt;br /&gt;
|-&lt;br /&gt;
|1||1||1||1||1||1||&amp;quot;13&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|2||14||23||42||1s&amp;lt;br&amp;gt;60||3s&amp;lt;br&amp;gt;55||&amp;quot;cat&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|3||28||46||1s&amp;lt;br&amp;gt;19||3s&amp;lt;br&amp;gt;55||7s&amp;lt;br&amp;gt;46||&amp;quot;blocks&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|4||42||1s&amp;lt;br&amp;gt;5||1s&amp;lt;br&amp;gt;60||5s&amp;lt;br&amp;gt;51||11s&amp;lt;br&amp;gt;37||&amp;quot;chirp&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|5||55||1s&amp;lt;br&amp;gt;28||2s&amp;lt;br&amp;gt;37||7s&amp;lt;br&amp;gt;46||15s&amp;lt;br&amp;gt;28||&amp;quot;far&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6||1s&amp;lt;br&amp;gt;5||1s&amp;lt;br&amp;gt;51||3s&amp;lt;br&amp;gt;14||9s&amp;lt;br&amp;gt;42||19s&amp;lt;br&amp;gt;19||&amp;quot;mall&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|7||1s&amp;lt;br&amp;gt;19||2s&amp;lt;br&amp;gt;10||3s&amp;lt;br&amp;gt;55||11s&amp;lt;br&amp;gt;37||23s&amp;lt;br&amp;gt;10||&amp;quot;mellohi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|8||1s&amp;lt;br&amp;gt;32||2s&amp;lt;br&amp;gt;32||4s&amp;lt;br&amp;gt;32||13s&amp;lt;br&amp;gt;32||27s||&amp;quot;stal&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|9||1s&amp;lt;br&amp;gt;46||2s&amp;lt;br&amp;gt;55||5s&amp;lt;br&amp;gt;10||15s&amp;lt;br&amp;gt;28||30s&amp;lt;br&amp;gt;55||&amp;quot;strad&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|10||1s&amp;lt;br&amp;gt;60||3s&amp;lt;br&amp;gt;14||5s&amp;lt;br&amp;gt;51||17s&amp;lt;br&amp;gt;23||34s&amp;lt;br&amp;gt;46||&amp;quot;ward&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|11||2s&amp;lt;br&amp;gt;10||3s&amp;lt;br&amp;gt;37||6s&amp;lt;br&amp;gt;28||19s&amp;lt;br&amp;gt;19||38s&amp;lt;br&amp;gt;37||&amp;quot;11&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|12||2s&amp;lt;br&amp;gt;23||3s&amp;lt;br&amp;gt;60||7s&amp;lt;br&amp;gt;5||21s&amp;lt;br&amp;gt;14||42s&amp;lt;br&amp;gt;28||&amp;quot;wait&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|13||2s&amp;lt;br&amp;gt;37||4s&amp;lt;br&amp;gt;19||7s&amp;lt;br&amp;gt;46||23s&amp;lt;br&amp;gt;10||46s&amp;lt;br&amp;gt;19||&amp;quot;Pigstep&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|14||2s&amp;lt;br&amp;gt;51||4s&amp;lt;br&amp;gt;42||8s&amp;lt;br&amp;gt;23||25s&amp;lt;br&amp;gt;5||50s&amp;lt;br&amp;gt;10||—&lt;br /&gt;
|-&lt;br /&gt;
|15||3s||5s||9s||27s||54s||—&lt;br /&gt;
|}&lt;br /&gt;
Using a redstone comparator to measure the state of a container will output a signal strength in proportion to how full the container is (0 for empty, 15 for full, etc.).&lt;br /&gt;
&lt;br /&gt;
Containers that can be measured by a comparator include:&lt;br /&gt;
* {{BlockLink|Furnace}}&lt;br /&gt;
* {{BlockLink|Blast Furnace}}&lt;br /&gt;
* {{BlockLink|Smoker}}&lt;br /&gt;
* {{BlockLink|Brewing Stand}}&lt;br /&gt;
* {{BlockLink|Hopper}}&lt;br /&gt;
* {{ItemLink|Minecart with Hopper}} on top of a [[detector rail]]&lt;br /&gt;
* {{BlockLink|Dispenser}}&lt;br /&gt;
* {{BlockLink|Dropper}}&lt;br /&gt;
* {{BlockLink|Chest}}&lt;br /&gt;
* {{BlockLink|Trapped Chest}}&lt;br /&gt;
* {{ItemLink|Minecart with Chest}} on top of a [[detector rail]]&lt;br /&gt;
* {{BlockLink|Barrel}}&lt;br /&gt;
* {{SchematicSprite|size=16|ch-e}}{{SchematicSprite|size=16|ch-w}} Large chest&lt;br /&gt;
* {{SchematicSprite|size=16|ch-e}}{{SchematicSprite|size=16|ch-w}} Large trapped chest&lt;br /&gt;
* {{BlockLink|Shulker Box}} (any color)&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
The ''Minimum Items for Container Signal Strength'' table (right) shows the minimum number of 64-stackable items required to produce the different signal strengths from each type of container. Numbers followed by an &amp;quot;s&amp;quot; indicate the number of normal 64-stack equivalents (&amp;quot;s&amp;quot;), and additional items less than a stack required. For items that stack in 16 maximum ([[snowball]]s, [[sign]]s, [[ender pearl]]s, etc.), normal value must be divided by 4, each unity is equal to 4. Example: 3 ender pearls *4 = 12 normal stackable items. Each non-stackable item counts as one full-stack(64).&lt;br /&gt;
&lt;br /&gt;
For example, to produce a signal strength of 10 from a hopper requires the equivalent of 3 full stacks plus 14 more items, or 206 items total, assuming they all stack in 64.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
;Calculating signal strength from items&lt;br /&gt;
&lt;br /&gt;
:When a container is empty, the output is off.&lt;br /&gt;
&lt;br /&gt;
:When it is not empty, the output signal strength is calculated as follows:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;signal strength = floor(1 + ((sum of all slots' fullnesses) / (number of slots in container)) * 14)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;fullness of a slot = (number of items in slot) / (max stack size for this type of item)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:''Example:'' 300 blocks in a dispenser (which has 9 slots), where each block stacks to a maximum of 64, produces output with a signal strength of 8:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
1 + ((300 items / 64 items per slot) / 9 slots) * 14 = 8.292, floored is 8&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note that a non-stackable item is counted as a full slot (1 item in a slot, with a max stack size of 1: 1 / 1 = 1.0), and items that stack up to 16 (such as ender pearls, snowballs and eggs) are similarly considered a full slot at 16.&lt;br /&gt;
&lt;br /&gt;
;Calculating items from signal strength&lt;br /&gt;
&lt;br /&gt;
: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:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;items required = max(desired signal strength, roundup((total slots in container * 64 / 14) * (desired signal strength - 1) ) )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:''Example:'' To use a furnace (which has 3 slots) to create a strength 9 signal, players need 110 items:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
max(9, (3*64/14)*(9-1)) = 109.714, rounded up is 110&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==== Miscellaneous ====&lt;br /&gt;
&lt;br /&gt;
[[File:Comparator storage.png|Comparators used to measure containers.|thumb]]&lt;br /&gt;
Some non-container blocks can also be measured by a redstone comparator:&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Beehive}} and {{BlockLink|Bee nest}}&lt;br /&gt;
&lt;br /&gt;
: A hive or nest outputs a signal strength equal to the amount of honey in the hive/nest.&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Cake}}&lt;br /&gt;
&lt;br /&gt;
: 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.&lt;br /&gt;
&lt;br /&gt;
[[File:Cauldron Redstone Strength Values.png|Cauldron signal strength|thumb]]&lt;br /&gt;
;{{BlockLink|Cauldron}}&lt;br /&gt;
&lt;br /&gt;
: A cauldron outputs different signal strengths depending on how much water is inside. From completely empty to completely full, the output values are 0, 1, 2, and 3. If lava is inside, the strength is always 1{{upcoming|Java 1.17}} or 3{{only|be}}&lt;br /&gt;
&lt;br /&gt;
[[File:Composter Redstone Strength Values.png|Composter signal strength|thumb]]&lt;br /&gt;
;{{BlockLink|Composter}}&lt;br /&gt;
&lt;br /&gt;
: 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.&lt;br /&gt;
&lt;br /&gt;
;{{Anchor|CommandBlock}}{{BlockLink|Command Block}}&lt;br /&gt;
&lt;br /&gt;
: A command block stores the &amp;quot;success count&amp;quot; of the last command executed, which represents the number of times the most recently used command of this command block succeeded. A &amp;quot;success&amp;quot; is defined by the [[command]]'s success conditions: if a red error message is returned in the chat, the command was not successful.&lt;br /&gt;
&lt;br /&gt;
: 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 is able to go up to 32-bit integer limit, and can be used in contraptions with no redstone dust with those values).&lt;br /&gt;
&lt;br /&gt;
: 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).&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Daylight Sensor}}&lt;br /&gt;
&lt;br /&gt;
: A Daylight Sensor outputs a signal strength that varies with the time of day (or time of night if inverted).&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|End Portal Frame}}&lt;br /&gt;
&lt;br /&gt;
: An end portal frame outputs a full signal of 15 if it contains an [[eye of ender]] and zero otherwise.&lt;br /&gt;
&lt;br /&gt;
[[File:Item frame and comparator.png|A comparator can measure the presence and rotation of an item frame's contents.|thumb]]&lt;br /&gt;
&lt;br /&gt;
;{{EntityLink|Item Frame}}&lt;br /&gt;
&lt;br /&gt;
: 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.&lt;br /&gt;
&lt;br /&gt;
: 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.&lt;br /&gt;
&lt;br /&gt;
: 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}}&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Jukebox}}&lt;br /&gt;
&lt;br /&gt;
: A jukebox outputs a signal strength indicating which music disc is currently playing. See the ''Minimum Items for Container Signal Strength'' table above.&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Lectern}}&lt;br /&gt;
&lt;br /&gt;
: A lectern outputs a signal strength that depends on what page the player is currently on (e.g. a book with 15 pages powers 1 [[redstone]] level per page, or one with 5 pages emits 3 signal strength per page).&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Respawn Anchor}}&lt;br /&gt;
&lt;br /&gt;
: A respawn anchor outputs a signal strength of 0, 3, 7, 11, or 15, depending on the &amp;quot;charged&amp;quot; value.&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Sculk Sensor}} {{upcoming|java 1.17|bedrock 1.17}}&lt;br /&gt;
&lt;br /&gt;
: A sculk sensor outputs a signal strength depending on the type of vibration that is detected.&lt;br /&gt;
&lt;br /&gt;
;{{BlockLink|Target}}&lt;br /&gt;
&lt;br /&gt;
: A target outputs a signal strength depending on the accuracy of an arrow toward the center of the target.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Sounds ==&lt;br /&gt;
=== Generic ===&lt;br /&gt;
{{Sound table/Block/Wood}}&lt;br /&gt;
=== Unique ===&lt;br /&gt;
{{edition|java}}:&lt;br /&gt;
{{Sound table&lt;br /&gt;
|sound=Click.ogg&lt;br /&gt;
|subtitle=Comparator clicks&lt;br /&gt;
|source=Blocks&lt;br /&gt;
|description=Sound played when switching between comparison and subtraction modes&lt;br /&gt;
|id=block.comparator.click&lt;br /&gt;
|translationkey=subtitles.block.comparator.click&lt;br /&gt;
|volume=0.25&lt;br /&gt;
|0.55/0.5&lt;br /&gt;
|distance=16&lt;br /&gt;
|foot=1}}&lt;br /&gt;
&lt;br /&gt;
== Data values ==&lt;br /&gt;
=== ID ===&lt;br /&gt;
{{edition|java}}:&lt;br /&gt;
{{ID table&lt;br /&gt;
|showforms=y&lt;br /&gt;
|generatetranslationkeys=java&lt;br /&gt;
|displayname=Redstone Comparator&lt;br /&gt;
|spritetype=block&lt;br /&gt;
|nameid=comparator&lt;br /&gt;
|foot=1}}&lt;br /&gt;
{{ID table&lt;br /&gt;
|displayname=Block entity&lt;br /&gt;
|spritename=redstone-comparator&lt;br /&gt;
|spritetype=block&lt;br /&gt;
|nameid=comparator&lt;br /&gt;
|foot=1}}&lt;br /&gt;
&lt;br /&gt;
{{edition|bedrock}}:&lt;br /&gt;
{{ID table&lt;br /&gt;
|firstcolumnname=Redstone Comparator&lt;br /&gt;
|shownumericids=y&lt;br /&gt;
|showforms=y&lt;br /&gt;
|generatetranslationkeys=bedrock&lt;br /&gt;
|displayname=Unpowered block&lt;br /&gt;
|spritename=unpowered-comparator&lt;br /&gt;
|spritetype=block&lt;br /&gt;
|nameid=unpowered_comparator&lt;br /&gt;
|id=149&lt;br /&gt;
|form=block}}&lt;br /&gt;
{{ID table&lt;br /&gt;
|displayname=Powered block&lt;br /&gt;
|spritename=powered-comparator&lt;br /&gt;
|spritetype=block&lt;br /&gt;
|nameid=powered_comparator&lt;br /&gt;
|id=150&lt;br /&gt;
|form=block}}&lt;br /&gt;
{{ID table&lt;br /&gt;
|displayname=Item&lt;br /&gt;
|spritename=redstone-comparator&lt;br /&gt;
|spritetype=item&lt;br /&gt;
|nameid=comparator&lt;br /&gt;
|id=404&lt;br /&gt;
|form=item&lt;br /&gt;
|foot=1}}&lt;br /&gt;
{{ID table&lt;br /&gt;
|notnamespaced=y&lt;br /&gt;
|displayname=Block entity&lt;br /&gt;
|spritename=redstone-comparator&lt;br /&gt;
|spritetype=block&lt;br /&gt;
|nameid=Comparator&lt;br /&gt;
|foot=1}}&lt;br /&gt;
&lt;br /&gt;
=== Metadata ===&lt;br /&gt;
{{see also|Data values}}&lt;br /&gt;
{{IN|be}}, redstone comparators use the following data values:&lt;br /&gt;
{{/DV}}&lt;br /&gt;
&lt;br /&gt;
=== Block states ===&lt;br /&gt;
{{see also|Block states}}&lt;br /&gt;
&lt;br /&gt;
{{/BS}}&lt;br /&gt;
&lt;br /&gt;
=== Block data ===&lt;br /&gt;
{{see also|Block entity format}}&lt;br /&gt;
&lt;br /&gt;
A redstone comparator has a block entity associated with it that holds additional data about the block.&lt;br /&gt;
&lt;br /&gt;
{{/BE}}&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align:center&amp;quot;&amp;gt;{{yt|J7Z20Zzz3yU}}&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{info needed section|Did {{bug|MC-50242}} also affect comparators?}}&lt;br /&gt;
''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]]''&lt;br /&gt;
{{History|java}}&lt;br /&gt;
{{History||November 24, 2012|link=none|[[Jeb]] stated that there may be a &amp;quot;capacitor&amp;quot; in [[Minecraft]].}}&lt;br /&gt;
{{History||December 27, 2012|link={{tweet|Dinnerbone|284388625595125760}}|[[Dinnerbone]] released [http://imgur.com/a/FBKed pictures] of the first version of the &amp;quot;comparator&amp;quot;, stating it was a replacement for the &amp;quot;capacitor&amp;quot; idea that has variable, alternate inputs.}}&lt;br /&gt;
{{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]].}}&lt;br /&gt;
{{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.&lt;br /&gt;
|Redstone comparators have 0 delay.}}&lt;br /&gt;
{{History|||snap=13w01b|A delay of 1 game tick ({{frac|1|2}} redstone tick) has now been added to redstone comparators to fix bugs.&lt;br /&gt;
|The ability to measure containers to redstone comparators has now been added.}}&lt;br /&gt;
{{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.&lt;br /&gt;
|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.}}&lt;br /&gt;
{{History|||snap=13w02b|Redstone comparators now treat large [[chest]]s as a single container.}}&lt;br /&gt;
{{History|||snap=13w03a|Redstone comparators now output success count of [[command block]]s.&lt;br /&gt;
|Redstone comparators now measure container [[minecart]]s on [[detector rail]]s.}}&lt;br /&gt;
{{History|||snap=13w04a|Redstone comparators now measure [[jukebox]]es.}}&lt;br /&gt;
{{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.&lt;br /&gt;
|Block 150 (&amp;lt;code&amp;gt;powered_comparator&amp;lt;/code&amp;gt;) is no longer used; powered state is now represented by the 8s bit on block 149 (&amp;lt;code&amp;gt;unpowered_comparator&amp;lt;/code&amp;gt;).}}&lt;br /&gt;
{{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).}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History||1.6.1|snap=13w18a|Redstone comparators now measure [[cauldron]]s and [[end portal frame]]s.}}&lt;br /&gt;
{{History||1.8|snap=14w04a|Redstone comparators now measure [[item frame]]s.}}&lt;br /&gt;
{{History|||snap=14w10a|The torches under redstone comparators have now been shortened, which has changed the underside appearance from [[File:Old comparator underside with long torches.png|32px]] [[File:Old Active Redstone Comparator below.png|32px]] [[File:Old Subtracting Redstone Comparator below.png|32px]] [[File:Old Active Subtracting Redstone Comparator below.png|32px]] to [[File:Comparator below Revision 1.png|32px]].}}&lt;br /&gt;
{{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.&lt;br /&gt;
|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}}.}}&lt;br /&gt;
{{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.&lt;br /&gt;
|Comparators set to subtract by hand now appear normally again.}}&lt;br /&gt;
{{History|||snap=14w28a|Redstone comparators now measure [[cake]]s.}}&lt;br /&gt;
{{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:&lt;br /&gt;
{{{!}} class{{=}}&amp;quot;wikitable collapsible collapsed&amp;quot; data-description{{=}}&amp;quot;Original values&amp;quot;&lt;br /&gt;
! Original values&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}}&lt;br /&gt;
*0: 0&lt;br /&gt;
*1: 1&lt;br /&gt;
*2: 19&lt;br /&gt;
*3: 37&lt;br /&gt;
*4: 55&lt;br /&gt;
*5: 1s 10&lt;br /&gt;
*6: 1s 28&lt;br /&gt;
*7: 1s 46&lt;br /&gt;
*8: 2s&lt;br /&gt;
*9: 2s 19&lt;br /&gt;
*10: 2s 37&lt;br /&gt;
*11: 2s 55&lt;br /&gt;
*12: 3s 10&lt;br /&gt;
*13: 3s 28&lt;br /&gt;
*14: 3s 46&lt;br /&gt;
*15: 4s&lt;br /&gt;
{{!}}}&lt;br /&gt;
}}&lt;br /&gt;
{{History|||snap=15w47a|Redstone comparators' side inputs now take power from [[redstone block]]s.}}&lt;br /&gt;
{{History||1.13|snap=17w47a|All 3 IDs for the redstone comparator have now been merged into one ID: &amp;lt;code&amp;gt;comparator&amp;lt;/code&amp;gt;.&lt;br /&gt;
|Redstone comparators now render their underside, which has changed their undersides from [[File:Comparator below Revision 1.png|32px]] to [[File:Comparator below Revision 2.png|32px]].&lt;br /&gt;
|Prior to [[1.13/Flattening|''The Flattening'']], these [[block]]s' numeral IDs were 149 and 150, and the [[item]]'s 404.}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History|||snap=19w02a|Redstone comparators now measure [[lectern]]s.}}&lt;br /&gt;
{{History|||snap=19w03a|Redstone comparators now measure [[composter]]s.}}&lt;br /&gt;
{{History|||snap=19w12b|Redstone comparators can now be placed on [[glass]], [[ice]], [[glowstone]] and [[sea lantern]]s.}}&lt;br /&gt;
{{History||1.15|snap=19w34a|Redstone comparators now measure how much honey is inside [[beehive|bee hive]]s and [[bee nest]]s.}}&lt;br /&gt;
{{History||1.16|snap=20w06a|The way to calculate the input signals of redstone comparators has now been changed.}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History|||snap=20w16a|Redstone comparators now measure [[Pigstep music disc]]s in [[jukebox]]es.}}&lt;br /&gt;
{{History|upcoming java}}&lt;br /&gt;
{{History||1.17|snap=20w45a|Redstone comparators now measure [[Lava cauldron]]s.}}&lt;br /&gt;
{{History|||snap=20w46a|Redstone comparators now measure [[Cauldron#Holding powder snow|Powder Snow Cauldron‌]]s.}}&lt;br /&gt;
&lt;br /&gt;
{{History|pocket alpha}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History|pocket}}&lt;br /&gt;
{{History||1.0.0|snap=alpha 0.17.0.1|Redstone comparators now measure [[end portal frame]]s.}}&lt;br /&gt;
{{History||1.0.5|snap=alpha 1.0.5.0|Redstone comparators now output success count of [[command block]]s.}}&lt;br /&gt;
{{History||1.1.0|snap=alpha 1.1.0.0|Redstone comparators now measure [[shulker box]]es.}}&lt;br /&gt;
{{History|bedrock}}&lt;br /&gt;
{{History||1.2.0|snap=beta 1.2.0.2|Redstone comparators now measure [[jukebox]]es.&lt;br /&gt;
|Redstone comparators now render their underside, which has changed their undersides from [[File:Old comparator underside with long torches.png|32px]] to [[File:Comparator below Revision 2.png|32px]]}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History||1.11.0|snap=beta 1.11.0.1|Redstone comparators now measure [[smoker]]s, [[blast furnace]]s, [[lectern]]s and [[composter]]s.}}&lt;br /&gt;
&lt;br /&gt;
{{History|console}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|switch=1.0.1|Redstone comparators can now measure [[item frame]]s.}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
&lt;br /&gt;
{{History|3ds}}&lt;br /&gt;
{{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.}}&lt;br /&gt;
{{History|foot}}&lt;br /&gt;
&lt;br /&gt;
=== Redstone comparator &amp;quot;items&amp;quot; ===&lt;br /&gt;
{{main|Direct item forms of blocks}}&lt;br /&gt;
{{info needed section|&lt;br /&gt;
* Bedrock Edition history (addition, changes made)&lt;br /&gt;
* Pick Block functionality}}&lt;br /&gt;
{{History|java}}&lt;br /&gt;
{{History||1.5|snap=13w01a|[[File:Smooth Stone Slab (side texture) JE1 BE1.png|32px]] [[File:Smooth Stone Slab (side texture) JE1 BE1.png|32px]] Redstone comparators have extra, unobtainable item forms corresponding to their block IDs, which use the smooth stone slab side texture. They can be obtained via the {{cmd|give}} command or inventory editors with numeric item IDs 149 and 150.}}&lt;br /&gt;
{{History|||snap=13w02a|[[File:Off Redstone Comparator (texture) JE2 BE1.png|32px]] [[File:On Redstone Comparator (texture) JE2 BE1.png|32px]] Following texture storage reforms, the comparator items now use the respective comparator top textures, making the items distinguishable.}}&lt;br /&gt;
{{History||?|Both items are called tile.comparator.name.}}&lt;br /&gt;
{{History||1.7.2|snap=13w37a|The direct item forms of redstone comparators have been removed from the game. They can no longer exist as items in any way, only as placed blocks.}}&lt;br /&gt;
{{History|foot}}&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
&lt;br /&gt;
{{issue list}}&lt;br /&gt;
&lt;br /&gt;
== Trivia ==&lt;br /&gt;
* Comparators are intentionally designed by Mojang to not emit redstone particles when powered, unlike redstone torches and repeaters.&amp;lt;ref&amp;gt;{{bug|MC-51692}} (resolved as &amp;quot;Works As Intended&amp;quot;)&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Redstone}}&lt;br /&gt;
{{Blocks}}&lt;br /&gt;
{{Items}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Mechanics]]&lt;br /&gt;
[[Category:Block entities]]&lt;br /&gt;
[[Category:Redstone mechanics]]&lt;br /&gt;
[[Category:Redstone]]&lt;br /&gt;
[[Category:Mechanisms]]&lt;br /&gt;
[[Category:Manufactured blocks]]&lt;br /&gt;
&lt;br /&gt;
[[de:Redstone-Komparator]]&lt;br /&gt;
[[es:Comparador de redstone]]&lt;br /&gt;
[[fr:Comparateur de redstone]]&lt;br /&gt;
[[hu:Redstone-komparátor]]&lt;br /&gt;
[[ja:レッドストーンコンパレーター]]&lt;br /&gt;
[[ko:레드스톤 비교기]]&lt;br /&gt;
[[nl:Redstonevergelijker]]&lt;br /&gt;
[[pl:Komparator]]&lt;br /&gt;
[[pt:Comparador de redstone]]&lt;br /&gt;
[[ru:Компаратор]]&lt;br /&gt;
[[zh:红石比较器]]&lt;/div&gt;</summary>
		<author><name>redstone&gt;MikhailMCraft</name></author>
		
	</entry>
</feed>