All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Minescript HUD Addon

Minescript HUD Addon

by maksymiblue12 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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

    
    from hud_renderer import *

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

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

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)


Layer System

Elements are rendered in layers. Elements with higher layer values render above elements with lower layers.

API Overview

A more detailed API can be found on the wiki.

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

How to Install Minescript HUD Addon (Mod)

Minescript HUD Addon by maksymiblue12 is verified for Fabric across Minecraft versions 1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 26.1, 26.1.1, 26.1.2 (latest release: 1.3.0, file size: 127 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.10, 1.21.11, 1.21.6, 1.21.7, 1.21.8, 26.1, 26.1.1, 26.1.2) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Minescript HUD Addon file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Fabric
4mo ago 1
1.21.x
Fabric
5mo ago 1
1.21.x
Fabric
5mo ago 1
26.1.x
Fabric
5mo ago 1
26.1.x
Fabric
5mo ago 1
1.21.x
Fabric
6mo ago 1
1.21.x
Fabric
6mo ago 1
1.21.x
Fabric
7mo ago 1
26.1.x
Fabric
7mo ago 1
1.21.x
Fabric
7mo ago 1
1.21.6
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.6
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.6
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.6
Fabric
8mo ago 1
1.21.6
Fabric
8mo ago 1
1.21.x
Fabric
8mo ago 1
1.21.11
Fabric
9mo ago 1
[1.3.0] Minescript HUD Addon 1.3.0 by maksymiblue12 on Aug 14, 2026
Download
# Elements
Added a new Anti-Aliased Shape (with smooth edges).

# Functions
11 new functions:
  • 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
[1.2.1] Minescript HUD Addon 1.2.1 by maksymiblue12 on Jun 22, 2026
Download
Fixed bug where game would crash when display_duration ran out.
[1.2.1] Minescript HUD Addon 1.2.1 by maksymiblue12 on Jun 22, 2026
Download
Fixed bug where game would crash when display_duration ran out.
[1.2.1] Minescript HUD Addon 1.2.1 by maksymiblue12 on Jun 22, 2026
Download
Fixed bug where game would crash when display_duration ran out.
[1.2.0] Minescript HUD Addon 1.2.0 by maksymiblue12 on Jun 16, 2026
Download
# THIS VERSION HAS A SEVERE BUG! PLEASE USE NEWER VERSIONS

# Functions
3 new functions:
  • add_async_mouse_callbacks
  • add_mouse_callbacks_and_wait
  • wait_until_removed

# Hover and Click
You can now add callback functions that run whenever the mouse hovers over an object or clicks an object.
[1.2.0] Minescript HUD Addon 1.2.0 by maksymiblue12 on Jun 13, 2026
Download
# THIS VERSION HAS A SEVERE BUG! PLEASE USE NEWER VERSIONS

# Functions
5 new functions:
  • get_screen_width()
  • get_screen_height()
  • add_async_mouse_callbacks
  • add_mouse_callbacks_and_wait
  • wait_until_removed

# Hover and Click
You can now add callback functions that run whenever the mouse hovers over an object or clicks an object.

# Bugs
Fixed bug where scaling would move text.
Fixed bug where update_item would throw an error.
Made BatchAnimator **a lot** faster.
[1.2.0] Minescript HUD Addon 1.2.0 by maksymiblue12 on Jun 12, 2026
Download
# THIS VERSION HAS A SEVERE BUG! PLEASE USE NEWER VERSIONS

# Functions
3 new functions:
  • add_async_mouse_callbacks
  • add_mouse_callbacks_and_wait
  • wait_until_removed

# Hover and Click
You can now add callback functions that run whenever the mouse hovers over an object or clicks an object.
[1.1.6] Minescript HUD Addon 1.1.6 by maksymiblue12 on Apr 29, 2026
Download
Fixed tiny bug where layer for TextWithBackgroundObject wouldn't update
[1.1.0] Minescript HUD Addon 1.1.0 by maksymiblue12 on Apr 29, 2026
Download
Added support for versions 26.1 and 26.1.2
[1.1.5] Minescript HUD Addon 1.1.5 by maksymiblue12 on Apr 17, 2026
Download
Made BatchAnimator **a lot** faster.

Added 2 new functions:
  • get_screen_width()
  • get_screen_height()

Fixed bug where scaling would move text.

Created this cool hud based on [RPG-Hud](https://modrinth.com/mod/rpg-hud) using my mod. Code can be found on [GitHub](https://github.com/maksymiblue12/modern-hud-python).
[1.1.1] Minescript HUD Addon 1.1.1 by maksymiblue12 on Apr 11, 2026
Download
Fixed hud_renderer.py not loading.
[1.1.2] Minescript HUD Addon 1.1.2 by maksymiblue12 on Apr 11, 2026
Download
Fixed hud_renderer.py not loading.
[1.1.4] Minescript HUD Addon 1.1.4 by maksymiblue12 on Apr 11, 2026
Download
Fixed hud_renderer.py not loading.
[1.1.3] Minescript HUD Addon 1.1.3 by maksymiblue12 on Apr 08, 2026
Download
Fixed batch_update.
[1.1.0] Minescript HUD Addon 1.1.0 by maksymiblue12 on Apr 08, 2026
Download
# Renamed python module
Renamed python module from `draw_text to hud_renderer`!

# Added shapes
  • lines
  • multilines
  • triangles
  • quads
  • circles
  • ellipses
  • custom shapes (hard to use)

# Added batch animator
Added batch animator that can run multiple animations at the same time!

# Info
If you have any suggestions, or found any bugs, please fill out [this google form](https://docs.google.com/forms/d/e/1FAIpQLSdu7E3htzYRKgDzWqmLsKmJvipLt042Wlo777EFCwW-H2KP1Q/viewform).
Minescript HUD Addon Icon
Download Minescript HUD Addon
Select game version
Select platform