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

Started by Dukeasas on

Topic category: Help with modding (Java Edition)

Last seen on 07:21, 6. Oct 2021
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!

Last seen on 21:15, 8. Jan 2021
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

Last seen on 09:48, 26. Sep 2022
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

Last seen on 07:21, 6. Oct 2021
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)