COWMODSКаталог модов

HUD Lib

A library mod that provides a simple way for other mods to add HUD that can be moved with a visual editor.

Автор: wooferz112 тыс.19обновлён 7 дек. 2025 г.
БиблиотекиУправлениеУтилиты

Описание

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 has no default elements, you will need a mod such as Generic Hud (mentioned below) if you want any features.

Mods using this library

Currently there are 3 mods that uses this library:

The Editor

The editor allows you to reposition and disable any HUD Elements. If you want to hide the Settings button or stop snapping, hold CTRL. The settings menu will allow you to configure each HUD Element, and disable them/reset their position in the 'Generic HUD Options' tab.

GUI Editor

For Developers

Currently no documentation exists, but you can use Generic HUD, Armor HUD or the internal HUD Lib testmod as an example, because they are all open source.

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 has been ported to all 1.21.X versions.

Галерея

HUD Lib EditorFPS Display from Generic HUDHUD Config

Последние версии

Все версии →
release

HUD Lib 1.2.1

1.2.1+1.21.9
7 дек. 2025 г.70,3 тыс.Minecraft: 1.21.9, 1.21.10, 1.21.11fabric
Скачать
release

HUD Lib 1.2.1

1.2.1+1.21.6
7 дек. 2025 г.6,9 тыс.Minecraft: 1.21.6, 1.21.7, 1.21.8fabric
Скачать
release

HUD Lib 1.2.1

1.2.1+1.21.1
7 дек. 2025 г.21,6 тыс.Minecraft: 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5fabric
Скачать
release

HUD Lib 1.2.1

1.2.1+1.21
7 дек. 2025 г.760Minecraft: 1.21fabric
Скачать
Что нового
HUD Lib now supports 1.21
release

HUD Lib 1.2.1

1.2.1+1.20.5
7 дек. 2025 г.461Minecraft: 1.20.5, 1.20.6fabric
Скачать
release

HUD Lib 1.2.1

1.2.1+1.20.4
7 дек. 2025 г.872Minecraft: 1.20.4fabric
Скачать
Что нового
Fixed issue #2
release

HUD Lib 1.2.1

1.2.1+1.20.1
7 дек. 2025 г.5,9 тыс.Minecraft: 1.20.1fabric
Скачать
Что нового
Fixed issue #2
release

HUD Lib 1.2.0

1.2.0+1.21.9
2 дек. 2025 г.567Minecraft: 1.21.9, 1.21.10fabric
Скачать
Что нового
Ported to 1.21.9
release

HUD Lib 1.2.0

1.2.0+1.21.6
12 нояб. 2025 г.768Minecraft: 1.21.6, 1.21.7, 1.21.8fabric
Скачать
Что нового
Updated code to avoid using deprecated apis
release

HUD Lib 1.2.0

1.2.0+1.21.1
10 нояб. 2025 г.1,3 тыс.Minecraft: 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5fabric
Скачать
Что нового
Updated to 1.21.1 (up to 1.21.5)