How do I make an attack depending on how the player moves the camera?

Started by Gracz on

Topic category: Help with modding (Java Edition)

Last seen on 13:26, 3. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an attack depending on how the player moves the camera?

For example, if a player during an attack moves the camera from the top down, then there was one attack. If the player moves the camera from left to right, then another attack. If from bottom to top, another attack, and so on

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How about creating a codeā€¦
Wed, 06/01/2022 - 14:59

How about creating a code that checks your head rotation before and compares it with it's rotation durning left mouse click with certain item (sword) and depending on that choosing which attack to be activated ?