Testfor multiple dropped items

//ads -- adsterra.com -- native banner
?>
I want to detect multiple of the same dropped items but all the command blocks get triggered instead of just one. How can i do this. :[
Best Answer
Update for 1.13+
- The
c
argument has been renamed tolimit
. - You can now change the sorting of the list of targets using the
sort
parameter. Valid values are:nearest
,furthest
,random
, andarbitrary
. /testfor
is now/execute
using theif
argument.- NBT is now inside the target selector, using the
nbt
argument.
1.13 command:
/execute if entity @e[limit=1,type=item,sort=nearest,nbt={NBT}]
Pictures about "Testfor multiple dropped items"



How do you use the Testfor command for items?
You can test for a certain target in the game using the /testfor command in Minecraft. TIP: Starting in Minecraft Java Edition (PC/Mac) 1.13, the /testfor command was removed from the Java Edition version of the game. Let's explore how to use this cheat (game command).[1.11/1.11.2] Minecraft | How To Testfor a Dropped Item
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Joshua Miranda, Joshua Miranda, Yan Krukov, Yan Krukov