Started by
LocalModCreator
on
Topic category: Help with Minecraft modding (Java Edition)
I Have Made A Ranged Item And I Want It So When Your Projectile Hits [In a 15 block radius] You Get Pulled Towards It
Think Of It As A Grappling Hook
The only thing that I could think of right now is that when Projectile hits the ground the player teleports to it. Well if you want this you need to use procedurs. I cant check now what procedure you need to use, but its something to do with: teleport Player x y z. U put this in bullet event - went bullet hits the ground.
My discord if u need more help BlueGamer19#2663
Ive Done That But I Do Want To Have It More Realistic Because Im Making Something Out Of A Game
Subtract the XYZ of the entity with the XYZ of the hit location and times it by a number less than 0.4 and add it to the current velocity of the entity your wanting to pull. Or maybe the other way around, I did this to get the projectile to hone in on the target, so the opposite of what you want, but same principle