1. The material basis of the redstone circuit
The larger -scale redstone circuit is made of redstone powder. In addition to being placed on the ground as a wire, it is also used to synthesize other redstone circuit elements.
Redstone powder can be obtained by mining red stone ore. The ore will appear below 16 (below 1.17, excluding), and need to be tapped.
In some places, redstone is also naturally generated, such as the reward box of the jungle temple and dungeon.
Of course, there are some other material foundations.
2. Basic concept: the status and timing of the redstone circuit
1) The state of the block and the redstone line
Block status can be divided into no energy, weak charging and strong charge energy.
When the box is not filled with the function of the block and the redstone;
Weak charging can make mechanical work, such as the iron door opens and the piston extended;
Qiang Chong can not only play all the role of weakness and energy, but also activate the nearby red stone line.
How to achieve these situations?
In order to achieve weak charging energy, it is necessary to use the power -powered redstone line to a square, then it is weak.
There are many ways to reach strong charge, and it will be mentioned later.
The redstone line is also divided into two states: charging energy and unpaid energy:
The redstone powder can be placed on the red stone line on the ground. When there is no access circuit, the redstone line is dark red, that is, it is unparalleled;
The redstone line that is close to the strong charging block has a signal strength of 15. At this time, it is the brightest red;
Starting from it, each extension of the strength of the redstone line is reduced by 1, the color becomes darker, and when it is reduced to 0, it becomes unparalleled.
Redstone will be automatically connected to the redstone with a height of no more than 1 square meter.
Summary: the concept of signal strength
When the redstone line transmits signals above, the extension signal becomes smaller with the distance.
In fact, strong charging energy, weak charge energy, and non -charge energy refer to the range of the value of the redstone signal strength.
Strong filling energy ---> signal strength is 1 ~ 15, which can enable the attached redstone line to fill the energy and the signal strength is 15;
(After the comparative device is strong, energy is the energy output energy)
Weak charging energy ---> Signal strength is 1 ~ 15. Except that the redstone line can make the red stone line and door, transmitter, red stone lamp and other blocks connected to the energy, a weak charged block does not seem to be abledo what;
(The signal strength obtained by the comparator output energy is obtained by the square).
No energy-> signal strength is 0, and nothing can be done.
2) The time unit of the redstone circuit
The time in the Minecraft game is not continuously changed, but in the form of a very short time period, "jumping" changes.Every time after a period of time, the game is updated at a time, such as wheat and purple pushing plants are trying to grow up.We call this very short time "game carving".
If your game runs very smoothly, without stuttering at all, 1 game engraved is equal to 0.05 seconds of real life time, that is, 20 games engraved = 1 second.
As for the redstone circuit, the state of the redstone circuit does not happen continuously with the state of time, but also occurred in a very short period of time.We call the redstone circuit change the state of each short time at a time of each time.The length of the red stone carvings depends on the game carving. 1 red stone carvings = 2 game carvings, that is, in a state of completely not stuck, 1 red stone carvings are equal to 0.1 seconds of real life time, that is, 10 red stone carvings = 1 second.
The game carving and red stone carving are usually collectively referred to as the carvings.(English tick, plural form ticks)
Articles specifically introduced redstone circuit, such as in this article, when "engraving" or tick is mentioned, it often refers to red stone carvings.
To avoid confusion, this is hereby explained.
3. Basic concept: the way to generate redstone signals, and use the redstone signal control block
1) Generator
We can call the block that generates the redstone signal as a "generator".
The generator is essentially a square that can allow you to make your own face, or a certain amount of energy.
For example, the six noodles of the red stone are strong and powerful;
The buttons and tie rods are strong and strong on their posted surface;
There is an arrow on the surface on the surface of the redstone, which is strongly charged on the surface of the arrow.
(This refers to the original MC's redstone relay. In addition, the relay of the redstone power 2 module, the function is similar but more powerful. For simplicity, the following is only introduced by the redstone recreigator and referred to as the relay.To avoid confusion, hereby explain.))
There are many types of generators.Any complete non -transparent block is a generator when it is strongly charged, and it is not a generator when it is not recharged.In addition to this situation, there are some blocks specifically as the generator in the redstone circuit, and players who are slightly exposed to the redstone circuit will not feel strange.
These generators can be divided into two categories:
One is that as long as it is placed on the ground, it can be stable and unconditionally generated by the redstone signal, such as redstone flames and redstone blocks.
The difference is:
1. When the redstone fire handlebars are attached to the block, the redstone signal will be extinguished, and the redstone signal will not be generated, and the red stone can not be generated;
2. The red stone itself is a strong charging capacity, and the red stone fire handle is not a strong charging block;
3. The red stone fire handle can be able to charge the box above, and the red stone must not be weakly charged with the surrounding squares.
Key points: Red stone will change the orientation of the red stone, but the strong charging can not.Another type only generates redstone signals when meeting certain conditions, which is equivalent to the logical judgment in the program algorithm or the sensor in the reality circuit.Including but not limited to the following.The parenthesis after the name writes the condition of the signal.
Tip (there are two positions with switch, when the position is "open")
The button (after pressing, before the bounce)
Relay/comparator
These two generators will explain in detail because this will help the future explanation.
Relay:
When the redstone signal from the rear is received, after the delay (gear) Ticks, (Ticks here refers to the red stone carvings, 10 red stone carvings = 1 second) to the redstone signal with a signal strength of 15 in front.
If the redstone signal of other relatives is received on the side, the detection status is charged. If it is charged and continuously charges, ignore whether the redstone signal is received after the rear, until the redstone signal on the side disappears, and returns the normal state.If it is not charged, no signal will be generated regardless of whether the rear is charged., Until the side redstone signal disappears and returns to normal.(That is, lock)
Sunshine/Moonlight sensor (during the day/evening, it is actually the number of ticks that check the game time instead of checking the dawn)
The trap box (the moment when it is opened)
The stumbling hook (the stumbling line is stepped on by the creature, dropped items on the stumbling line, the stumbling line is shot by the arrow (to be verified), the stumbling line is cut off by non -scissors)
Detector (Observer) (when the block is updated)
Pressure board for each material
(Original wooden pressure board: when it was stepped on/when it was hit/hit by the arrow)
Original stone pressure board: when it is stepped on
For introduction
Carpenter's carpenter pressure board: There are three modes (player biological drops can be triggered/only biological trigger/only players can be triggered) can be switched by carpenter hammer of the same module))
For introduction to these items, click the hyperlink.
2) Effector
We can call the item that uses the redstone signal to work as the effect:
1. Pistons/viscosity piston
When receiving the redstone signal, both push the block;
When the redstone signal disappears, the piston only retracts the piston head;
The viscous piston determines whether the piston head is posted with a block that can be pulled. If so, pull it back.
2. Thrower
When receiving the redstone signal, choose one content that throws to the direction of the face. If there is a container in the corresponding direction, the content is transmitted to the container;
There is no action when the redstone signal disappears.
In other words, if you want to throw out the items in a row, you must continue to the ground and break the redstone signal. You can use the continuous press button (the button can be automatically disconnected), repeatedly pull the lever and use a high -level pulse circuit and other methods.Essence
3. transmitter
When receiving the redstone signal, select 1 content object to check what it is:
If it is a general item, throw it like a thrower;
If it is the following items:
Arrow/flame bombs: launched from the direction of its face (the open face), the range is quite long.If the arrow is shot, the transmitter can shoot the arrow to the place that should be shot to the place where it is not covered by some blocks.These blocks include vines (Do you remember the organs in the jungle?)
Bucket/magma bucket: turn it into an empty bucket and leave it in the launcher, place a grid of water/magma in the facing one (that is, pour the thing in the barrel)
Empty bucket: If the launcher faces a grid of water or magma, let it disappear, and then turn the empty bucket into a bucket or magma barrel (that is, the pouring liquid back)
For the liquid barrel added by other modules, the specific situation needs to be verified.
Splash potion: Use the potion in the direction of facing, just like the player right -click and throw the splash potion.
TNT: Place in front of and ignite immediately.
4. The wooden door/iron door/living plate door/iron live version/fence door, open the redstone signal, the redstone signal disappears.Among them, iron doors and iron live panels can only be switched with redstone signal.
In particular, the receiving signal range of the door is not limited to the weak charging energy block. It can receive the signal of the adjacent generator, which causes the door to open the door in front of the door.
For doors, if you place it at a special angle, you can make it at the position where the position is at the time when receiving the signal. It can make a door that "opens the signal when the signal is open, and there is no signal."Some puzzle maps will see this technique and can make the door that cannot be opened.
5.TNT, will be ignited when redstone signals.
6. Redstone lamps, light up when receiving redstone signals.
7. Box box, play the corresponding sound when receiving the redstone signal
3) Some terms of redstone
Redstone pulse:
The redstone signal is quickly switched once.
Redstone Machinery:
Device consisting of generator, redstone line and effector.
High -frequency/low -frequency red stone, red stone clock:
Continuously generate the device of the redstone signal at a certain rate.
Divided into high -frequency and low frequency.
They collectively refer to the red stone bell.
Transparent block/non -transparent block/entity block/non -physical block:
If there is a block that is blocked above the redstone, so that the redstone powder cannot be connected to the adjacent red stone powder taller than it, then the block is a non -transparent block/physical square block.
The entity block can be charged.
Conversely, a transparent block/non -entity block.Non -physical blocks cannot be charged.
4. Advanced concept: simple logical structure and its application
1) Simple logic algebra
Logic algebra looks like a very powerful word, but we only understand some very simple logical algebra just to facilitate the understanding of the content below.
We might as well record the "filling energy" state as a number of any greater than 0;
And record the "unparalleled energy" state to 0.
Logical structure often needs to process the relationship between multiple inputs, that is, logical operations of these inputs.
We also use three basic logic in daily life:
As long as one of the logic "or" -----> As long as one is greater than 0, the output is greater than 0.
This operation can be understood as adding all inputs.In the end, there are more than 0, there is output; equal to 0, no output.
Because as long as one plus number is greater than 0, all the sum of the harmony will be greater than 0 (there is no negative number in the definition)
So understanding as the addition is in line with our definition.
Of the logic "and" ----> all input conditions, as long as one is 0, the output is 0.
This operation can be understood as multiplied by all inputs.In the end, there are more than 0, there is output; equal to 0, no output.
As long as one multiplier is 0, all the multiplication will be 0 will be 0
So understanding is our definition.
The logic "non" ----> input is 0, and output is not 0; input is not 0, and the output is 0 to 0
To put it plainly, it is the opposite, which is very simple.
2) Logical operations in the redstone circuit
We mentioned the logical structure in the title of this section.
The so -called logical structure is a block structure used in the form of the redstone circuit structure in the form of the redstone circuit structure in the form of the redstone circuit structure.Because the logical structure is equivalent to a "door", the signal is allowed to pass and responds to a certain reaction, so the logical structure is called the logic door or door.
There are many types of logical structures.But here only introduces simple logical structures, that is, the structure of three simple logical operations.
The placement of each structure is not only the one introduced here.You can find various ways to place yourself.
The following uses the form to draw a simple picture, and the form of the form represents a square block.
Non -door:
If A is input, B is output;
If A enters the redstone signal, B does not output the redstone signal.
If A does not enter the redstone signal, the B outputs the redstone signal.
Reference placement method:
Redstone
Non -transparent square red stone fire handle red stone line
Among them, the redstone line on the left is connected to the input terminal, and the redstone line on the right is used as the output end.
When there is a signal on the left red stone line on the left, the red stone fire handle is extinguished.
When there is no signal on the red stone line on the left, the red stone fire handle is extinguished, and the red stone line at the right end is strong.
This plays the function of "non -" logical operations.
Example:
In the early original MC without moonlight sensors, sunshine sensors and non -door sensing nights were used.
Connect the input terminal of another non -door to the output end of the non -door. Because the negative negative is positive, the energy state of the output end will be the same as the input terminal, and the signal strength will be increased to 15. This structure can replace the relay, can be able to be a relay, can be able to replace the relay.Save a little red stone powder.Each use of a structure is used as a relay to cause a delay to the circuit.After calculation, the delay generated by this method in the long -range redstone circuit is slightly longer than the delay generated by using the relay.
Follow the door:
If A, B, C ...... is input, α is output;
Only all inputs provide redstone signals can α output redstone signals.
Or door:
If A, B, C ...... is input, α is output;
Only if all inputs are not provided with redstone signals, α will not output signals.
Conversely, if an input provides a signal, α will output signals.