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.

Solved Anyone know why this doesn't work?

Discussion in 'Skript' started by _BraydenKing, Jul 13, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. _BraydenKing

    _BraydenKing Member

    Joined:
    May 12, 2021
    Messages:
    13
    Likes Received:
    0
    Code (Text):
    1. every 5 seconds:
    2.     loop all players:
    3.         drop 1 wheat 0.8 meters above {placedgenerators::%loop-player's uuid%::wheatgen::*}
    The variable is a list with multiple locations. There are no errors on reload and just doesn't drop the wheat.
     
  2. SkriptQuestion

    Joined:
    Jul 13, 2022
    Messages:
    4
    Likes Received:
    0
    The skript works (tested it), but the variable is prob. empty.

    Example to put locations in the variable:
    Code (Text):
    1. command /test:
    2.     trigger:
    3.         add player's location to {placedgenerators::%player's uuid%::wheatgen::*}
     
  3. _BraydenKing

    _BraydenKing Member

    Joined:
    May 12, 2021
    Messages:
    13
    Likes Received:
    0
    Not exactly what I needed but thanks for the help. I’m not trying to drop the wheat at the location of the player, instead dropping it at a specific location that is in the variable. I’ve did multiple tests and I know that the list variable is set.
     
  4. SkriptQuestion

    Joined:
    Jul 13, 2022
    Messages:
    4
    Likes Received:
    0
    than just change "player's location" to the location lmao.
    Expected you would be able to realise that.

    an example of a correct location:
    Code (Text):
    1. set {_location} to location(1.5, -1.5, 1.5, world "world", -90, -0)
     
    #4 SkriptQuestion, Jul 13, 2022
    Last edited: Jul 13, 2022
  5. _BraydenKing

    _BraydenKing Member

    Joined:
    May 12, 2021
    Messages:
    13
    Likes Received:
    0
    Thank you, but I found out what the problem was. The variable was a location as a text and not an actual location.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...