Data Packs Tool

Facing API

  • 2.2k views 0 today
  • save_alt 34 downloads
Compatibility
Minecraft 1.15
to version
Minecraft 1.17
Changes include
  • Functions
  • 2
  • 2
TheFuriousBird
Lvl 30Artisan 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

More like this

  Have something to say?

Welcome