v1.4.0 — Minecraft 1.21.11 / Fabric
Port from NeoForge to Fabric, targeting Minecraft 1.21.11.
Requirements:
- Minecraft Java Edition
1.21.11 - Fabric Loader
0.19.3or newer - Fabric API
0.141.4+1.21.11or newer - Cloth Config (Fabric)
21.11.153+— optional, for the in-game settings screen - ModMenu
17.0.0+— optional, for the config button
Install the mod on both server and client (the server detects damage, the client draws the numbers).
Downloads:
damage-indicator-1.4.0-mc1.21.11.jar— drop into yourmods/folderdamage-indicator-1.4.0-mc1.21.11-sources.jar— source attachment for developers (do NOT put inmods/)
Built with: JDK 21, Gradle 9.5.1, fabric-loom-remap 1.17, official Mojang mappings.
Porting notes:
- Damage event: NeoForge
LivingDamageEvent.Post→ FabricServerLivingEntityEvents.AFTER_DAMAGE. Known limits of the Fabric event: the number excludes armor/enchantment reduction, and no number is shown for a killing blow. - Networking: NeoForge payload registrar → Fabric
PayloadTypeRegistry+ClientPlayNetworking; receiver runs on the render thread (no re-scheduling needed). Recipients: players tracking the entity + the entity itself, deduplicated. - Renderer:
RenderLevelStageEvent→WorldRenderEvents.AFTER_ENTITIES(camera-relative coordinates, shared world vertex consumers, no manual flush). - Config screen wired through ModMenu; cloth-config is a soft dependency — without it the mod runs fine and the config stays editable as JSON.
- NeoForge version remains available at tag
v1.3.0-neoforge-mc26.1.2.