作者:rebot | 分类:模组
Minecraft 版本: 26.2
平台: fabric
标签: adventure decoration magic

This mod adds the Nyctography substitution cipher as a Minecraft font! This font can be used for books, signs, chat messages, tooltips, and most forms of ingame text.
The nyctography writing system was invented in 1891 by Lewis Carrol. The goal of this system was to make writing in the dark easier, which is where the system gets its name. Text was written using a nyctograph, a stencil with squre holes that were used to align and write the characters. In modern times this writing system has been used for puzzles in games, DnD campaigns, and geocaches.
This writing system uses a series of dots and lines aranged around the edges of a square. For example the letter E has a dot in the top left corner and a line on the top. Each symbol loosely resembles its latin alphabet counterpart. For example the letter O has a dot in the top left corner and then a line on all sides of the box, creating a closed loop.

Similarly to braille, numbers are written using a letter. This mod will automatically handle this when writing text with the font but you will still need to know how to read them. Only consonants are used to avoid confusion with actual words.
There are five special characters in addition to the letters and numbers.
This font can be applied to any text using Mojang's text component system, including all commands and datapack features that accept raw JSON text. This is done by setting the font property of the text to nyctography:nyctography.
Vanilla commands will often allow you to define text using the raw JSON format. The font property controls which font will be used when rendering that text. This can be done for all fonts and is not unique to fonts added by this mod.
/give @a stone[custom_name='["",{"text":"Stone","font":"nyctography:nyctography",italic:false}]']/title @a title {"text":"Hello","font":"nyctography:nyctography"}/give @a written_book[written_book_content={pages:['[["",{"text":"Test book","font":"nyctography:nyctography"}]]'],title:"aaa",author:"bbb"}]This mod depends on the Bookshelf library which offers several commands to help work with fonts. A few examples of these commands are given below.
If you have access to code or scripting tools you can apply the font to any mutable text component. This is done by setting the font ID on the style of the text component. You can find an example of how I do this in my code here.
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
请登录后举报
暂无评论,抢个沙发吧~