Skip to content

Minescript HUD Addon

This mod adds the ability to draw custom HUD elements in Minescript.

Fabric
Loaders
Fabric
Downloads on Modrinth
2.7K
Followers on Modrinth
4
versions
29
Updated
August 14, 2026Aug 14
Published
in 2026
Example · swipe

At a glance

Runs on Fabric
For Minecraft 1.21.6–1.21.8, 1.21.10–26.1.2
Client only — no need to install it on the server
Latest version — 1.3.0 from August 14, 2026
Requires Minescript and Fabric API
License GPL-3.0-only — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21.6–1.21.8, 1.21.10–26.1.2

Minescript HUD Addon

This mod adds the ability to draw custom HUD elements in Minescript.

For rendering objects in the world, I will be making a seperate mod.

Documentation can be found in the wiki.

Bugs/Features

If you have any suggestions, or found any bugs, please fill out this google form.

currently working on adding in world drawing.


## Features - Draw *text* on the HUD - Draw *rectangles* and gradient rectangles - Render *items* - Render *textures* - Render *custom shapes* - *Animate* all element properties - *Detect* mouse hover and click events - Control *display duration* and *render layers*
## Installation 1. Install Minescript. 2. Place this addon in your mods folder. 3. Launch the game.
## Example ```python from hud_renderer import *

add_text("Hello World",x=10,y=10,color=argb(255,255,255,255),shadow=True,display_duration=5)

<br></br>
## Animations
All HUD elements can be animated using animation functions.
```python
from hud_renderer import *

def move(text:TextObject):
    text.x+=1

_id=add_text("I can MOVE!",x=10,y=10,color=Colors.WHITE,shadow=True,display_duration=5)

animate_text(_id,move)

## Mouse Events All objects can detect mouse hover and click events. ```python from minescript import echo from hud_renderer import *

def hover(text:TextObject,mouse:MouseObject,exited:bool): if (exited): text.color=Colors.WHITE else: text.color=Colors.GREEN

def click(text:TextObject,mouse:MouseObject): echo("Clicked!")

_id=add_text("Click me!",x=10,y=10,color=Colors.WHITE,shadow=True,display_duration=10)

add_mouse_callbacks_and_wait(_id,on_hover=hover,on_click=click)

<br></br>
## Layer System
Elements are rendered in layers.
Elements with higher layer values render above elements with lower layers.
<br></br>
## API Overview
> A more detailed API can be found on the [wiki](https://maksymiblue12.github.io/Minescript-Hud-Addon/).
### Text
 - `add_text(...)`
 - `add_text_with_background(...)`
 - `add_advanced_text(...)`
 - `add_advanced_text_with_background(...)`
 - `animate_text(...)`
 - `animate_text_with_background(...)`

### Rectangles
 - `add_rectangle(...)`
 - `add_rectangle_from_corners(...)`
 - `add_gradient_rectangle(...)`
 - `add_stroked_rectangle(...)`
 - `animate_rectangle(...)`

### Items
 - `add_item(...)`
 - `add_advanced_item(...)`
 - `animate_item(...)`

### Textures
> **Note:** Custom textures must be added by a resource pack in the `assets/minescripthud/textures/gui/sprites/` folder.
 - `add_texture(...)`
 - `add_advanced_texture(...)`
 - `animate_texture(...)`

### Shapes
 - `add_shape(...)`
 - `add_advanced_shape(...)`
 - `animate_shape(...)`
 - `add_line(...)`
 - `add_multiline(...)`
 - `add_triangle(...)`
 - `add_quad(...)`
 - `add_circle(...)`
 - `add_ellipse(...)`

### Anti-Aliased Shapes (with smooth edges)
- `add_anti_aliased_shape(...)`
- `add_advanced_anti_aliased_shape(...)`
- `animate_anti_aliased_shape(...)`
- `add_line_with_thickness(...)`
- `add_anti_aliased_quad(...)`
- `add_anti_aliased_rectangle(...)`
- `add_anti_aliased_rectangle_with_round_corners(...)`
- `get_points_for_circle(...)`
- `add_anti_aliased_circle(...)`
- `get_points_for_ellipse(...)`
- `add_anti_aliased_ellipse(...)`

### Utility functions
 - `argb(...)`
 - `argb_to_int(...)`
 - `alpha_from_int(...)`
 - `add_async_mouse_callbacks(...)`
 - `add_mouse_callbacks_and_wait(...)`
 - `wait_until_removed(...)`
 - `remove_element(...)`
 - `clear()`
 - `suppress_done_message()`

FAQ

How to install Minescript HUD Addon?

Install Fabric for your Minecraft version, download Minescript HUD Addon for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Minescript HUD Addon support?

Minescript HUD Addon has builds for Minecraft 1.21.6–1.21.8, 1.21.10–26.1.2.

Is Minescript HUD Addon needed on the server?

Client only — no need to install it on the server

License and source
GNU General Public License v3.0 onlyfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More