Skip to content

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. NeoForge 1.21.1 only for now, Forge backport might be considered later.

License

Notifications You must be signed in to change notification settings

VladisCrafter/Create-IDLX

Repository files navigation

C: IDLX mod icon

Create: Improved Display Link Experience

Available on Modrinth Available on GitHub Available on CurseForge

Available For Neoforge Won't support Fabric

Available For 1.21.1 License MIT


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.


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).

Post-Production

My first Minecraft mod, by the way!

About

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. NeoForge 1.21.1 only for now, Forge backport might be considered later.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages