Pull Player Toward Projectile

Started by LocalModCreator on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Oct 2021
Points:
443

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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

Active 1 year ago
Joined May 2022
Points:
341

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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

Active 2 years ago
Joined Oct 2021
Points:
443

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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

Active 10 months ago
Joined May 2022
Points:
328

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 28
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