TargetEventBackport

Add cancelable MobChangeTargetEvent.

TargetEventBackport for Minecraft 1.16.5 (Forge)

Overview

TargetEventBackport solves a limitation in Minecraft 1.16.5 Forge where the LivingSetAttackTargetEvent is not cancelable. This prevents modders from controlling mob targeting behavior—a feature freely available in modern versions (1.18.2+). This mod bridges the gap by introducing a fully cancelable event, restoring functionality parity with newer Minecraft editions.

Key Features

  • �️ Adds MobChangeTargetEvent:
    A cancelable event fired whenever a mob changes its attack target (via Mob#setTarget).
  • ⚙️ Seamless Integration:
    Uses Mixin injections to post the event without altering vanilla behavior when unused.
  • ✨ High-Version Parity:
    Mimics the behavior of Forge's LivingSetAttackTargetEvent in 1.18.2+, enabling:
    • Canceling unwanted targeting (e.g., stop creepers targeting players).
    • Dynamically overriding targets (e.g., redirect mobs to custom entities).

Well, we are including MixinExtras for compatibility reason so the jar file is rather big

TargetEventBackport Team

profile avatar
  • 74
    Followers
  • 141
    Projects
  • 182.5M
    Downloads

唯假期与 Naruto 不可辜负。

More from _nArUTo_View all

  • NarutoLoading project image

    NarutoLoading

    Play video and audio during loading overlays, screens, and backgrounds.

    • 1.5K
    • December 3, 2026
  • Lighto project image

    Lighto

    Client-side colored block lighting for Minecraft — hue only, so shaders keep working.

    • 81
    • December 2, 2026
  • StructureOverlapless project image

    StructureOverlapless

    Prevents structures from overlapping during world generation using a first-come-first-served system. Structures that would conflict with existing ones are simply not generated.

    • 2.6M
    • November 30, 2026
  • NarutoUI project image

    NarutoUI

    A Modern UI configuration screen library for Minecraft client mods.

    • 499
    • November 29, 2026
  • NarutoLoading project image

    NarutoLoading

    Play video and audio during loading overlays, screens, and backgrounds.

    • 1.5K
    • December 3, 2026
  • Lighto project image

    Lighto

    Client-side colored block lighting for Minecraft — hue only, so shaders keep working.

    • 81
    • December 2, 2026
  • StructureOverlapless project image

    StructureOverlapless

    Prevents structures from overlapping during world generation using a first-come-first-served system. Structures that would conflict with existing ones are simply not generated.

    • 2.6M
    • November 30, 2026
  • NarutoUI project image

    NarutoUI

    A Modern UI configuration screen library for Minecraft client mods.

    • 499
    • November 29, 2026