Skip to content

v1.4.0 — Minecraft 1.21.11 / Fabric

Choose a tag to compare

@Eneryleen Eneryleen released this 05 Jul 00:06

Port from NeoForge to Fabric, targeting Minecraft 1.21.11.

Requirements:

  • Minecraft Java Edition 1.21.11
  • Fabric Loader 0.19.3 or newer
  • Fabric API 0.141.4+1.21.11 or 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 your mods/ folder
  • damage-indicator-1.4.0-mc1.21.11-sources.jar — source attachment for developers (do NOT put in mods/)

Built with: JDK 21, Gradle 9.5.1, fabric-loom-remap 1.17, official Mojang mappings.

Porting notes:

  • Damage event: NeoForge LivingDamageEvent.Post → Fabric ServerLivingEntityEvents.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: RenderLevelStageEventWorldRenderEvents.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.