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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Block to Loacation

Discussion in 'Skript' started by SantiagoCervera, May 5, 2020.

Thread Status:
Not open for further replies.
  1. SantiagoCervera

    Joined:
    May 5, 2020
    Messages:
    3
    Likes Received:
    0
    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.
    --- Double Post Merged, May 5, 2020, Original Post Date: May 5, 2020 ---
    Nevermind... i feel dumb jaja

    I did i like this:

    %location of {block}%
     
  2. KasiaPRO

    KasiaPRO Member

    Joined:
    May 2, 2020
    Messages:
    25
    Likes Received:
    0
    like this?
    Code (Text):
    1. command /setlocation:
    2.     description: set a location of a block
    3.     permission: set.loc
    4.     aliases: /set, /setloc.
    5.     trigger:
    6.         set {location} to location of player
     
  3. SantiagoCervera

    Joined:
    May 5, 2020
    Messages:
    3
    Likes Received:
    0
    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}%
     
Thread Status:
Not open for further replies.

Share This Page

Loading...