how to launch a projectile relative to where the player's looking

Started by ICanDoodle on Tue, 07/20/2021 - 00:04

Topic category: Help with modding (Java Edition)

Last seen on 00:52, 15. Aug 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to launch a projectile relative to where the player's looking
Tue, 07/20/2021 - 00:04

the title explains it all, ive tried doing this for almost 5 months and still can't figure it out (i.e. if you have fire charge in your hand you throw it in the direction the player's looking)

Last seen on 22:05, 17. Sep 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
To give a quick answer: You…
Tue, 07/20/2021 - 01:49

To give a quick answer:
You might be able to disguise a ranged weapon as a fire charge with a single durability point and the weapon launches a fire charge.
(You'd need to setup a procedure that replaces all the fire charges with the ranged weapon fire charge.)
Is this what you are looking for?