GetCursorFace

API GetCursorFace 1.1

  • 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!

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:
code_language.skript:
GetCursorFace(player)
Returns the face of the target block (north, south, east, west, up or down). Returns nothing if player isn't targeting block.


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.
  • Like
Reactions: Sashie
Author
Arno
Downloads
1,027
Views
1,027
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest reviews

;) Nice use of vectors! It looks a bit clunky but it is skript after all