Block to Loacation

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
May 5, 2020
3
0
0
29
Hi, i´m really new in Skript, i read the documentation but still doesn't figure how to convert a variable of type block to location.

Thanks.
[doublepost=1588718320,1588717775][/doublepost]Nevermind... i feel dumb jaja

I did i like this:

%location of {block}%
 
like this?
Code:
command /setlocation:
    description: set a location of a block
    permission: set.loc
    aliases: /set, /setloc.
    trigger:
        set {location} to location of player
 
That store a variable of type location. I needed obtain the location from a block without storing a variable, i alredy solved with this:

%location of {block}%
 
Status
Not open for further replies.