本站文本内容除另有声明外,均在知识共享 署名-非商业性使用-相同方式共享 3.0 协议下提供。(详情… 本站文本内容除另有声明外,均在知识共享 署名-非商业性使用-相同方式共享 3.0 协议下提供。(详情…中文Minecraft Wiki是完全公开的。欢迎持续参与翻译工作中文Minecraft Wiki是完全公开的。欢迎持续参与翻译工作Minecraft中文Wiki微博正在更新!或许有兴趣去看看Minecraft中文Wiki微博正在更新!或许有兴趣去看看翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。

教程/摩尔斯码

来自Minecraft Wiki
跳转至: 导航搜索

摩尔斯码[1](英语:Morse Code)是一种时通时断的信号代码,通过不同的排列顺序来表达不同的英文字母、数字和标点符号。

简述[编辑 | 编辑源代码]

摩尔斯码的代码包括五种:

  1. 点(·)
  2. 横(-)
  3. 每个字符间短的停顿(在点和横之间的停顿)
  4. 每个词之间中等的停顿
  5. 以及句子之间长的停顿

字母[编辑 | 编辑源代码]

字符 代码 字符 代码 字符 代码 字符 代码 字符 代码 字符 代码 字符 代码
A ·- B -··· C -·-· D -·· E · F ··-· G - -·
H ···· I ·· J ·- - - K -·- L ·-·· M - - N
O - - - P ·- -· Q - -·- R ·-· S ··· T - U ··-
V ···- W ·- - X -··- Y -·- - Z - -··

数位[编辑 | 编辑源代码]

数字(长码版)[编辑 | 编辑源代码]

字符 代码 字符 代码 字符 代码 字符 代码 字符 代码
1 ·- - - - 2 ··- - - 3 ···- - 4 ····- 5 ·····
6 -···· 7 - -··· 8 - - -·· 9 - - - -· 0 - - - - -

数字(短码版)[编辑 | 编辑源代码]

字符 代码 字符 代码 字符 代码 字符 代码 字符 代码
1 ·- 2 ··- 3 ···- 4 ····- 5 ·
6 -···· 7 -··· 8 -·· 9 0 -

实践[编辑 | 编辑源代码]

Ic translate.svg
此页面的(部分)内容需要被翻译。
你可以帮助我们来翻译此页面

发送器[编辑 | 编辑源代码]

这是三个部分中最简单的一个部分,所有在这上面发出的信号都必须能够在稍后的步骤中被解码为一点或一横。为此你需要将“横 ”的信号比“点”的信号做得长些。你可以用'单稳态电路'实现这一功能,如果用了红石中继器会变得更方便些。这是由于红石中继器可以设置延时,你可以利用这一特性来增加信息在红石线路上传递所需要的时间。

单稳态电路/脉冲放大器 (长)

这会被用于“横”的信号和重置选项,之后才会建造。“点”的信号不需要被延时或者延长,因为它的检测试基于信号没有增加的基础上的。

解码器[编辑 | 编辑源代码]

在“发送器”之后,是一个复杂一些的部分。你需要做一个能够接收“点”和“横”信号,并将其转换为光信号显示的系统。为了解释这一点,最好看图说话。

单稳态电路/Pulse Lengthener (long)

图中是解码系统的一部分。原始的解码器不需要第一个与门,信号直接来自输入“I”。第一个输入信号通过后,会被送到长度检测装置(红石中继器)与门“B”处,如果信号足够长就可以通过,激活RS或非锁存器“C”,打开Q(dash)。如果信号长度不足以通过“B”,“C”就不会被激活,信号会被传输到旁边的“C^”,这是另一个RS或非锁存器,一旦激活就会向“B”传输一个信号,令任何其他信号都不能够再通过。此时,这个与门“B”接收到的第3个信号会被传输到Q(dot)。如果“横”信号仍存在,则拥有优先级,会使“点”信号无效,若此时Q(dot)处于激活状态就会被关闭。不然的话,当Q(dash)处于激活状态时,“点”信号通过,Q(dot)也会被激活,所以需要让Q(dash)开启的时候关闭Q(dot),你可以通过把信号反馈到Q(dot)以达到目的。

注意在“B”处有4个中继器,延迟前述的第3个信号。这是因为你需要留时间让“横”信号通过,然后再锁住门,这样就不会被其他脉冲影响了。RS锁存器“C^” 提供的第3个信号被传输到另一个与门,当下一个脉冲到来时,允许其信号通过,后面的处理方式如上所述。

要构建重置器,你需要在所有的RS或非锁存器下放置红石火把,然后have a repeater 'and' gate the requires more than a dash would and set up a button for that, it is would recommended to use a delay after the gate as well to make sure that no other things will change when you send the reset through the system. Also remember that you want the lights to be OFF, default and then turn on when you want to reset.

翻译器[编辑 | 编辑源代码]

Poweringrepeaters1.jpg

This works almost the same as any normal decoder system that uses redstone repeaters. As mentioned before, the repeaters have the ability to pass power into a block, this is what you will exploit in your translator.

To get all the different signals to the translator you will need to choose a position, it is suggested to position it somewhere to the side of your decoder, but you need to remember which light means which. To keep the lines from interfering with each other, it is best to put the lines of wire on alternate levels (create bridges). Remember to check your wires to make sure that the signal does not exceed 16 blocks. Now the first stage is to get all the signals together. To do this you use repeaters, which has the unique ability to prevent signal interference.

Poweringrepeaters2.jpg

.

If you have done decoding before, you might have noticed that the signal is the wrong way round as you inverted it when you got it to the repeaters, so you might be thinking didn't you will need to invert them then before you got to the repeaters, well the answer is no unlike most signals Morse code has lots of lapping over like A and E, E is dot and A is dot dash, as you can see the E is contained within the A for this reason, you will need to be able to define the requirements more, to do this you will in the end have basically have two and gates for each letter, but it will explained more of later.

To start, you will want to create a line of repeaters all the way along, remember if you haven’t sent a signal through your system, or you've reset it which it will be mentioned at the end, then all your repeaters right now should be on, if there not then you need to go back and check, first of all check that you've reset them and then check your wiring to the translator. If you have got them all on, then it should be good, so far. After your line of repeaters you're going to want to create a line of any block, it is suggested to use sandstone or mossy cobble for mine but it's personal, it won't affect the wiring. Now continue this on so that you have 26 lines of blocks, the number of letters in the English alphabet. So, now you can kind of see your translator taking shape now to make the process easier for yourself later, it is suggested to place redstone torches all the way along the blocks on every row, you'll understand later. That took some time didn't it; be warned that there’s going to be a couple of tasks like that in this tutorial. Once you've got all your redstone torches set-up you want to place a row of blocks above everyone pulse two extra blocks on the end that you want the final signal. By now, your rows should look something like this.

Screeny3.jpg

.

Now that you've got the repeaters and the lights set up, you want to place wire all along the top of your blocks to the end and then place a torch coming down the side facing where the input came from. As you can see, it has been moved this signal down, inverted it, and then put it to a light which will show the letter.

Above View of rows

This is the first and gate down. As well as being able to power the block and the wires next to that block, it also powers the wire under nether, you can use this feature to be able to create the next and gate; sort of, but before then, you are going to go through and program the first and gate, now as you have already placed all the torches it is now quite easy to program in, basically you want to pull up your Morse code showing you the different signals and then remove the torch that is it meant to be, remember that it will go in pairs, dash dot, dash dot, dash dot and so on, so to program in A which is dot dash you need to remove the 2nd and the 3rd torch. It is very important to make sure you get the right end display. Although, it can always be done at the end, or with the next step, which is to create the second and gate, this will in the end mean that the signal will only be on when all the criteria is full filled, to stop any of the incorrect lights showing. Now, to do this you are going to want to remember where the gaps are in the torches, for example, by giving the gaps all numbers and writing down which ones are empty. It is suggested to do this row by row. Create a trench directly underneath the torches two deep, and now for everything

gap that you had place a block and a redstone wire on to it and feed the redstone wire overall of them to the opposite end of the torches away from where your display is. This is what 'A' would look like underneath

Under the 'and' gate

, now you want to get this message up to the top layer of your row, where the redstone wire is. You do this using vertical wiring and then feeding a wire to connect them both up, like this. Once this is all connected up to each one, you're complete you should now go test your system for any mistakes.

Endofthetrans.png


参考[编辑 | 编辑源代码]