How to testfor a dropped item?
I know this question is like Execute or Testfor a named dropped Item?, but I couldn't fit the answer there to my needs. So, I'm working on a spear in my one-command creation. It is a stick renamed spear. So I want to be able to testfor when it is dropped, so it would be like "throwing" it.
Thanks.
Best Answer
there's such an easier way to do this.
/testfor @e[type=item,name=item.item.stick] {Item:{tag:{display:{Name:spear}}}}
Put this in an always active repeating command block, then make it point to a conditional chain that's always active and facing away from the repeating, in a series that looks sort of like this:
|> >>
Then type your command in the chain command block.
Pictures about "How to testfor a dropped item?"



How do you Testfor an item?
Chat Commands First, type /kill @e[type=item] in the chat and press enter to remove all dropped items in your Minecraft world instantly.[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, Evie Shaffer, Peter Fazekas
