your current location:首页 > news>Basis of Redstone Control -the usage and measurement of binary packaging unblocking device

Basis of Redstone Control -the usage and measurement of binary packaging unblocking device

2024-12-09 18:31:26|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC by-NC protocol.

Redstone control is a very powerful MOD. With the help of binary methods to control this world, it can achieve many purposes and even reproduce a area.After all, this is a binary world in itself.

In these tutorials, I will do my best to introduce the purpose of various blocks in this MOD, and how to guess its operation results.

Before reading these tutorials, I think:

You know what binary is.

You know the binary calculation of the foundation.

You really look at the introduction of items in the game.


First of all, the binary encoding is a string of numbers consisting of 0 and 1 in an orderly manner, which records information with its specific arrangement order.

Secondly, in most cases, we cannot use the data that can be stored by a storage unit. At this time, it can be organized to maximize the storage space by organizing many data in accordance with certain rules.In fact, in the game, no one cares at all, and the most obvious purpose in this MOD is to draw images and control the behavior of controlling controllable items.

The author provides some methods in the MOD, allowing us to operate these data, such as binary packagers and binary dismissions.In fact, the FPGA programmer is better, but I really don't know where to talk about it

Binary packagers can combine several sections of binary encoding into a paragraph, and binary dismissal can restore data without damage in the same mode, and in different modes, it will be restored in another way.

First, let's talk about the conclusion:

The relatively simple saying is that the packager is to convert the input value to binary and then write from left to right in the order of IN3 In2 in1 in0.The dismissal is to convert the data to binary to the left, according to the value group of n in 4Nbit-> 4*NBIT, and then output from left to right to In3 in2 in1 in0 from left to right.

If you know a certain programming knowledge: the packager is to use the value of N (n is the value of n in the INN, and T are the value of T in 4*tbit-> 4tbit).The dismissal is to move the data left T*N (n is the value of n in the INN, T is the value of t in 4tbit-> 4*tbit) and 2 N+1 EssenceIf you really want to be programmed, I will explain it

Next is the analysis process: here, use this device to perform experiments:


The role of this device is to pack 4 1 -bit signal, display it on the display, and unpack it at the same time to display it on another display screen.

First determine the work order of binary packagers.

Whether in decimal or in binary, a specific number must be represented by a specific way. When I set the switch, output 1, and when the level is off, output 0, by opening 0, by opening, by openingDifferent switches can determine the order of four string binary codes in the package, and at the same time output the results to obtain the output order.Replace the switch to a slider module, predict and test other modes, and draw conclusions.

But there are three cases:

How to deal with when the input value exceeds the number of digits: the signal of the IN0 is connected to the slider module to adjust the slider module to 5. It can be seen that the value displayed by the display module is 3. This shows that for the cross -border data, it can only beOutput its maximum value, and because the binary of 5 is 101, and 3 is 11, it can be seen that for cross -border data, it can only output the largest value, not the operation.Author, this is a binary -based MOD, can it be more rigorous?

When the packaging is unpacking, if the input value exceeds the value of the dissection: enter 3 in IN0 and enter 1 in IN1 and IN2, then the value that should be read is 01010111, but when it is read, it is displayed, displayed,The output is 0111, which means that the dismantling device is read from right.For cross -border content, its choice is ignored directly.When the unpacking, the value of the input value is less than the number of unpacking points: we enter 0110 in the package, but the result of the output of the dismantling device is 0012, which shows that the dissection is the following segments 00 in the following segment 00| 00 | 01 | 10, that is, for the data with insufficient digits, the dismantling device will supplement the digits by default by default.