Minecraft Command for not picking up an item?

em
3

I'm currently working on a Minecraft project. For this I want to create so-called smoke grenades (flash bangs). I already have the effect etc., but I want that the grenades can no longer be picked up as soon as they are dropped. I have already looked at the NBTs etc and did not find anything. I need something like this:

give @p feather [canbecollected: 0b]

Be

You can only change that when the item has been dropped.

/ data merge entity @e [type = item, limit = 1, nbt = {Item: {id: "minecraft: feather"}}] {PickupDelay: 32767}

em

Where did you get this command from? Is there a site on the net? Or a list for it?

Be

https://mcstacker.net

Or the minecraft wiki