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

Started by Dukeasas on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

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

Joined May 2020
Points:

User statistics:

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

Joined Jun 2017
Points:

User statistics:

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

Joined May 2020
Points:

User statistics:

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