I am looking for a way in the MC:EE code editor to determine the direction in which the player is currently looking and to process this direction as a value. For example: "North" or "South-East" as the value of a variable. Does anyone have an idea for querying this via the Make Code Editor or Python?
The use-case is as follows: We are currently programming a "magic" sword that, when I use it (strike it), draws lightning bolts across the landscape in a chain. The problem is, how does the code editor know in which direction I am looking or striking with the sword?
Please sign in to leave a comment.