Minecraft Wiki
Registreer
Advertisement
Redstone-Comparator
Redstone Comparator (Inactive)
Redstone Comparator (Active)

Type

Redstone

Hernieuwbaar

Nee

Stapelbaar

Ja (64)

Eerste verschijning

13w01a

Datawaarden

Uit-toestand

dec: 149 hex: 0x95 bin: 10010101

Aan-toestand

dec: 150 hex: 0x96 bin: 10010110

Object

dec: 404 hex: 0x194 bin: 110010100
Naam

redstone-comparator

De Redstone-Comparator is een blok dat gebruikt wordt bij Redstoneschakelingen. Hij heeft twee ingangen: een aan de achterkant ('signaal A') en een aan de zijkant ('signaal B'). Als signaal B sterker is dan signaal A, is er geen signaal als uitvoer. Verder kan hij ook worden gebuikt om Signaal A te herhalen op zijn huidige sterkte of het verschil tussen de twee ingangen als uitvoer gebruiken in de aftrek modus.

De "aftrek modus" is een eigenschap waarbij uitvoer gelijk is aan de spanning van de achterkant('signaal A') waarvan dan de spanning van de zijkant('signaal B') wordt afgetrokken. Om deze functie in werk te stellen moet de speler zorgen dat de voorste redstone fakkel brandt. Deze functie werkt niet als signaal B sterker is dan A. Als bijvoorbeeld de achterkant een sterkte heeft van 15 en de zijkant van 1 is de uitvoer 14. Om de voorste redstone fakkel aan/uit te schakelen moet er op de comparator worden gedrukt met de rechtermuisknop.

De comparator verschaft ook een functie die wordt geactiveerd wanneer de achterzijde van de comparator (de kant met twee redstone fakkels) wordt geplaatst tegen een opslagblok. Daarbij zendt de comparator een signaal uit dat gelijk is aan het percentage dat het opslagblok vol is. Sommige mensen noemen dit fill-checking.

De comparator lijkt veel op een repeater, het heeft alleen een extra redstone fakkel.

Crafting[]

Ingredients Input » Output
Redstonefakkels,

Steen, Netherkwarts












Gebruik[]

Als een low-delay kabel/diode[]

Je kan de Redstone comparator gebruiken om bv een hopper klok te maken. De comparator zal dan gaan pinken telkens het item in de hopper gaat met de comparator voor. Dit werkt ook met commandblocks vanaf het geactiveerd wordt zal de comparator een signaal verzenden.

Als een Vergelijker[]

De ingangen aan de zijkant van de comparator kunnen worden gebruikt om een ​​drempelwaarde voor het ingangssignaal in te stellen. De ingang, signaal A, wordt alleen uitgevoerd als deze groter is dan of gelijk is aan B. is het signaal anders, dan is er geen uitvoer. Signaal A is de signaalinvoer naar de achterkant van de comparator. Is signaal B de grootste van de twee zij-ingangen dan worden de andere genegeerd. Dit is vergelijkbaar met een echte op-amp zonder terugkoppeling, met signaal A de niet-inverterende ingang en het signaal B naar zijn inverterende ingang.

Als een diminisher[]

If a comparator is right-clicked, its third redstone torch becomes active. In this state, the output will be signal A minus signal B: the input signal will be reduced by the comparison signal. If signal B is greater than or equal to signal A, of course, there will be no output. This is similar to a real-life op-amp with a feedback wire from its output directly to its negative input (hence no amplifying effect but subtracts inputs), with signal A to its non-inverting input and signal B to its inverting input.

Als een klok[]

