How does one send the player in the direction he's looking?

Started by TheDuckKnight_Mc on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How does one send the player in the direction he's looking?

Title says it all, I made a ranged item that when used, it sends the player in the direction they are looking. Only problem is, I don't know how to do that. Any of my attempts have ended in the game crashing because I'm that bad at modding. Any and all help is appreciated.

Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I used this to create an…
Thu, 12/17/2020 - 18:59

I used this to create an item that gives you a "dash" ability, however it doesn't move you up or down, only horizontally.

Movement Procedure

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It works, but is there any…
Fri, 12/18/2020 - 07:04

It works, but is there any way to make it go further?

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I gured out how to move the…
Fri, 12/18/2020 - 07:16

I gured out how to move the player up

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The image link got nuked it…
Tue, 12/22/2020 - 10:14

The image link got nuked it seems, can I also learn how is this possible

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The image is still there...
Tue, 12/22/2020 - 14:01

The image is still there...

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you tell me how you did…
Fri, 01/22/2021 - 21:41

Can you tell me how you did it?

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean to make it go further.
Fri, 01/22/2021 - 21:46

I mean to make it go further.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Multiply everything in the x…
Sat, 01/23/2021 - 09:36

Multiply everything in the x and z by some ammount, I recommend 3. Put the ENTIRE expression from x into multiplication, same for z.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot!
Sun, 01/24/2021 - 10:38

Thanks a lot!

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you exactly make it…
Wed, 12/22/2021 - 16:53

How do you exactly make it go further? I kinda dont uderstand what you meant on "Put the ENTIRE expression from x into multiplication, same for z."