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.

Delete on pickup event-item.

Discussion in 'Skript' started by sandor_1234, Apr 14, 2017.

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

    sandor_1234 Active Member

    Joined:
    Jan 26, 2017
    Messages:
    165
    Likes Received:
    5
    I am trying to delete the event-item involved in the pickup event.
    When i use this code:
    Code (Skript):
    1. On Pick Up:
    2.     clear event-item
    It just gives the error:
    "event-item stack can't be deleted/cleared"
    Is there another way to delete / clear the item involved in a on pickup event?
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    why you dont try use cancel event? Like so:
    Code (Skript):
    1. on pick up:
    2.     cancel event
    else use event:
    Code (Skript):
    1. on death:
    2.     clear inventory's player
    some like that way.
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    I did cancel the event but this will cause to still trigger this event every tick because off the item still laying on the ground so that will become a big spam.
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Delete the event-entity, not the item.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Okay thanks xD
     
Thread Status:
Not open for further replies.

Share This Page

Loading...