This script is extremely simple to use yet extremely useful for developers!
He has a unique function, that allows you to get the face of the block targeted by a player.
This functionality, unavailable from basic expressions or effects of Skript or its addons, can be very useful.
In order to achieve this result, this script recalculates a 3D geometry from the block's location, player's location and the player's view.
It's very easy to use:
Returns the face of the target block (north, south, east, west, up or down). Returns nothing if player isn't targeting block.Code (Skript):
You only need a recent version of Bensku's Skript, that support vector functionalities.
Well... That's all ! For any questions, please contact me on Discord Arno#8677 (I'm on the SkUnity guild and french-speaking Skript-MC guild), or in private message on the forum.
Welcome to skUnity!
Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
API GetCursorFace 1.1
Get the face of the block targeted by a player !