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)

Active 3 years ago
Joined Feb 2020
Points:
803

User statistics:

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

Active 2 years ago
Joined Nov 2015
Points:
916

User statistics:

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

Active 3 years ago
Joined Feb 2020
Points:
803

User statistics:

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

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

Active 3 years ago
Joined Feb 2020
Points:
803

User statistics:

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

I gured out how to move the player up

Active 3 years ago
Joined Feb 2020
Points:
803

User statistics:

  • Modifications: 0
  • Forum topics: 27
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 58
figured**
Fri, 12/18/2020 - 07:21

figured**

Active 3 years ago
Joined Feb 2020
Points:
803

User statistics:

  • Modifications: 0
  • Forum topics: 27
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 58
nevermind i did it
Fri, 12/18/2020 - 13:10

nevermind i did it

Active 4 years ago
Joined Oct 2020
Points:
641

User statistics:

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

Active 3 years ago
Joined Nov 2018
Points:
980

User statistics:

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

The image is still there...

Active 2 years ago
Joined Jan 2020
Points:
642

User statistics:

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

Can you tell me how you did it?

Active 2 years ago
Joined Jan 2020
Points:
642

User statistics:

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

I mean to make it go further.

Active 3 years ago
Joined Feb 2020
Points:
803

User statistics:

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

Active 2 years ago
Joined Jan 2020
Points:
642

User statistics:

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

Thanks a lot!

Active 3 years ago
Joined Nov 2021
Points:
563

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
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."

Active 7 months ago
Joined Jan 2021
Points:
847

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
How did you make it work up?
Sat, 04/02/2022 - 01:15

How did you make it work up?