How do you testfor certain items are on the ground?

How do you testfor certain items are on the ground? - Elderly Men in a Street Sale

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 do you testfor certain items are on the ground? - Free stock photo of abstract, ancient, antique
How do you testfor certain items are on the ground? - Free stock photo of arts and crafts, bamboo, blur
How do you testfor certain items are on the ground? - Free stock photo of ancient, architecture, art





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