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 How can i make this work?

Discussion in 'Skript' started by Samwej, Sep 6, 2021.

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

    Samwej New Member

    Joined:
    Sep 2, 2021
    Messages:
    8
    Likes Received:
    0
    On join:
    loop all items in the inventory of player:
    if loop-value is a emerald block named "Info&Warps":
    execute console command "/absolutely nothing"
    else:
    give player emerald block named "Info&Warps"

     
  2. Best Answer:
    Post #11 by Minecoll_YT, Sep 7, 2021
  3. Crocie

    Crocie Member

    Joined:
    Jul 2, 2021
    Messages:
    29
    Likes Received:
    0
    What's the problem here?
     
    • Agree Agree x 1
  4. Samwej

    Samwej New Member

    Joined:
    Sep 2, 2021
    Messages:
    8
    Likes Received:
    0
    its not working
    it doesnt give the emerald block
     
  5. TweedeKamer

    TweedeKamer Member

    Joined:
    Sep 6, 2021
    Messages:
    23
    Likes Received:
    1
    This should work.
     

    Attached Files:

    • Useful Useful x 1
  6. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    lol

    Code (Text):
    1.  
    2. on join:
    3.     give player emerald block named "" if player does not have 1 emerald block named ""
    4.  
     
    • Useful Useful x 1
  7. TweedeKamer

    TweedeKamer Member

    Joined:
    Sep 6, 2021
    Messages:
    23
    Likes Received:
    1
    That also works yeah much easier
     
    • Agree Agree x 1
  8. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Next time use codeblocks. [C O D E] [/C O D E].
     
  9. Samwej

    Samwej New Member

    Joined:
    Sep 2, 2021
    Messages:
    8
    Likes Received:
    0
    it still doesnt give the block
     
  10. TweedeKamer

    TweedeKamer Member

    Joined:
    Sep 6, 2021
    Messages:
    23
    Likes Received:
    1
    It should work add me on discord and then i could help you so that you can show me.
    S̵̶̄i̵͓̎l̸ͧ͑v̸̵͆i̵͓̎n̷̶̊#2219
     
  11. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Wait 1 tick before doing anything.
     
  12. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    This would be the best solution I think:
    Code (Text):
    1. on join:
    2.     wait 1 tick
    3.     set {_item} to emerald block named "&fInfo&Warps"
    4.     if amount of {_item} in player's inventory is less than 1:
    5.         give {_item} to player
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...