跳到正文

Create: Improved Display Link Experience

作者:VladisCrafter

Sprucing up the functionality of Display Links from Create mod

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。
C: IDLX mod icon

Create: Improved Display Link Experience

Available on Modrinth Available on CurseForge Available on GitHub Help me Translate Available For Neoforge Won't support Fabric Available For 1.21.1 License MIT


Please downgrade your NeoForge to 21.1.233 if you are experiencing crashes on startup. Due to technical reasons I, as of now, sadly cannot finish and release the update that includes a fix of said issue. Apologies for the inconvenience.


The project description is not up to date at the moment. While it’s going through total rework, check out the GitHub Changelog or the Modrinth Changelog for details about latest additions.


Create: Improved Display Link Experience (C: IDLX) is a little Quality-of-Life add-on for Create mod aimed at sprucing up some of Display Link features, mainly the underrated Attached Label option.


Features

Placeholders for the Attached Label

The way Create mod currently handles displaying information (aka data) with the attached label is by simply concatenating them with a space: It’s a simple way, but thus a severely limiting one in terms of customization.

IDLX showcase 1

This add-on pushes the boundaries apart by introducing the $ and {} placeholders (aka specifiers). Placing one (or more) marks the place where the information string should be inserted. In short, the Attached Label can now act like a formatted string!

IDLX showcase 2

You can utilize as many placeholders as you want in one string. Mixing both types of them doesn’t cause any issues as well!

IDLX showcase 3

If you need to insert a $ character literally (same applies to {}), without it turning into a placeholder, use backslash-escaping on it.

IDLX showcase 4

In case of no unescaped placeholders present in the label altogether, default (base Create’s) concatenation will be applied.

IDLX showcase 5

Lastly, there’s a new hover-on button that displays a Placeholders Usage Guide tooltip containing all the abovementioned.

IDLX showcase (tooltip)

Its last string displays which placeholders are active (available to use in this world/server, which is specified by the server config of the mod).

IDLX showcase (tooltip)

(A .webp version if the one above doesn’t play properly)

IDLX showcase (tooltip)


Config

C: IDLX has a proper Create-styled config for both the client (visuals) and the server (per-world).

Client settings

  • Enable Guide Buttons: toggling that off will hide the abovementioned hover-on button in the Display Link interface.
  • Tooltip Customization:
    • Enable (Active Placeholders / Progress Bar Support) Tooltip: those two add their additional strings into the Placeholders Usage Guide tooltip, that change the text, reflecting the states of their respective config options in Server settings.

Server settings

  • Hide Escaping Of Disabled Placeholders: by default, when a disabled placeholder is escaped, the backslash stays visible as if placed before a regular character; enable to make it get hidden like if it did its job;
  • Enable Crude Progress Bar Support: currently the progress bar characters are being rendered incorrectly (appear squashed together) if used with placeholders, so the support for this display format is disabled altogether by default (see Known Issues).
  • Placeholders Availability:
    • Enable (Dollar Sign / Curly Brackets) Placeholder: with those two it is possible to limit the placeholder functionality to only one option – the Dollar Sign or the Curly Brackets respectively – or disable the feature altogether by ticking both as off (affects the last string of the Placeholders Usage Guide tooltip);

Known Issues

Essentially C: IDLX provides a single flap display section with default formatting options, unlike Create that makes two for the label (default formatting) and the value (formatting specific to its display format) respectively. The consequence of the first method is that the progress bar characters are being rendered as literal characters (non-wide), and thus appear squashed together. Fixing that would involve rewriting the code to instead generate an array of sections. I started working on it but didn’t have time to finish after running into numerous issues, and decided to postpone it for when I get more time on my hands. Currently, placeholders support for the progress bar is put behind config (off by default).

If anybody has the will to help me with this issue, I would appreciate the contribution very much.


Porting Plans

C: IDLX is planned to be backported to Forge 1.20.1. However I currently can not say exactly when that will happen.


Credits

Mod Development

  • @LIUKRAST and @serverside-swzo for valuable Mixin advices at the early stage of C: IDLX development;
  • GG_Gnom (gg_gnom on Discord) for testing the mod (literally the only case of testing this mod I know).

Mod Page Decoration

Translation

My first Minecraft mod, by the way!

常见问题

Create: Improved Display Link Experience 支持哪些 Minecraft 版本?

Create: Improved Display Link Experience 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Create: Improved Display Link Experience 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

VladisCrafter 的其他作品

查看全部 →