Testfor multiple dropped items

Testfor multiple dropped items - Board game with wooden blocks dropped and scattered on table chaotically after playing

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 to limit.
  • You can now change the sorting of the list of targets using the sort parameter. Valid values are: nearest, furthest, random, and arbitrary.
  • /testfor is now /execute using the if 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"

Testfor multiple dropped items - Set of small wooden blocks scattered on table chaotically after playing tower game
Testfor multiple dropped items - Free stock photo of abstract, ancient, antique
Testfor multiple dropped items - Free stock photo of arts and crafts, bamboo, blur



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