Unable to Damage Raytraced Mob

Started by kingmoddingg on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unable to Damage Raytraced Mob

I'm trying to replicate the spear mechanic in 1.20.1 Forge. It's supposed to be gathering player velocity and data and using that to damage mobs on right click, instead, it is using the player data, recognizing the mobs, but dealing the damage to the player instead of the ray traced mobs. I have tried messing around with source entity and the multiple entity types but it fails on build unless Event/target entity is used instead.