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.

How to remove a named dropped item

Discussion in 'Skript' started by Cupex, Feb 16, 2020.

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

    Cupex Member

    Joined:
    Feb 16, 2020
    Messages:
    37
    Likes Received:
    1
    How to make that the item with a specific name is dropped and then is automatically deleted from the floor?
    I startet like this but that not really work:
    Code (Text):
    1. on pickup of sunflower:
    2.     name of event-item is "&6Coin&eBomb":
    3.         remove 1 sunflower named "&6Coin&eBomb" from player's inventory
     
  2. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    109
    Likes Received:
    0
    You didn't put "if" before "name of event-item", try this:
    Code (Text):
    1. on pickup of diamond:
    2.       if item's name is "Test":
    3.           wait 1 tick
    4.           remove 1 diamond named "Test" from player's inventory
     
    • Agree Agree x 1
  3. Cupex

    Cupex Member

    Joined:
    Feb 16, 2020
    Messages:
    37
    Likes Received:
    1
    Thanks, and do you know how to make fireworks explode instantly?
     
  4. Florenthz

    Florenthz Member

    Joined:
    Dec 5, 2017
    Messages:
    12
    Likes Received:
    0
    Hi, that doesnt work in 1.15.2 can someone help please?
     
  5. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    109
    Likes Received:
    0
    give me the code please (and the error if you can)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...