Anti death itemdrop

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

Low

Member
May 25, 2020
14
0
1
20
Im working on a skript that prevents loot from dropping that is not diamond gear and nether stars but i dont know how to find out the item that is on the ground and i dont know how to remove it
 

Attachments

  • new.sk
    116 bytes · Views: 155
  1. on death:
  2. wait 1 tick
  3. loop all entities in radius 1 around event-location:
  4. if loop-entity is "&dd":
  5. kill loop-entity
[doublepost=1590842099,1590842044][/doublepost]doesnt work for me
 
This should be what you want.

Code:
on death:
    loop drops:
        set {_item} to type of loop-value
        if {_item} is not diamond helmet, diamond chestplate, diamond leggings, diamond boots or nether star:
            remove loop-value from drops
 
Status
Not open for further replies.