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.

Remove specific item from ground

Discussion in 'Skript' started by burntWaffles, Sep 22, 2020.

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

    burntWaffles Member

    Joined:
    Sep 21, 2020
    Messages:
    2
    Likes Received:
    0
    How can I make it so that when there's a specific item on the floor, it instantly despawns/gets removed. For example, how could I make it so that if there' an apple on the ground it instantly gets cleared?
     
  2. Star Moonlight

    Joined:
    Sep 23, 2020
    Messages:
    2
    Likes Received:
    0
    every 1 second:
    loop all dropped items:
    if loop-item = apple:
    delete loop-item​


    I dont know if that would work but maybe try it
     
  3. bpitcher2013

    bpitcher2013 Member

    Joined:
    Jan 25, 2020
    Messages:
    14
    Likes Received:
    1
    Code (Text):
    1. on drop:
    2.     event-item is a apple
    3.     cancel event
    not tested but this should work
     
    #3 bpitcher2013, Sep 26, 2020
    Last edited: Sep 26, 2020
  4. Josh Clarke

    Josh Clarke New Member

    Joined:
    Aug 14, 2020
    Messages:
    7
    Likes Received:
    0
    on drop apple:
    cancel event
     
Thread Status:
Not open for further replies.

Share This Page

Loading...