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]
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}
Where did you get this command from? Is there a site on the net? Or a list for it?
https://mcstacker.net
Or the minecraft wiki