Help needed: get players direction + 8 in that direction

Started by Darth Feanor on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help needed: get players direction + 8 in that direction

Im trying to make a procedure that will check what direction i am facing, then generate particles in that direction for about 8 blocks. I have searched around on the site and have not found a topic that actually has any help in it, so I am asking here.

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the entity direction…
Sun, 03/29/2020 - 22:16

Use the entity direction procedure blocks. NORTH is the negative Z axis, SOUTH is the positive Z axis, EAST is the positive X axis, and WEST is the negative X axis. So if the entity is looking the north, you will spawn you particles at x y z - 8. If you looking the SOUTH, you will spawn particles at x y z + 8, EASt x + 8 y z, and WESt at x - 8 y z.

if you don't know how soemthing works, make some tests and  researches.