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 Drop Item At Coords

Discussion in 'Skript' started by SmallDev, Aug 1, 2020 at 10:38 PM.

Tags:
  1. SmallDev

    SmallDev Active Member

    Joined:
    Apr 6, 2020
    Messages:
    39
    Likes Received:
    0
    I'm making a gen skript, and am using
    Code (Text):
    1.  
    2. every 5 seconds:
    3.     loop {DirtLo::*}:
    4.         drop 10 dirt at loop-value
    But this is not working. I get no errors.
     
  2. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    59
    Likes Received:
    1
    I never tried dropping items at coords but i can try helping you. Instead of
    Code (Text):
    1. drop 10 dirt at loop value
    try:
    Code (Text):
    1. drop 10 dirt at {DirtLo::*}
    --- Double Post Merged, Aug 1, 2020 at 11:34 PM, Original Post Date: Aug 1, 2020 at 11:31 PM ---
    and if it doesnt work make sure {DirtLo::*} is set.
    Sometimes it resets variables for me when i restart the server.
    Also try using {DirtLo} instead of {DirtLo::*}
     
  3. SmallDev

    SmallDev Active Member

    Joined:
    Apr 6, 2020
    Messages:
    39
    Likes Received:
    0
    Not working, still no errors tho,
     
  4. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    59
    Likes Received:
    1
    i will try it in minecraft tomorrow(im on my phone now and its late here).
    sorry for making you wait, the second i wake up ill try to fix it
     
  5. SmallDev

    SmallDev Active Member

    Joined:
    Apr 6, 2020
    Messages:
    39
    Likes Received:
    0
    Ok, thank you for your help :emoji_grinning:
     
  6. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    59
    Likes Received:
    1
    I used this code to test it and it worked
    Code (Text):
    1.  
    2. command /g:
    3.   trigger:
    4.     set {DirtLo} to location of player
    5.  
    6. command /t:
    7.   trigger:
    8.     drop 10 dirt at {DirtLo}
    I think you didnt set {DIrtLo}
     
  7. SmallDev

    SmallDev Active Member

    Joined:
    Apr 6, 2020
    Messages:
    39
    Likes Received:
    0
    That is working, I think I can figure it out from here, Thanks for your help :emoji_grinning:
     
  8. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    59
    Likes Received:
    1
Loading...