Help to make the mob knockback to a specific key.

Started by Hopzep on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help to make the mob knockback to a specific key.

I want to knockback a target entity that the player is looking at by pressing the "Z" key, but I can only knockback the "nearest entity". Help me please.