What are you searching for?

Pig Pen Cipher
Pig Pen Cipher

Pig Pen Cipher

Adds the pigpen cipher to Minecraft

download 996.4K Downloads · favorite 44 Followers · Updated 3 months ago
Fabric Forge Neoforge Quilt Utility 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 +15 more

Versions

inventory_2
PigPen-fabric-1.21.1-21.1.4

21.1.4 · 3 months ago · 41.00 KB

Release download
Fabric Quilt 1.21.1
inventory_2
PigPen-neoforge-1.21.1-21.1.4

21.1.4 · 3 months ago · 38.65 KB

Release download
Neoforge 1.21.1
inventory_2
PigPen-neoforge-1.21.1-21.1.3

21.1.3 · 3 months ago · 38.65 KB

Release download
Neoforge 1.21.1
inventory_2
PigPen-neoforge-1.21.1-21.1.2

21.1.2 · 1 year ago · 38.61 KB

Release download
Neoforge 1.21.1
inventory_2
PigPen-forge-1.21.1-21.1.2

21.1.2 · 1 year ago · 38.60 KB

Release download
Forge 1.21.1

About

This mod adds the Pig Pen Cipher to Minecraft as a new font. This can be used for books, fonts, chat messages, tooltips, and virtually any other text in the game.

Overview

The Pig Pen Cipher is a simple substitution cipher used to encode messages which use the English alphabet.

User Guide

Using the Cipher

The Pigpen Cipher is sometimes referred to as a tic-tac-toe cipher. This is because the key used to encode/decode characters looks like a tic-tac-toe board.

To write a character using the Pigpen Cipher you simply replace the character with the lines that surround the character. For example if you want to write the letter A you would draw a backwards L shape and an E would be drawn as a square. If the symbol contains a dot you would use the version on the right, so a square with a dot inside of it is an N. The eight lower characters follow the same rules, T would be an arrow pointing right and W would be an arrow pointing down with a dot in it.

While the cipher may seem complicated at first it will become a lot easier to understand with some practice.

Commands

If this mod is installed on a Forge server you will be able to use some custom commands to help you use this mod. These commands can also be used in single player if the mod is installed.

  • /pigpen say - Posts a message in chat using the cipher. All players can use this command. The plaintext version is logged in the server console.
  • /pigpen hand - Renames the held item with cipher. Limited to lvl 2 ops.
  • /pigpen book (encode|decode) - Rewrites a held book to use cipher. Can also turn encoded books into plaintext books. Limited to lvl 2 ops.
  • /pigpen tile (encode|decode) <pos> - Rewrites a tile entity such as a sign to use cipher. Limited to lvl 2 ops.

Code

If you're developing a mod or have access to code/scripting tools you can apply the cipher to an ITextComponent by modifying the style of the component.

// MCP names not yet available
// func_240703_c_ = setStyle
// func_240719_a_ = setFontId
IFormattableTextComponent text = new StringTextComponent("Hello World");
text.func_240703_c_(text.getStyle().func_240719_a_(new ResourceLocation("pigpen", "pigpen")));

Vanilla Commands & NBT

Any vanilla command which allows you to specify a text component can use cipher by defining the font ID in the text properties. For example it can be used in the give command, or in the title command.

/give @p stone{display:{Name:"[{\"text\":\"Hello\",\"italic\":false,\"color\":\"gold\",\"font\":\"pigpen:pigpen\"}]"}} 1

/title @a title {"text":"Hello","font":"pigpen:pigpen"}

 

open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Required
gavel LGPL-2.1-only

Conversation

What are your thoughts?

Related projects

Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 66.1M
favorite 7,607
Adventure Transportation Utility
Xaero's Minimap
Xaero's Minimap

by thexaero

Displays a map of the nearby world terrain, players, mobs, entities in the corner of your screen. Lets you create waypoints which help you find the locations you've marked.

download 60.9M
favorite 13,668
lock Cookie consent

SkinMC uses cookies to provide functionality and features.