Remove specific item from ground

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

burntWaffles

Member
Sep 21, 2020
2
0
1
25
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?
 
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
 
Code:
on drop:
    event-item is a apple
    cancel event

not tested but this should work
 
Last edited:
Status
Not open for further replies.