X3 Damage Indicators

Description

X3 Damage Indicators (X3_dmg)

A lightweight, pixel-perfect damage indicator mod for Luanti (formerly Minetest) that displays dynamic, floating damage numbers whenever players or entities take damage. Features

Pixel-Perfect Alignment: Renders damage numbers using individual 32x32 pixel digit textures merged into a dynamic 1:1 canvas to eliminate stretching, warping, or billboard separation.

Color-Coded Damage: Automatically colors damage numbers based on the amount of damage dealt:

    Green: Light damage (< 10)

    Yellow: Moderate damage (10 - 29)

    Orange: High damage (30 - 99)

    Red: Critical damage (100 - 999)

    Purple: Massive damage (1000+)

Smooth Animation: Features natural float-up mechanics with gentle gravity, slight horizontal variance, and custom glowing effects (glow = 14).

Entity & Player Support: Seamlessly hooks into both player health changes (register_on_player_hpchange) and mob punch handlers (registered_entities).

Zero Dependencies: Runs out of the box on any game or subgame without requiring third-party libraries.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

1.0.0

Download

Luanti 5.0+

2026-09-28 14:50 UTC

1.0.0 🔗

Release Notes - v1.0.0 What's New

Pixel-Perfect Particle Rendering: Implemented dynamic square canvas composite textures ([combine) to ensure damage digits maintain their native 1:1 aspect ratio without stretching, warping, or squeezing.

Dynamic Color Coding: Added automatic hex colorization for floating numbers based on the damage value dealt:

    Green: < 10 HP

    Yellow: 10 - 29 HP

    Orange: 30 - 99 HP

    Red: 100 - 999 HP

    Purple: 1000+ HP

Universal Damage Hooks: Full support for both player health reductions (minetest.register_on_player_hpchange) and mob/entity damage via custom punch overrides (minetest.registered_entities).

Smooth Floating Physics: Numbers float upward with slight randomized horizontal velocity, gentle gravity decay, 2-second expiration time, and full emission glow (glow = 14).

Zero-Dependency Mod Structure: Fully self-contained mod configured for Luanti/Minetest 5.0.0+ across any subgame or game mode.

Dual Licensing: Code released under the MIT License; media assets licensed under CC BY-SA 4.0.
All releases

Information

Provides

x3_dmg

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
x3_dmg
Languages
English
License
MIT for code,
CC-BY-SA-4.0 for media.
Maintenance State
Beta
Added
2026-09-28 14:48 UTC
Maintainers
chimichurriX3