• 注册
  • MOD模组 MOD模组 关注:34 内容:16399

    Pig Pen Cipher (Pig Pen Cipher)

  • 查看作者
  • 打赏作者
  • 当前位置: SodaMC > MOD模组 > 正文
  • 潮涌核心
    反派

    Pig Pen Cipher (Pig Pen Cipher)


    This mod adds the Pig Pen Cipher to Minecraft as a new font, allowing players to encode and decode messages using the Pigpen Cipher. It 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 that use the English alphabet.

    Pig Pen Cipher (Pig Pen Cipher)

    User Guide

    Using the Cipher

    The Pigpen Cipher, also known as a tic-tac-toe cipher, uses a key that looks like a tic-tac-toe board to encode/decode characters.

    To encode a character using the Pigpen Cipher, you replace the character with the lines that surround it according to the key. For example, the letter A is represented as a backwards L shape, and E is represented as a square. A symbol with a dot inside requires using the version on the right; for instance, a square with a dot inside it represents the letter N. The eight lower characters follow similar rules, for instance, T is represented as an arrow pointing right, and W is represented as an arrow pointing down with a dot inside it. With some practice, the cipher becomes easier to understand.

    Commands

    If this mod is installed on a Forge server, players can utilize custom commands to interact with the Pigpen Cipher:

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

    The mod allows the use of the Pigpen Cipher in any vanilla command that allows specifying a text component, by defining the font ID in the text properties. For example, it can be used in the give command or 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"}
    已复制!

    截图:

    Pig Pen Cipher (Pig Pen Cipher)

    来自Modrinth

    PigPen-neoforge-1.21.1-21.1.2

    pigpen-neoforge-1.21.1-21.1.2.jar下载21.1.2#Release
    展开
    版本: 21.1.2
    支持游戏: 1.21.1
    类型: NeoForge
    Release
    下载次数: 237

    PigPen-forge-1.21.1-21.1.2

    pigpen-forge-1.21.1-21.1.2.jar下载21.1.2#Release
    展开
    版本: 21.1.2
    支持游戏: 1.21.1
    类型: Forge
    Release
    下载次数: 74

    PigPen-fabric-1.21.1-21.1.2

    pigpen-fabric-1.21.1-21.1.2.jar下载21.1.2#Release
    展开
    版本: 21.1.2
    支持游戏: 1.21.1
    类型: Fabric Quilt
    Release
    下载次数: 557

  • 收录

  • 请登录之后再进行评论

    登录
  • Soda任务 图片
  • 偏好设置
  • 主题
  • 帖子间隔 侧栏位置: