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

Started by TheDuckKnight_Mc on Thu, 12/17/2020 - 18:05

Topic category: Help with modding (Java Edition)

Last seen on 08:24, 14. Nov 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How does one send the player in the direction he's looking?
Thu, 12/17/2020 - 18:05

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.

Last seen on 19:07, 12. May 2022
Joined Nov 2015
Points:

User statistics:

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

Last seen on 08:24, 14. Nov 2021
Joined Feb 2020
Points:

User statistics:

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

Last seen on 08:24, 14. Nov 2021
Joined Feb 2020
Points:

User statistics:

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

Last seen on 08:24, 14. Nov 2021
Joined Feb 2020
Points:

User statistics:

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

figured**

Last seen on 08:24, 14. Nov 2021
Joined Feb 2020
Points:

User statistics:

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

nevermind i did it

Last seen on 10:11, 22. Dec 2020
Joined Oct 2020
Points:

User statistics:

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

Last seen on 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

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

The image is still there...

Last seen on 14:17, 10. Dec 2021
Joined Jan 2020
Points:

User statistics:

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

Can you tell me how you did it?

Last seen on 14:17, 10. Dec 2021
Joined Jan 2020
Points:

User statistics:

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

I mean to make it go further.

Last seen on 08:24, 14. Nov 2021
Joined Feb 2020
Points:

User statistics:

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

Last seen on 14:17, 10. Dec 2021
Joined Jan 2020
Points:

User statistics:

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

Thanks a lot!

Last seen on 09:54, 12. Jan 2022
Joined Nov 2021
Points:

User statistics:

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

Last seen on 16:34, 19. May 2022
Joined Jan 2021
Points:

User statistics:

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

How did you make it work up?