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 our 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.

Item despawn from inventory

Discussion in 'Skript' started by KAVKAZIE, Oct 13, 2019.

  1. KAVKAZIE

    KAVKAZIE Well-Known Member

    Joined:
    Feb 27, 2017
    Messages:
    122
    Likes Received:
    0
    Hey, How can i find if a specific item (for example bow) if it's despawn from my inventory, i want to do an event. thanks for helping.
     
  2. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    What do you mean despawn from inventory?
     
  3. n

    notblueblob67 Member

    Joined:
    Sep 13, 2019
    Messages:
    13
    Likes Received:
    0
    Please tell me what "despawn from inventory" means and I should be able to help.
     
  4. KAVKAZIE

    KAVKAZIE Well-Known Member

    Joined:
    Feb 27, 2017
    Messages:
    122
    Likes Received:
    0
    I'm using a SkyWars plugin and when the game starts for example the kit selector item despawn and the game starts, so i want to check when the bot despawn from my inventory to do something on skript.
    --- Double Post Merged, Oct 15, 2019 at 2:25 AM, Original Post Date: Oct 15, 2019 at 2:24 AM ---
    ^^
     
  5. n

    notblueblob67 Member

    Joined:
    Sep 13, 2019
    Messages:
    13
    Likes Received:
    0
    Umm I think I have something that will work.

    This is just an example, you can edit it to how you want.
    In this Skript the Kit Selector is a Clock (minecraft:clock)
    Code (Text):
    1. command /test:
    2.   trigger:
    3.     loop all players:
    4.       if loop-player has permission "skywars.clear":
    5.         make console execute command "/ci %player%" mincraft:clock
    6. # Assuming you have the Kit GUI set up, just edit
    7. # this how you like. I would use /kit for the Kit GUI. # Example:
    8. command /test1:
    9.   trigger:
    10.     open chest with 1 row named "Test" to player
    11.     format slot 0 of player with diamond named "&bTest Kit" with lore "&b/kit test" to close then run [make player execute command "/kit test"]
    I really doubt this will work as I am not very good with Skripting. Haven't tested: good luck!
     
    #5 notblueblob67, Oct 15, 2019 at 12:04 PM
    Last edited: Oct 15, 2019 at 12:09 PM
  6. KAVKAZIE

    KAVKAZIE Well-Known Member

    Joined:
    Feb 27, 2017
    Messages:
    122
    Likes Received:
    0
    You didn't undertsand me, I made a Skript Addon for my skywars i made Cages win effects, and i found on teleport event if player has the kit selector item it's making a cage around him and i want a way to find when the game starts to remove the cage
     
Loading...