Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
HUD Lib

HUD Lib

Provides a simple way for other mods to add HUD that can be moved with a visual editor.

671
3
Library
Management
Utility

Compatibility

Minecraft: Java Edition

1.20.1

Platforms

Fabric

Supported environments

Client-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source
Donate on Ko-fi

Creators

wooferz
wooferz Member

Details

Licensed MIT
Published 7 months ago
Updated 7 months ago
DescriptionGalleryChangelogVersions

Hud Lib

This mod is a library for other mods to register their own HUD Elements. These HUD Elements has inbuilt repositioning, anchoring, and configuration. They can all be edited after pressing RIGHT SHIFT (Can be rebinded in Key Binds). This mod only adds the FPS Display HUD Element.

Mods using this library

Currently only 1 mod exists that uses this library:

  • Generic HUD

The Editor

The editor allows you to reposition and disable any HUD Elements. If you want to hide the Settings button or stop center snapping hold CTRL.

GUI Editor

For Developers

Currently no documentation exists, it will be released soon and so will also create other mods which use HUD Lib which will be open source, this can be used to create your own.

What is offered in the library?

  • A simple way to render HUD elements, using DrawContext, when rendering it you are also given an X and a Y coordinate which is where on the screen it should be rendered.
  • With minimal extra setup they can be repositioned in the editor.
  • The repositioning also anchors to the screen (e.g. If you put it in the top right corner, it will stay there with any screen size)
  • A way to register your own configuration in the "HUD Lib" configuration screen, this is done with YetAnotherConfigLib (YACL)
  • They can also be hidden to only show in the editor, or completely disabled in the configuration.

Versions

The mod will eventually be ported to all 1.20.X versions and 1.21.X.

Modrinth is open source.

main@396f737

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.