Is there a procedure that can push entities in a certain direction?

Started by Dukeasas on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 month ago
Joined May 2020
Points:
597

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Is there a procedure that can push entities in a certain direction?

Hello! I am trying to create a simple procedure that pushes the entities in the direction that the player looking at, kind of like a force push. Planing on using the entity direction procedure. any advice that How can I actually push them?

Thank you!

Active 4 years ago
Joined May 2020
Points:
628

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
Hmm; i think you can just…
Mon, 05/11/2020 - 08:01

Hmm; i think you can just get all the velocities of the player and set the velocities of the entity to the same; then the entity would move parallel to you in the same direction; only a problem, if your walking and looking are not the same direction

Active 2 years ago
Joined Jun 2017
Points:
892

User statistics:

  • Modifications: 1
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 167
I have this problem too, we…
Mon, 05/11/2020 - 11:46

I have this problem too, we can push entities in x,y,z direction but I need the player's direction

Active 1 month ago
Joined May 2020
Points:
597

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
This might be a stupid…
Sun, 05/17/2020 - 23:22

This might be a stupid question but how do I target the entities around player in the radius of say 10? currently I can only target the player (meaning I will get shot to the direction that I am looking at)