How do you testfor certain items are on the ground?

//ads -- adsterra.com -- native banner
?>
So, I'm trying to make an "Only One Command" thing by hand for the first time, and I need to use the "Floor Crafting" technique. But, the thing is, I can't testfor or delete a CERTAIN item. For example, I want to delete a block of sand that's a Tile Entity(Item). How do I do this?
Best Answer
You can run this in a clock:
/testfor @e[type=Item]
If you need to test an certain item, You can use this:
/testfor @e[type=Item] {Item:{id:**Change me to block id!**}}
There!
Pictures about "How do you testfor certain items are on the ground?"



HOW TO USE TESTFOR ITEM ON THE GROUND || Minecraft PE Command
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Надежда Ильина, Yan Krukov, Yan Krukov, Yan Krukov