Player's rotation case

Started by AndrewHack01 on Sat, 04/23/2016 - 09:26

Topic category: Advanced modding

Last seen on 14:36, 15. Oct 2017
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Player's rotation case
Sat, 04/23/2016 - 09:27 (edited)

Does anyone know how to get player's rotation (a code maybe?) and how to trigger an event if, for example the player is facing north or south?

I'm making a pickaxe that creates a tunnel at player's rotation (Dropping all the items mined)

Please answer me

Thanks

Edited by AndrewHack01 on Sat, 04/23/2016 - 09:27
Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
For get facing try: player
Sat, 04/23/2016 - 11:10

For get facing try: player.getHorizontalFacing()