| 稀有度 | |
|---|---|
| 创造标签页(JE) |
红石方块 |
| 创造分类(BE) |
物品 |
| 合适挖掘工具 | |
| 硬度 | |
| 爆炸抗性 | |
| 引燃几率 | |
| 烧毁几率 | |
| 熔岩可燃性 | |
| 窒息生物 | |
| 红石导体 | |
| 最大堆叠 | |
| 亮度 |
是, 9 (当激活时) |
| 光照透明 |
无 |
| 可再生 |
否 |
| 命名空间ID |
redstone_comparator |
红石比较器(Redstone Comparator)为模拟电路方块,用于红石电路中。其特性为:
- 有两个输入端(位于背面的A与位于一侧的B)和一个输出端(C),可以感应信号强弱,而非之前所有器件的感应是否有信号。也就是说这标志着模拟信号正式加入Minecraft。
- 模式1(前端红石火把熄灭):当A≥B,那么C=A;当A<B,那么C=0
- 模式2(前端红石火把点亮):当A≥B,那么C=A-B;当A<B,那么C=0
- 两种模式之间可以通过右键点击来切换。[1]
- 如果比较器两侧都有信号注入,那么B端会取信号较强的那一端。
比较器也提供了一个额外功能。当其后端与一个容器接触(如箱子、熔炉等)时,比较器会发出与容器里物品栏填满程度成正比的强度的信号。这个功能被称为“满箱检测”。
比较器的外观与红石中继器较为相似。
合成
| 材料 | 输入 » 输出 |
|---|---|
| 红石火把 + 石头
+ 下界石英 |
用途
作为短延迟二极管
与中继器类似,比较器也可以作为二极管使用(B=0),而且只会产生0.5刻的延迟。
作为比较器
比较器的B端可以为输入值设置一个阈值。A只有大于或等于B时,比较器才会有信号输出;否则全无输出。
作为模拟减法器
模式2下,比较器可以作为模拟减法器,A只有大于或等于B时,输出强度才为A-B,否则全无输出。
作为物品栏检测器
当其后端与一个容器接触(箱子、熔炉、发射器、酿造台、漏斗。不包括陷阱箱)时,比较器会发出与容器里物品栏填满程度百分比成正比的强度的信号。详见下文。若连接的是音乐盒则会输出和里面播放的唱片的编号强度一样的红石信号。
物品栏检测输出
当容器为空,则无输出。
当容器不为空,输出信号由下式给出:
输出信号强度 = 向下取整{1 + [容器内的物品数量 / (容器的物品槽总数 * 64)] * 14}
例:发射器(9个物品槽)里有300个方块,则输出信号强度为8:
1 + (300/(9*64))*14 = 8.292,向下取整(即直接去掉小数部分)之后为8
注:假設一組方塊為64個, 无法堆叠的物品(例如矿车)被看做是满堆叠的。
产生特定的输出信号强度
你可以利用比较器的这个特性产生特定的输出信号强度。容器内所需的物品数量可由上式的反函数,即下式给出:
需要的物品数量 = 最大值(需要的信号强度, 向上取整((容器的物品槽总数 * 64 / 14) * (需要的信号强度 - 1) ) )
例:要想使用熔炉(3个物品槽)产生强度为9的信号,你需要110个物品:
8与(3*64/14)*(9-1)的最大值为109.714,向上取整后为110
熔爐的能量表
This table shows the number of full slots(e.g. non-stackables like shovels,...) and blocks/items(stackable to 64) needed to get a specific output strength when using a furnace. Minimum and maximum needed items are shown. The optimal column tries to round to the nearest number of full slots between the minimum and maximum, if that isn't possible it optimizes by splitting 64-stacks in half and so on. Basically it's easier to count and needs less clicks to get a number of blocks/items in the furnace.
| 信號強度 | 最高 | 最低 | 最好 | |||
|---|---|---|---|---|---|---|
| Full slots | Blocks/Items | Full slots | Blocks/Items | Full slots | Blocks/Items | |
| 1 | 0 | 1 | 0 | 13 | 0 | 8 |
| 2 | 0 | 14 | 0 | 27 | 0 | 16 |
| 3 | 0 | 28 | 0 | 41 | 0 | 32 |
| 4 | 0 | 42 | 0 | 54 | 0 | 48 |
| 5 | 0 | 55 | 1 | 4 | 1 | 0 |
| 6 | 1 | 5 | 1 | 18 | 1 | 16 |
| 7 | 1 | 19 | 1 | 31 | 1 | 24 |
| 8 | 1 | 32 | 1 | 45 | 1 | 40 |
| 9 | 1 | 46 | 1 | 59 | 1 | 48 |
| 10 | 1 | 60 | 2 | 9 | 2 | 0 |
| 11* | 2 | 10 | 2 | 22 | 2 | 16 |
| 12* | 2 | 23 | 2 | 36 | 2 | 32 |
| 13* | 2 | 37 | 2 | 50 | 2 | 48 |
| 14* | 2 | 51 | 2 | 63 | 2 | 56 |
| 15* | 3 | 0 | 3 | 0 | 3 | 0 |
*Note that you have to smelt things to get items into the third slot, therefore using chests may be a better option if you want signal strength 11 or higher.
單箱子信號強度表
This table shows the number of full slots(e.g. non-stackables like shovels,...) and blocks/items(stackable to 64) needed to get a specific output strength when using a single chest. Minimum and maximum needed items are shown. The optimal column tries to round to the nearest number of full slots between the minimum and maximum.
| 信號強度 | 最低 | 最高 | 最好 | ||
|---|---|---|---|---|---|
| Full slots | Blocks/Items | Full slots | Blocks/Items | Full slots | |
| 1 | 0 | 1 | 1 | 59 | 1 |
| 2 | 1 | 60 | 3 | 54 | 2 |
| 3 | 3 | 55 | 5 | 50 | 4 |
| 4 | 5 | 51 | 7 | 45 | 6 |
| 5 | 7 | 46 | 9 | 41 | 8 |
| 6 | 9 | 42 | 11 | 36 | 10 |
| 7 | 11 | 37 | 13 | 31 | 12 |
| 8 | 13 | 32 | 15 | 27 | 14 |
| 9 | 15 | 28 | 17 | 22 | 16 |
| 10 | 17 | 23 | 19 | 18 | 18 |
| 11 | 19 | 19 | 21 | 13 | 20 |
| 12 | 21 | 14 | 23 | 9 | 22 |
| 13 | 23 | 10 | 25 | 4 | 24 |
| 14 | 25 | 5 | 26 | 63 | 26 |
| 15 | 27 | 0 | 27 | 0 | 27 |
By using the /give command, it is possible to get a stack that has more than the normal maximum for an item. For example, beds normally do not stack, however you can use /give <Player> bed 27 to get a stack of 27 beds. If you put the resulting stack of 27 beds in a chest, it will then output a signal strength of 15. Using this technique, and increasing the number to greater than 27, you can create chests (and other containers) which are more than 100% full. While you cannot store a signal with strength larger than 15 in redstone wire, redstone comparators can internally have a strength of more than 15. This internal strength can then be subtracted to reach signal strengths that wire can carry. For example, if you put 29 beds in a chest, set a comparator examining the chest to subtraction mode, and subtract a signal of maximum strength (15), the comparator will output a signal strength of 1.
| 信號強度 | 最低 | 最高 | 最好 | ||
|---|---|---|---|---|---|
| Full slots | Blocks/Items | Full slots | Blocks/Items | Full slots | |
| 16* | ? | ? | ? | ? | 29 |
| 17* | ? | ? | ? | ? | 31 |
| 18* | ? | ? | ? | ? | 33 |
| 19* | ? | ? | ? | ? | 35 |
| 20* | ? | ? | ? | ? | 37 |
| 21* | ? | ? | ? | ? | 39 |
| n (n>1) | ? | ? | ? | ? | n*2-2-n/15
(round up) |
| 897* | ? | ? | ? | ? | 1728 (max) |
音樂箱信號強度表
Unlike most containers, the signal output by a jukebox represents the record it contains. It outputs:
| Signal | Record |
|---|---|
| 0 | none |
| 1 | 13 |
| 2 | cat |
| 3 | blocks |
| 4 | chirp |
| 5 | far |
| 6 | mall |
| 7 | mellohi |
| 8 | stal |
| 9 | strad |
| 10 | ward |
| 11 | 11 |
| 12 | wait |
| 13 | unused |
| 14 | unused |
| 15 | unused |
历史
| u | |||||
|---|---|---|---|---|---|
| [[[红石更新||2012年11月24日]]] | |||||
| Jeb提到Minecraft中将会有电容器 | |||||
| [[[dinnerbonetweet:284388625595125760||2012年12月27日]]] | |||||
| Dinnerbone公布了第一批截图,并宣称其名字为“比较器” | |||||
| [[[dinnerbonetweet:286428595423965184||2013年1月2日]]] | |||||
| Dinnerbone又公布了一张截图,展示了组合成4-16译码器的比较器。 | |||||
| 13w01a | 红石比较器加入游戏,但无延迟 | ||||
| 13w01b | 为红石比较器加入0.5刻的延迟 | ||||
画廊
- ComparatorDinnerbone1.png
<Dinnerbone>当输入A大于或等于输入B时,比较器的输出或者是继承A的强度……
- ComparatorDinnerbone2.png
<Dinnerbone>或者是右键点击比较器之后,比较器输出切换为满强度的信号。
- ComparatorDinnerbone3.png
<Dinnerbone>输入A现在比输入B弱了,故比较器无输出。