Als er een signaal komt van de redstone-fakkel, de bovenste fakkel van de comparator aan staat en er redstone van de uitvoer van A naar de invoer van B loopt, ontstaat er een 1-klok en dat kan je gebruiken voor lowspeed-rails, control-devices (bestaat uit opdrachtblok en andere.

As an inventory contents checker[]

Wanneer een vergelijker geplaatst word naast een container , zal een uitgang het percentage van de gebruikte ruimte in de houder verschaffen . Dit houdt in: gewone / grote / gevangen Kist , Oven , Dispenser , Hopper, Brewing Stand , Dropper , Jukebox , of een detector Rail met een minecart met Kist / Hopper er op. De vergelijker kan de ingang worden gescheiden door een massief blok als het 3 blokken vormen een lijn , maar Redstone stroom van onder de afscheider kunnen interfereren . Zie hieronder voor meer info .

Inventory checking output[]

When a container is empty, the output is off.

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

signal strength = truncate(1 + ((sum of all slots' fullnesses) / number of slots in container) * 14)

fullness of a slot = (amount of items in slot) / (max stack size for this type of item)

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:

1 + ((300 items / 64 items per slot) / 9 slots) * 14 = 8.292, truncated is 8

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 which stack up to 16 (such as ender pearls and snowballs) are similarly considered a full slot at 16.

Specific output signal strength creation[]

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:

items required = max(desired signal strength, roundup((total slots in container * 64 / 14) * (desired signal strength - 1) ) )

Example: To use a furnace (which has 3 slots) to create a strength 9 signal, you need 110 items:

max(8, (3*64/14)*(9-1)) = 109.714, rounded up is 110

Power listings of a chest[]

This chart shows the redstone output of a regular chest, with a items of stack size 64. (Note this does not include Large Chests.)

1 Blocks/items = 1 SignalStr

124 Blocks/items = 2 SignalStr

247 Blocks/items = 3 SignalStr

371 Blocks/items = 4 SignalStr

494 Blocks/items = 5 SignalStr

618 Blocks/items = 6 SignalStr

741 Blocks/items = 7 SignalStr

864 Blocks/items = 8 SignalStr

988 Blocks/items = 9 SignalStr

1111 Blocks/items = 10 SignalStr

1235 Blocks/items = 11 SignalStr

1358 Blocks/items = 12 SignalStr

1482 Blocks/items = 13 SignalStr

1605 Blocks/items = 14 SignalStr

1728 Blocks/items = 15 SignalStr

Jukebox record identification[]

Unlike most containers, the signal output by a jukebox represents the record it contains. It outputs:

Signal Record
0 geen
1 13
2 cat
3 blocks
4 chirp
5 far
6 mall
7 mellohi
8 stal
9 strad
10 ward
11 11
12 wacht
13 unused
14 unused
15 unused

Video[]

History[]

Officiële release
1.5 Redstone-Comparator toegevoegd.
24 November 2012Jeb stated that there may be a 'Capacitor' in Minecraft
[[[dinnerbonetweet:284388625595125760||27 December 2012]]]
Dinnerbone released pictures of the first version of the 'Comparator,' stating it was a replacement for the 'Capacitor' idea which has variable, alternate inputs.
[[[dinnerbonetweet:286428595423965184||2 January 2013]]]
Dinnerbone released one more picture of the Comparator. The picture itself showing a digital-to-analogue converter, using the comparator as the main block.
13w01a Added redstone-comparator, with 0 delay.
13w01b Added delay (1/2 tick, half the delay of the repeater. This is for bug-fixing)
All containers output a redstone signal when a Comparator is placed against it directly. The strength of it depends on how full the container is. This works with Trapped Chests as well, meaning it can provide two redstone signals with different causes at the same time.
13w02a Updated texture to show quartz in the middle.
When fed by containers, they will now start giving out a signal as soon as 1 item is in the container, allowing for empty container detection.
13w02b Large/double chests can now release a redstone signal when connected to a Comparator depending on the amount of stacks within. Before, double chests would only emit a signal depending on how full each individual chest was (a double chest with only the the top half full would emit a full signal from the side that the items were in).
13w03a Comparators fed by command blocks will now indicate whether the last run command was run successfully
Comparators can be used to get an analog redstone signal indicating the amount of found players by using the new /testfor command.
Comparators powered by detector rails now give out a signal depending on the fullness of the container on the rail.
13w04a Comparators can now be used with jukeboxes - the output signal strength relates to disk number.
13w05a Comparators no longer cause constant block updates, the delay is made consistent, and side input no longer causes a pulse output.
13w05b Comparator delay changed from 1/2 redstone tick to 1 redstone tick.
13w09c The redstone signal strength from a comparator next to a brewing stand with 3 water bottles in it is the same as one with 3 water bottles and 1 ingredient in it.
Toekomstig
1.6 13w18a Comparators now give out a signal for Cauldrons and End Portal frames depending on their state.

Issues[]

Problemen met betrekking tot 'Redstonevergelijker' worden bijgehouden op de bugtracker. Meld problemen daar.

Trivia[]

  • The comparator does not re-strengthen a redstone signal. This means it can not be used for super-long instant circuits.
  • If placed every second block between redstone, they can endlessly carry a signal, at same speed than repeaters on first setting, without it losing power strength. Placing a non-transparent block at every corner allows it to bend without losing power. It is also possible to reduce the needed amount of comparators further (and thus improve the signal speed) by facing the comparators into solid blocks behind which redstone is placed
  • A redstone comparator outputs a strong signal. This does not mean it resets the signal strength like repeaters, but it means the signal can be picked up through a block without using a repeater (Like a repeater)
  • If you join up the redstone torches, an arrow is created which points to the redstone output. This arrow can also be seen as a red triangle on the Comparator, if one looks hard enough.

Gallery[]

Advertisement