跳到正文

Create: Display Regex

作者:niujiao1121

Adds configurable regex text replacement to Create Fly Display Links.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Create: Display Regex

Create: Display Regex is a small Fabric addon for Create Fly that adds configurable regular-expression replacement to Display Links.

It lets you modify the text produced by a Display Link before it is sent to its display target, without changing the original source data.

For example:

Input:       AAA BBB CCC
Pattern:     ^\S+\s+
Replacement:
Output:      BBB CCC

Features

  • Adds a Regex configuration button to the Display Link screen
  • Supports Java regular expressions
  • Separate Pattern and Replacement fields
  • Enable or disable processing per Display Link
  • Live validation for invalid regex patterns and replacement expressions
  • Supports capture groups such as $1 and $2
  • Works with normal Display Link text output and flap displays
  • Stores settings inside the Display Link’s existing configuration
  • Does not modify package addresses, inventories, or other source data

Example uses

Remove the first space-separated section:

Pattern: ^\S+\s+

Keep only the final section:

Pattern: ^.*\s+

Replace spaces with separators:

Pattern: \s+
Replacement:  - 

Remove numbers:

Pattern: \d+

Requirements

  • Minecraft 26.2
  • Fabric Loader 0.19.3+
  • Fabric API 0.152.0+26.2
  • Create Fly 6.0.9 build 1 or compatible 6.0.x version
  • Java 25

The mod is intended for both client and server. The server must have the mod installed, and clients that want to configure regex rules should install it as well.

Notes

Regex processing affects only the text sent to the display target. The underlying source block and its data remain unchanged.

Invalid rules are rejected by the configuration screen, and invalid runtime replacements fall back to the original text instead of modifying the source data.

常见问题

Create: Display Regex 支持哪些 Minecraft 版本?

Create: Display Regex 支持 Minecraft Java 版 26.2,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Create: Display Regex 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分