help with procedure to summon moving entity based on player direction

Started by Itsmetheking on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help with procedure to summon moving entity based on player direction

I am trying to create a procedure that will shoot a projectile (eg fireball or egg) in the direction the player is facing when the player right-clicks a custom item.

Currently, my procedure shoots a fireball in odd directions that aren't where the player is facing (I was using the look x y and z position with raytrace blocks in a spawn block with vx vy and vz).

Does anyone know how I can make it shoot it in the correct direction?

Thanks

     -Itsmetheking

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, ill try that.
Wed, 08/11/2021 - 17:33

Ok, ill try that.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you use those blocks?…
Sat, 10/02/2021 - 16:40

how do you use those blocks?