HomeJavaModsNyctography
Nyctography
ModsJava

Nyctography

by DarkhaxDev · on CurseForge

Adds the Nyctography substitution cipher as a usable Minecraft font. Free Minecraft Java mod for 1.21.1.

⬇ Download on CurseForge

Banner image for the mod

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.

History

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. 

Understanding Nyctography

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.

Nyctography decoder image.

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.

Banner Pattern

This mod adds a new banner pattern that can apply any character from the font to a banner. This pattern can be crafted or obtained as a rare trade from wandering traders. Both methods of obtaining this pattern can be modified or disabled using the config file.

Crafting recipe for the banner pattern.

Technical Usage

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

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.

Bookshelf Commands

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.

Code / Plugins / Mods

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.

 

Nodecraft Sponsorship LogoThis project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

Nyctography is a free Minecraft Java mod. Compatible with Minecraft 1.21.1. Downloaded 539,388 times (via CurseForge). Download it and open it directly in the game.

Explore more