Check the player's direction

Started by maxitime on

Topic category: Help with modding (Java Edition)

Last seen on 22:00, 12. Oct 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check the player's direction

I'm making a mod that when you right click an item, it removes a large area of blocks, the problem is that it only works in a specific direction (south) i want to check if the player is facing north, east, west or south so that it removes the area of blocks based on the direction the player is facing

Last seen on 03:16, 8. Jun 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have been having a similar…
Sat, 07/23/2022 - 00:27

I have been having a similar problem, but with a wand that shoots shulker orbs. I have been searching for a solution for hours, but I have found nothing. I have tried using the xyz offset direction blocks, but they do not work well and make things go in the opposite direction. This means that there is a way to detect the players direction, but it somehow needs to be reversed. I'll add more if I find anything else.

Last seen on 03:16, 8. Jun 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Put everything inside of a…
Sat, 07/23/2022 - 00:56

Put everything inside of a for each direction as direct integer do block. 

Last seen on 22:00, 12. Oct 2023
Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you send me a screenshot…
Sun, 07/24/2022 - 21:22

can you send me a screenshot? i'm still confused