Data Packs Tool

Facing API

  • Functions
  • 2,216 views • 1 today
  • 33 downloads • 0 today
  • 2
  • 2
TheFuriousBird
Level 30 : Artisan Birb
2

Facing API!

An API for datapack developpers to get the players facing.

Download Here!


I created this for my next datapacks but you can use it if you need it.

1. Getting the players cardinal facing.


The name of the scoreboard is "playerfacing" and it has 4 different values:

1 --> south
2 --> west
3 --> north
4 --> east

2. Getting the players global facing (cardinal + up and down).



The name of the scoreboard is "trueplayerfacing" and it has 6 different values:

1 --> south
2 --> west
3 --> north
4 --> east
5 --> down
6 --> up
CompatibilityMinecraft 1.15
toMinecraft 1.17
Tags

  Have something to say?

Welcome