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.
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.
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.
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Compatibility
Minecraft: Java Edition
1.20.1
Platforms
Fabric
Supported environments
Creators
Details
Licensed MIT
Published last month
Updated last month