How to remove a named dropped item

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Cupex

Member
Feb 16, 2020
43
1
8
26
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:
on pickup of sunflower:
    name of event-item is "&6Coin&eBomb":
        remove 1 sunflower named "&6Coin&eBomb" from player's inventory
 
You didn't put "if" before "name of event-item", try this:
Code:
on pickup of diamond:
      if item's name is "Test":
          wait 1 tick
          remove 1 diamond named "Test" from player's inventory
 
Status
Not open for further replies.