Started by 
kingmoddingg
 on 
    Topic category: Help with Minecraft modding (Java Edition)
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. 
someone else was making something like this,
https://mcreator.net/forum/120034/how-do-i-do