Pull Player Toward Projectile

Started by LocalModCreator on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pull Player Toward Projectile

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

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The only thing that I could…
Mon, 05/09/2022 - 06:25

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

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ive Done That But I Do Want…
Mon, 05/09/2022 - 18:36

Ive Done That But I Do Want To Have It More Realistic Because Im Making Something Out Of A Game

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Subtract the XYZ of the…
Thu, 06/16/2022 - 02:24

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