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

Started by Dukeasas on Mon, 05/11/2020 - 06:34

Topic category: Help with modding (Java Edition)

Last seen on 06:36, 5. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is there a procedure that can push entities in a certain direction?
Mon, 05/11/2020 - 06:34

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:
  • Tracker tickets:
  • 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 16:32, 23. Jul 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Use the teleport block. The…
Mon, 05/11/2020 - 18:21

Use the teleport block.

The Player's direction is obtainable too.

Last seen on 06:36, 5. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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)